Linted new tests

This commit is contained in:
Guy Bloom 2025-12-01 18:04:42 -05:00
parent f25e2def76
commit aecf593ede

View file

@ -235,6 +235,7 @@ class ConvertCliTest(ConvertTestCase, ConvertCommand):
assert not self.file_endswith( assert not self.file_endswith(
self.convert_dest / "converted.ogg", "ogg" self.convert_dest / "converted.ogg", "ogg"
) )
def test_force_overrides_max_bitrate_and_same_formats(self): def test_force_overrides_max_bitrate_and_same_formats(self):
self.config["convert"]["max_bitrate"] = 5000 self.config["convert"]["max_bitrate"] = 5000
self.config["convert"]["format"] = "ogg" self.config["convert"]["format"] = "ogg"
@ -260,7 +261,6 @@ class ConvertCliTest(ConvertTestCase, ConvertCommand):
self.convert_dest / "converted.ogg", "ogg" self.convert_dest / "converted.ogg", "ogg"
) )
def test_playlist(self): def test_playlist(self):
with control_stdin("y"): with control_stdin("y"):
self.run_convert("--playlist", "playlist.m3u8") self.run_convert("--playlist", "playlist.m3u8")
@ -323,6 +323,7 @@ class NeverConvertLossyFilesTest(ConvertTestCase, ConvertCommand):
converted = self.convert_dest / "converted.ops" converted = self.convert_dest / "converted.ops"
assert self.file_endswith(converted, "opus") assert self.file_endswith(converted, "opus")
def test_force_overrides_no_convert(self): def test_force_overrides_no_convert(self):
self.config["convert"]["formats"]["opus"] = { self.config["convert"]["formats"]["opus"] = {
"command": self.tagged_copy_cmd("opus"), "command": self.tagged_copy_cmd("opus"),
@ -339,7 +340,6 @@ class NeverConvertLossyFilesTest(ConvertTestCase, ConvertCommand):
assert self.file_endswith(converted, "opus") assert self.file_endswith(converted, "opus")
class TestNoConvert: class TestNoConvert:
"""Test the effect of the `no_convert` option.""" """Test the effect of the `no_convert` option."""
@ -355,4 +355,4 @@ class TestNoConvert:
def test_no_convert_skip(self, config_value, should_skip): def test_no_convert_skip(self, config_value, should_skip):
item = Item(format="ogg", bitrate=256) item = Item(format="ogg", bitrate=256)
convert.config["convert"]["no_convert"] = config_value convert.config["convert"]["no_convert"] = config_value
assert convert.in_no_convert(item) == should_skip assert convert.in_no_convert(item) == should_skip