From aecf593ede891436da6a8b0dd144c06c0983dee1 Mon Sep 17 00:00:00 2001 From: Guy Bloom Date: Mon, 1 Dec 2025 18:04:42 -0500 Subject: [PATCH] Linted new tests --- test/plugins/test_convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/plugins/test_convert.py b/test/plugins/test_convert.py index 7eed402b2..93e818388 100644 --- a/test/plugins/test_convert.py +++ b/test/plugins/test_convert.py @@ -235,6 +235,7 @@ class ConvertCliTest(ConvertTestCase, ConvertCommand): assert not self.file_endswith( self.convert_dest / "converted.ogg", "ogg" ) + def test_force_overrides_max_bitrate_and_same_formats(self): self.config["convert"]["max_bitrate"] = 5000 self.config["convert"]["format"] = "ogg" @@ -260,7 +261,6 @@ class ConvertCliTest(ConvertTestCase, ConvertCommand): self.convert_dest / "converted.ogg", "ogg" ) - def test_playlist(self): with control_stdin("y"): self.run_convert("--playlist", "playlist.m3u8") @@ -323,6 +323,7 @@ class NeverConvertLossyFilesTest(ConvertTestCase, ConvertCommand): converted = self.convert_dest / "converted.ops" assert self.file_endswith(converted, "opus") + def test_force_overrides_no_convert(self): self.config["convert"]["formats"]["opus"] = { "command": self.tagged_copy_cmd("opus"), @@ -339,7 +340,6 @@ class NeverConvertLossyFilesTest(ConvertTestCase, ConvertCommand): assert self.file_endswith(converted, "opus") - class TestNoConvert: """Test the effect of the `no_convert` option.""" @@ -355,4 +355,4 @@ class TestNoConvert: def test_no_convert_skip(self, config_value, should_skip): item = Item(format="ogg", bitrate=256) convert.config["convert"]["no_convert"] = config_value - assert convert.in_no_convert(item) == should_skip \ No newline at end of file + assert convert.in_no_convert(item) == should_skip