fixed session.add_hook to not require a source, since it was not typically used an None was being passed, cleaned up some bad type hinting in related to session.py
This commit is contained in:
parent
4b6ba90331
commit
bcd9e4ceb1
8 changed files with 26 additions and 22 deletions
|
@ -450,7 +450,7 @@ class TestGrpc:
|
|||
session = grpc_server.coreemu.create_session()
|
||||
file_name = "test"
|
||||
file_data = "echo hello"
|
||||
session.add_hook(EventTypes.RUNTIME_STATE, file_name, None, file_data)
|
||||
session.add_hook(EventTypes.RUNTIME_STATE, file_name, file_data)
|
||||
|
||||
# then
|
||||
with client.context_connect():
|
||||
|
|
|
@ -23,12 +23,12 @@ class TestXml:
|
|||
file_name = "runtime_hook.sh"
|
||||
data = "#!/bin/sh\necho hello"
|
||||
state = EventTypes.RUNTIME_STATE
|
||||
session.add_hook(state, file_name, None, data)
|
||||
session.add_hook(state, file_name, data)
|
||||
|
||||
file_name = "instantiation_hook.sh"
|
||||
data = "#!/bin/sh\necho hello"
|
||||
state = EventTypes.INSTANTIATION_STATE
|
||||
session.add_hook(state, file_name, None, data)
|
||||
session.add_hook(state, file_name, data)
|
||||
|
||||
# save xml
|
||||
xml_file = tmpdir.join("session.xml")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue