From 88203952117f48da5b4a898e8dfd23ba20afd304 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 21 Jan 2021 12:32:55 +0100 Subject: [PATCH] add asserts to test --- tests/test_snapshot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_snapshot.py b/tests/test_snapshot.py index a1fb219d..902f18ec 100644 --- a/tests/test_snapshot.py +++ b/tests/test_snapshot.py @@ -764,7 +764,9 @@ def test_snapshot_bug_smallint_hdd(app: Devicehub, user: UserClient): snapshot_file = file('asus-eee-1000h.snapshot.bug1857') snapshot, _ = user.post(res=Snapshot, data=snapshot_file) - # assert '2001-01-01T00:00:00+00:00' in end_times + act = [act for act in snapshot['actions'] if act['type'] == 'TestDataStorage'][0] + assert act['currentPendingSectorCount'] == 473302660 + assert act['offlineUncorrectable'] == 182042944 tmp_snapshots = app.config['TMP_SNAPSHOTS'] shutil.rmtree(tmp_snapshots)