File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments