forked from kenzuya/unshackle
refactor(wire): put the tracks reply codec in wire and stamp service flags in serialize_title
This commit is contained in:
@@ -85,7 +85,7 @@ def test_a_non_sport_episode_ignores_the_sports_template(templates):
|
||||
|
||||
|
||||
def test_the_sport_flag_survives_the_remote_round_trip():
|
||||
rebuilt = build_title(serialize_title(make_episode()), "TEST", fallback_id="x")
|
||||
rebuilt = build_title(serialize_title(make_episode(), None), "TEST", fallback_id="x")
|
||||
assert isinstance(rebuilt, Episode) and rebuilt.sport
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ def test_the_sport_flag_survives_the_export_round_trip():
|
||||
|
||||
|
||||
def test_a_non_sport_episode_sends_no_sport_key():
|
||||
assert "sport" not in serialize_title(make_episode(sport=False))
|
||||
assert "sport" not in serialize_title(make_episode(sport=False), None)
|
||||
|
||||
|
||||
def test_sports_templates_validate_without_warnings(recwarn):
|
||||
|
||||
Reference in New Issue
Block a user