diff --git a/src/client/test/test_app.py b/src/client/test/test_app.py index a7b3c02..cdab8d2 100644 --- a/src/client/test/test_app.py +++ b/src/client/test/test_app.py @@ -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(), diff --git a/src/client/test/test_fsimagestorage.py b/src/client/test/test_fsimagestorage.py index e042648..275e5f0 100644 --- a/src/client/test/test_fsimagestorage.py +++ b/src/client/test/test_fsimagestorage.py @@ -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): diff --git a/src/client/test/test_main_window.py b/src/client/test/test_main_window.py index 31b7c5f..ca80c6d 100644 --- a/src/client/test/test_main_window.py +++ b/src/client/test/test_main_window.py @@ -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) - 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='.') application = Application(BentomlModel(),