mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-26 19:05:13 +00:00
refactor(core)!: drop leading underscores from internal definitions
Renames 314 defs and 41 module/class-level constants. Keeps 11 names underscored where the stripped form collides in scope, plus 5.5.0 shims for the three symbols external service repos call.
This commit is contained in:
@@ -144,7 +144,7 @@ def test_spaced_template_uses_spaces(reset_template):
|
||||
|
||||
|
||||
def test_template_context_leaves_the_season_token_alone(reset_template):
|
||||
ctx = make_episode(part=2)._build_template_context(StubMediaInfo())
|
||||
ctx = make_episode(part=2).build_template_context(StubMediaInfo())
|
||||
assert ctx["season"] == "S01"
|
||||
assert ctx["episode"] == "E01.Part.2"
|
||||
assert ctx["season_episode"] == "S01E01.Part.2"
|
||||
@@ -152,7 +152,7 @@ def test_template_context_leaves_the_season_token_alone(reset_template):
|
||||
|
||||
|
||||
def test_part_token_is_empty_without_a_part(reset_template):
|
||||
assert make_episode()._build_template_context(StubMediaInfo())["part"] == ""
|
||||
assert make_episode().build_template_context(StubMediaInfo())["part"] == ""
|
||||
|
||||
|
||||
def test_parts_share_one_season_folder(reset_template):
|
||||
|
||||
Reference in New Issue
Block a user