From a716e9579238cf253a5920b4315e8c9c77eb33bf Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 4 Feb 2021 12:23:28 +0100 Subject: [PATCH] fixing problem in live test --- tests/test_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_action.py b/tests/test_action.py index e1361efd..d1990a0c 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -580,7 +580,7 @@ def test_save_live_json(app: Devicehub, user: UserClient, client: Client): snapshot = {'debug': ''} if files: - path_snapshot = os.path.join(path_dir_base, files[0]) + path_snapshot = os.path.join(path_dir_base, files[-1]) with open(path_snapshot) as file_snapshot: snapshot = json.loads(file_snapshot.read())