Skip to content

Commit 22a62a9

Browse files
author
Pietro Albini
committed
Fix failing unit test
I forgot to update the tests in the previous commit...
1 parent ba2f41d commit 22a62a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_shared.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_shared_memory_creation():
2626
assert comp1["test"] == comp1b["test"]
2727

2828

29-
def test_shared_memory_initialization():
29+
def test_shared_memory_preparers():
3030
shared = botogram.shared.SharedMemory()
3131

3232
def init1(shared):
@@ -39,11 +39,11 @@ def init2(shared):
3939
shared["b"] = 1
4040

4141
comp = botogram.Component()
42-
init1_hook = botogram.hooks.SharedMemoryInitializerHook(init1, comp)
43-
init2_hook = botogram.hooks.SharedMemoryInitializerHook(init2, comp)
42+
init1_hook = botogram.hooks.MemoryPreparerHook(init1, comp)
43+
init2_hook = botogram.hooks.MemoryPreparerHook(init2, comp)
4444

45-
shared.register_inits_list("comp1", [init1_hook, init2_hook])
46-
shared.register_inits_list("comp2", [init1_hook])
45+
shared.register_preparers_list("comp1", [init1_hook, init2_hook])
46+
shared.register_preparers_list("comp2", [init1_hook])
4747

4848
memory1 = shared.of("bot1", "comp1")
4949
memory2 = shared.of("bot1", "comp2")

0 commit comments

Comments
 (0)