Adds inspect --shift option

This commit is contained in:
Javanaut
2026-04-12 20:34:33 +02:00
parent 8a8c43ecdf
commit d6e885517d
4 changed files with 193 additions and 16 deletions

View File

@@ -183,9 +183,7 @@ class ShiftedSeasonControllerTests(unittest.TestCase):
)
self.assertEqual((1, 3), (shifted_season, shifted_episode))
mocked_info.assert_called_once_with(
"Setting season shift 1/3 -> 1/3 from pattern"
)
mocked_info.assert_not_called()
def test_shift_season_falls_back_to_identity_when_no_rule_matches(self):
pattern_id = self.add_pattern(1, r"^demo_(s[0-9]+e[0-9]+)\.mkv$")
@@ -199,9 +197,7 @@ class ShiftedSeasonControllerTests(unittest.TestCase):
)
self.assertEqual((4, 20), (shifted_season, shifted_episode))
mocked_info.assert_called_once_with(
"Setting season shift 4/20 -> 4/20 from default"
)
mocked_info.assert_not_called()
if __name__ == "__main__":