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:
@@ -31,12 +31,6 @@ def make_entry() -> SessionEntry:
|
||||
return entry
|
||||
|
||||
|
||||
def test_summary_falls_back_to_the_first_title() -> None:
|
||||
summary = make_entry().summary()
|
||||
assert summary["title_id"] == "t1"
|
||||
assert summary["title"] == "Example Show 2024 S01E01"
|
||||
|
||||
|
||||
def test_summary_reports_the_title_the_client_asked_for() -> None:
|
||||
entry = make_entry()
|
||||
entry.current_title_id = "t3"
|
||||
@@ -45,12 +39,6 @@ def test_summary_reports_the_title_the_client_asked_for() -> None:
|
||||
assert summary["title"] == "Example Show 2024 S01E03"
|
||||
|
||||
|
||||
def test_summary_ignores_a_title_id_that_left_the_map() -> None:
|
||||
entry = make_entry()
|
||||
entry.current_title_id = "gone"
|
||||
assert entry.summary()["title_id"] == "t1"
|
||||
|
||||
|
||||
def test_unknown_track_resolves_to_the_live_title() -> None:
|
||||
entry = make_entry()
|
||||
entry.current_title_id = "t3"
|
||||
|
||||
Reference in New Issue
Block a user