From 517007ef50790933755e192ef98ecee39599a414 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Sat, 28 Nov 2020 19:04:54 +0100 Subject: [PATCH] fixing test --- tests/test_snapshot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index c722cd1b..274e4451 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -558,8 +558,7 @@ def test_action_no_snapshot_without_save_file(app: Devicehub, user: UserClient): action = {'type': Ready.t, 'devices': [snapshot['device']['id']]} action, _ = user.post(action, res=Action) - files = [x for x in os.listdir(path_dir_base) if '.json' in x] - assert len(files) == 0 + assert os.path.exists(tmp_snapshots) == False @pytest.mark.mvp def test_save_snapshot_with_debug(app: Devicehub, user: UserClient):