Run black on sources
This commit is contained in:
parent
16874645e7
commit
a3c34f5f39
16 changed files with 58 additions and 60 deletions
|
|
@ -630,10 +630,8 @@ class TestPrototypeStorage(EvenniaTest):
|
|||
|
||||
# partial match
|
||||
with mock.patch("evennia.prototypes.prototypes._MODULE_PROTOTYPES", {}):
|
||||
self.assertCountEqual(
|
||||
protlib.search_prototype("prot"), [prot1b, prot2, prot3])
|
||||
self.assertCountEqual(
|
||||
protlib.search_prototype(tags="foo1"), [prot1b, prot2, prot3])
|
||||
self.assertCountEqual(protlib.search_prototype("prot"), [prot1b, prot2, prot3])
|
||||
self.assertCountEqual(protlib.search_prototype(tags="foo1"), [prot1b, prot2, prot3])
|
||||
|
||||
self.assertTrue(str(str(protlib.list_prototypes(self.char1))))
|
||||
|
||||
|
|
@ -1078,6 +1076,7 @@ class TestOLCMenu(TestEvMenu):
|
|||
],
|
||||
]
|
||||
|
||||
|
||||
class PrototypeCrashTest(EvenniaTest):
|
||||
|
||||
# increase this to 1000 for optimization testing
|
||||
|
|
@ -1089,9 +1088,9 @@ class PrototypeCrashTest(EvenniaTest):
|
|||
# print(f"Creating {num} additional prototypes...")
|
||||
for x in range(num):
|
||||
prot = {
|
||||
'prototype_key': str(uuid.uuid4()),
|
||||
'some_attributes': [str(uuid.uuid4()) for x in range(10)],
|
||||
'prototype_tags': list(sample(['demo', 'test', 'stuff'], 2)),
|
||||
"prototype_key": str(uuid.uuid4()),
|
||||
"some_attributes": [str(uuid.uuid4()) for x in range(10)],
|
||||
"prototype_tags": list(sample(["demo", "test", "stuff"], 2)),
|
||||
}
|
||||
protlib.save_prototype(prot)
|
||||
|
||||
|
|
@ -1101,5 +1100,5 @@ class PrototypeCrashTest(EvenniaTest):
|
|||
self.create(num_prototypes)
|
||||
# print("Attempting to list prototypes...")
|
||||
# start_time = time()
|
||||
self.char1.execute_cmd('spawn/list')
|
||||
self.char1.execute_cmd("spawn/list")
|
||||
# print(f"Prototypes listed in {time()-start_time} seconds.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue