mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -40,14 +40,6 @@ def test_an_update_that_changes_nothing_reports_no_change() -> None:
|
||||
assert apply_progress(state, {}) is False
|
||||
|
||||
|
||||
def test_number_fields_are_cast() -> None:
|
||||
state = JobProgress()
|
||||
apply_progress(state, {"progress": 5, "segments_done": 2, "completed_tracks": 1.0})
|
||||
assert state.progress == 5.0 and isinstance(state.progress, float)
|
||||
assert isinstance(state.segments_done, float)
|
||||
assert state.completed_tracks == 1 and isinstance(state.completed_tracks, int)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("update", "names"),
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user