Run black reformatter on code

This commit is contained in:
Griatch 2022-02-08 13:03:52 +01:00
parent 4582eb4085
commit bd3e31bf3c
178 changed files with 4511 additions and 3385 deletions

View file

@ -124,14 +124,14 @@ class ThrottleTest(BaseEvenniaTest):
# There should only be (cache_size * num_ips) total in the Throttle cache
self.assertEqual(sum([len(cache[x]) for x in cache.keys()]), throttle.cache_size * len(ips))
# Make sure the cache is populated
self.assertTrue(throttle.get())
# Remove the test IPs from the throttle cache
# Remove the test IPs from the throttle cache
# (in case persistent storage was configured by the user)
for ip in ips:
self.assertTrue(throttle.remove(ip))
# Make sure the cache is empty
self.assertFalse(throttle.get())
self.assertFalse(throttle.get())

View file

@ -32,6 +32,4 @@ class EvenniaTestSuiteRunner(DiscoverRunner):
import evennia
evennia._init()
return super().build_suite(
test_labels, extra_tests=extra_tests, **kwargs
)
return super().build_suite(test_labels, extra_tests=extra_tests, **kwargs)