From 61458660c9129b90b7154e4b3c289f77c1df10e2 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 7 Jul 2024 22:12:35 -0700 Subject: [PATCH] pylint --- tests/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 927dce6..b4cf60f 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -11,6 +11,7 @@ class BatchfileParserTests(unittest.TestCase): """ Tests the BatchfileParser class """ + def setUp(self): self.command_parser = BatchfileParser() self.command_parser.dry_run = False @@ -49,16 +50,15 @@ class BatchfileParserTests(unittest.TestCase): "Test setp command" self.command_parser.set(['VAL', 'ABC123']) self.command_parser.setp(['DONE', 'VAL', r"([A-Z]+)123", r"X\1"]) - self.command_parser.eval("./testfile.flac", lineno=1, + self.command_parser.eval("./testfile.flac", lineno=1, interactive=False) - self.assertTrue(cast(MagicMock, + self.assertTrue(cast(MagicMock, self.command_parser.write_metadata_f).called) - self.assertEqual(cast(MagicMock, + self.assertEqual(cast(MagicMock, self.command_parser.write_metadata_f).call_args.args, ("./testfile.flac", {'VAL': 'ABC123', 'DONE': 'XABC'})) - def test_eval(self): "Test eval" self.command_parser.eval(":set A 1", 1, False)