From b6cd1d37b87d783b25d003b9f24c6b8967443380 Mon Sep 17 00:00:00 2001 From: s3lph <1375407-s3lph@users.noreply.gitlab.com> Date: Fri, 15 Apr 2022 03:35:50 +0200 Subject: [PATCH] pycodestyle --- multischleuder/test/test_api.py | 4 ++-- multischleuder/test/test_types.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/multischleuder/test/test_api.py b/multischleuder/test/test_api.py index 84d418c..e7ce859 100644 --- a/multischleuder/test/test_api.py +++ b/multischleuder/test/test_api.py @@ -99,6 +99,7 @@ class TestSchleuderApi(unittest.TestCase): def _mock_api(self, mock): m = MagicMock() m.getcode.return_value = 200 + def read(): url = mock.call_args_list[-1][0][0].get_full_url() if 'lists.json' in url: @@ -138,7 +139,7 @@ class TestSchleuderApi(unittest.TestCase): self.assertEqual('foo@example.org', subs[0].email) self.assertEqual(42, subs[0].schleuder) self.assertEqual(datetime(2022, 4, 15, 1, 11, 12, 123000, tzinfo=tzutc()), - subs[0].created_at) + subs[0].created_at) self.assertEqual('2FBBC0DF97FDBF1E4B704EEDE39EF4FAC420BEB6', subs[0].key.fingerprint) self.assertEqual('foo@example.org', subs[0].key.email) self.assertIn('-----BEGIN PGP PUBLIC KEY BLOCK-----', subs[0].key.blob) @@ -231,4 +232,3 @@ class TestSchleuderApi(unittest.TestCase): api.get_subscribers(sch) api.get_key('2FBBC0DF97FDBF1E4B704EEDE39EF4FAC420BEB6', sch) self.assertLess(0, len(mock.call_args_list)) - diff --git a/multischleuder/test/test_types.py b/multischleuder/test/test_types.py index 7ecfcd4..24767ff 100644 --- a/multischleuder/test/test_types.py +++ b/multischleuder/test/test_types.py @@ -6,7 +6,8 @@ import unittest from dateutil.tz import tzutc from multischleuder.types import SchleuderKey, SchleuderList, SchleuderSubscriber -from multischleuder.test.test_api import _KEY_RESPONSE,_LIST_RESPONSE, _SUBSCRIBER_RESPONSE +from multischleuder.test.test_api import _KEY_RESPONSE, _LIST_RESPONSE, _SUBSCRIBER_RESPONSE + class TestSchleuderTypes(unittest.TestCase):