fixed issue when sorting hook when saving to xml, due to enum refactoring, updated test case to hit this potential issue in the future
This commit is contained in:
parent
3fac6bc7ec
commit
124d655dc6
2 changed files with 7 additions and 2 deletions
|
@ -17,12 +17,17 @@ class TestXml:
|
|||
:param session: session for test
|
||||
:param tmpdir: tmpdir to create data in
|
||||
"""
|
||||
# create hook
|
||||
# create hooks
|
||||
file_name = "runtime_hook.sh"
|
||||
data = "#!/bin/sh\necho hello"
|
||||
state = EventTypes.RUNTIME_STATE
|
||||
session.add_hook(state, file_name, None, data)
|
||||
|
||||
file_name = "instantiation_hook.sh"
|
||||
data = "#!/bin/sh\necho hello"
|
||||
state = EventTypes.INSTANTIATION_STATE
|
||||
session.add_hook(state, file_name, None, data)
|
||||
|
||||
# save xml
|
||||
xml_file = tmpdir.join("session.xml")
|
||||
file_path = xml_file.strpath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue