Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/test_journal_client.py
Show First 20 Lines • Show All 832 Lines • ▼ Show 20 Lines | [ | ||||
(3, 2), | (3, 2), | ||||
(4, 2), | (4, 2), | ||||
(5, 4), | (5, 4), | ||||
(6, 16), | (6, 16), | ||||
(7, 64), | (7, 64), | ||||
(8, 256), | (8, 256), | ||||
(9, 1024), | (9, 1024), | ||||
(10, 4096), | (10, 4096), | ||||
(11, 16384), | |||||
], | ], | ||||
) | ) | ||||
def test_journal_client_from_position_offset_to_days(position_offset, interval): | def test_journal_client_from_position_offset_to_days(position_offset, interval): | ||||
assert from_position_offset_to_days(position_offset) == interval | assert from_position_offset_to_days(position_offset) == interval | ||||
def test_journal_client_from_position_offset_to_days_only_positive_input(): | def test_journal_client_from_position_offset_to_days_only_positive_input(): | ||||
with pytest.raises(AssertionError): | with pytest.raises(AssertionError): | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |