Skip to content

Commit

Permalink
update test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpoChew committed Oct 26, 2024
1 parent a73919b commit bba11be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/plugins/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def test_no_transcode_when_no_convert_set(self):
with control_stdin("y"):
self.run_convert_path(item.path)
converted = os.path.join(self.convert_dest, b"converted.mp3")
self.assertFalse(os.path.exists(converted))
self.assertNotExists(converted)

def test_no_transcode_when_and_query_no_convert_set(self):
self.config["convert"]["no_convert"] = "format:OGG bitrate:..256"
Expand All @@ -370,7 +370,7 @@ def test_no_transcode_when_and_query_no_convert_set(self):
with control_stdin("y"):
self.run_convert_path(item.path)
converted = os.path.join(self.convert_dest, b"converted.mp3")
self.assertFalse(os.path.exists(converted))
self.assertNotExists(converted)

def test_transcode_when_and_query_no_convert_set_partial_match(self):
self.config["convert"]["no_convert"] = "format:OGG bitrate:..256"
Expand All @@ -380,7 +380,7 @@ def test_transcode_when_and_query_no_convert_set_partial_match(self):
with control_stdin("y"):
self.run_convert_path(item.path)
converted = os.path.join(self.convert_dest, b"converted.mp3")
self.assertTrue(os.path.exists(converted))
self.assertExists(converted)

def test_no_transcode_when_or_query_no_convert_set_partial_match(self):
self.config["convert"]["no_convert"] = "format:OGG , bitrate:..256"
Expand All @@ -390,4 +390,4 @@ def test_no_transcode_when_or_query_no_convert_set_partial_match(self):
with control_stdin("y"):
self.run_convert_path(item.path)
converted = os.path.join(self.convert_dest, b"converted.mp3")
self.assertFalse(os.path.exists(converted))
self.assertNotExists(converted)

0 comments on commit bba11be

Please sign in to comment.