Run black reformatter on code
This commit is contained in:
parent
4582eb4085
commit
bd3e31bf3c
178 changed files with 4511 additions and 3385 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue