Fix tests

This commit is contained in:
Ivan Habunek 2024-08-28 15:21:22 +02:00
parent b6e7f8b36c
commit 5be97b9e13
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -8,8 +8,8 @@ def test_initial_values():
assert progress.progress_perc == 0
assert progress.remaining_time is None
assert progress.speed is None
assert progress.vod_count == 10
assert progress.vod_downloaded_count == 0
assert progress.file_count == 10
assert progress.downloaded_count == 0
def test_downloaded():
@ -96,16 +96,16 @@ def test_vod_downloaded_count():
progress.start(2, 100)
progress.start(3, 100)
assert progress.vod_downloaded_count == 0
assert progress.downloaded_count == 0
progress.advance(1, 100)
progress.end(1)
assert progress.vod_downloaded_count == 1
assert progress.downloaded_count == 1
progress.advance(2, 100)
progress.end(2)
assert progress.vod_downloaded_count == 2
assert progress.downloaded_count == 2
progress.advance(3, 100)
progress.end(3)
assert progress.vod_downloaded_count == 3
assert progress.downloaded_count == 3