check in test this bug about time in the filename

This commit is contained in:
Cayo Puigdefabregas 2020-10-29 11:59:53 +01:00
parent 25f3cdb172
commit 954dfa95a1
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ def test_save_snapshot_in_file(app: Devicehub, user: UserClient):
snapshot = {'software': '', 'version': '', 'uuid': ''} snapshot = {'software': '', 'version': '', 'uuid': ''}
if files: if files:
path_snapshot = os.path.join(tmp_snapshots, files[0]) path_snapshot = os.path.join(tmp_snapshots, files[0])
assert not "0001-01-01 00:00:00" in path_snapshot
with open(path_snapshot) as file_snapshot: with open(path_snapshot) as file_snapshot:
snapshot = json.loads(file_snapshot.read()) snapshot = json.loads(file_snapshot.read())