Commit c3fbd20e authored by Lu Xu's avatar Lu Xu 👀

slapos/testing: add request final state in e2e.py

parent de93cf62
......@@ -46,9 +46,9 @@ class EndToEndTestCase(unittest.TestCase):
handler.setFormatter(formatter)
@classmethod
def tearDownClass(cls):
def tearDownClass(cls, final_state='destroyed'):
for args, kw in cls._requested.values():
kw['state'] = 'destroyed'
kw['state'] = final_state
cls._request(*args, **kw)
@classmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment