iteration1

This commit is contained in:
Javanaut
2026-04-13 13:16:33 +02:00
parent d9639561ce
commit c0b3977ea6
16 changed files with 1485 additions and 528 deletions

View File

@@ -107,6 +107,22 @@ class FilePropertiesProbeTests(unittest.TestCase):
+ ["/tmp/example_s01e01.mkv"]
)
def test_use_pattern_false_skips_pattern_controller_construction(self):
file_properties_module = self.import_module()
with patch.object(
file_properties_module,
"PatternController",
side_effect=AssertionError("PatternController should not be created"),
):
file_properties = file_properties_module.FileProperties(
self.make_context(),
"/tmp/example_s01e01.mkv",
)
self.assertEqual(-1, file_properties.getShowId())
self.assertIsNone(file_properties.getPattern())
def test_cropdetect_uses_configured_window_and_caches_results(self):
file_properties_module = self.import_module()
file_properties_module.FileProperties._clear_cropdetect_cache()