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
|
@ -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