admin: fix linting

This commit is contained in:
Jens Langhammer 2021-01-17 17:35:00 +01:00
parent 94182f88a4
commit 49d40d4337
1 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,8 @@ class TestAdminTasks(TestCase):
self.assertEqual(cache.get(VERSION_CACHE_KEY), "99999999.9999999")
self.assertTrue(
Event.objects.filter(
action=EventAction.UPDATE_AVAILABLE, context__new_version="99999999.9999999"
action=EventAction.UPDATE_AVAILABLE,
context__new_version="99999999.9999999",
).exists()
)
# test that a consecutive check doesn't create a duplicate event
@ -58,7 +59,8 @@ class TestAdminTasks(TestCase):
self.assertEqual(
len(
Event.objects.filter(
action=EventAction.UPDATE_AVAILABLE, context__new_version="99999999.9999999"
action=EventAction.UPDATE_AVAILABLE,
context__new_version="99999999.9999999",
)
),
1,