Skip to content

Commit

Permalink
remove chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
Christina Bukas committed Jan 10, 2024
1 parent 932e988 commit abeb4db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/client/test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ def app():

if not os.path.exists('in_prog'):
os.mkdir('in_prog')
os.chmod('in_prog', 0o0777)
imsave('in_prog/coffee.png', img2)
os.chmod('in_prog/coffee.png', 0o0777)

if not os.path.exists('eval_data_path'):
os.mkdir('eval_data_path')
os.chmod('eval_data_path', 0o0777)
imsave('eval_data_path/cat.png', img3)
os.chmod('eval_data_path/cat.png', 0o0777)

rsyncer = DataRSync(user_name="local", host_name="local", server_repo_path='.')
app = Application(BentomlModel(),
Expand Down
1 change: 0 additions & 1 deletion src/client/test/test_fsimagestorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def sample_image():
img = data.astronaut()
fname = 'test_img.png'
imsave(fname, img)
os.chmod(fname, 0o0777)
return fname

def test_load_image(fis, sample_image):
Expand Down
6 changes: 0 additions & 6 deletions src/client/test/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,15 @@ def app(qtbot, setup_global_variable):

if not os.path.exists('train_data_path'):
os.mkdir('train_data_path')
os.chmod('train_data_path', 0o0777)
imsave('train_data_path/astronaut.png', img1)
os.chmod('train_data_path/astronaut.png', 0o0777)

if not os.path.exists('in_prog'):
os.mkdir('in_prog')
os.chmod('in_prog', 0o0777)
imsave('in_prog/coffee.png', img2)

Check warning on line 39 in src/client/test/test_main_window.py

View check run for this annotation

Codecov / codecov/patch

src/client/test/test_main_window.py#L38-L39

Added lines #L38 - L39 were not covered by tests
os.chmod('in_prog/coffee.png', 0o0777)

if not os.path.exists('eval_data_path'):
os.mkdir('eval_data_path')
os.chmod('eval_data_path', 0o0777)
imsave('eval_data_path/cat.png', img3)

Check warning on line 43 in src/client/test/test_main_window.py

View check run for this annotation

Codecov / codecov/patch

src/client/test/test_main_window.py#L42-L43

Added lines #L42 - L43 were not covered by tests
os.chmod('eval_data_path/cat.png', 0o0777)

rsyncer = DataRSync(user_name="local", host_name="local", server_repo_path='.')
application = Application(BentomlModel(),
Expand Down

0 comments on commit abeb4db

Please sign in to comment.