Commit 347036be authored by Federico Sismondi's avatar Federico Sismondi
Browse files

bugfix on getter method

parent 43725afd
Pipeline #2193 passed with stage
in 0 seconds
......@@ -43,6 +43,8 @@ class TestSuiteTests(unittest.TestCase):
except ValueError:
pass # passed
self.testsuite.get_addressing_table()
self.testsuite.get_agent_names()
self.testsuite.get_current_step()
......@@ -52,13 +54,18 @@ class TestSuiteTests(unittest.TestCase):
self.testsuite.get_testcases_list()
self.testsuite.get_current_testcase_state()
self.testsuite.get_current_testcase()
self.testsuite.get_current_testcase_id()
self.testsuite.get_current_testcase_state()
self.testsuite.get_current_testcase_configuration()
self.testsuite.get_current_testcase_configuration_id()
self.testsuite.get_current_step_target_address()
self.testsuite.get_addressing_table()
self.testsuite.get_report()
self.testsuite.get_testcases_basic()
self.testsuite.get_testcase_report()
self.testsuite.get_detailed_status()
self.testsuite.get_default_iut_addressing_from_configurations()
def test_all_getters_of_testsuite_on_init(self):
self._run_all_getters()
......
......@@ -630,7 +630,11 @@ class TestSuite:
assert type(testcase_id) is str
# assigns the one which is not None:
tc = self.get_testcase(testcase_id) or self.get_current_testcase()
return tc.report
if tc:
return tc.report
else:
return None
def reinit_testcase(self, testcase_id):
"""
......
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