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