From da6806a1610dfc90a9fe00f6ec2c04b1958c00f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 22 May 2021 20:57:47 +0200 Subject: [PATCH] fix job tests for Python 3.4 and 3.5 assert_called() and assert_not_called() got added in Python 3.6 --- test/test_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_job.py b/test/test_job.py index 71a587da..1aeec1c0 100644 --- a/test/test_job.py +++ b/test/test_job.py @@ -276,12 +276,12 @@ class TestDataJob(TestJob): with patch("gallery_dl.util.number_to_string") as nts: tjob.run() - nts.assert_not_called() + self.assertEqual(len(nts.call_args_list), 0) config.set(("output",), "num-to-str", True) with patch("gallery_dl.util.number_to_string") as nts: tjob.run() - nts.assert_called() + self.assertEqual(len(nts.call_args_list), 52) tjob.run() self.assertEqual(tjob.data[-1][0], Message.Url)