fixing problem in live test

This commit is contained in:
Cayo Puigdefabregas 2021-02-04 12:23:28 +01:00
parent ee4bf45c72
commit a716e95792

View file

@ -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())