Skip to content

Commit 39e4332

Browse files
committed
tests(test_1_dynamic_parametrizing_no_iterable.py): allow existance of `` for not running tests because of error in dynamic parametrization
1 parent 63f1a0f commit 39e4332

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/parametrization/test_1_dynamic_parametrizing_no_iterable/test_1_dynamic_parametrizing_no_iterable.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def processed(env_dir):
5252

5353
all_variation_executor = all_scenario_executor[0].get_variation_executors()
5454

55+
assert len(all_variation_executor) == 1, f"detect more than one variation executor"
56+
5557
assert all_variation_executor[0].executor_result == ResultState.NOT_RUN, \
5658
"the variation executor does not have result SUCCESS"
5759

@@ -60,7 +62,13 @@ def processed(env_dir):
6062
assert all_variation_executor[0].teardown_result.result == ResultState.NOT_RUN
6163

6264
all_testcase_executor = all_variation_executor[0].get_testcase_executors()
63-
assert len(all_testcase_executor) == 0, f"detect some testcase executor"
65+
assert len(all_testcase_executor) == 1, f"detect some testcase executor"
66+
assert isinstance(all_testcase_executor[0], UnresolvedParametrizedTestcaseExecutor), \
67+
f"test case executor is from unexpected type {type(all_testcase_executor[0])}"
68+
69+
assert all_testcase_executor[0].construct_result.result == ResultState.NOT_RUN
70+
assert all_testcase_executor[0].body_result.result == ResultState.NOT_RUN
71+
assert all_testcase_executor[0].teardown_result.result == ResultState.NOT_RUN
6472

6573
exceptions = all_scenario_executor[0].get_all_recognized_exception()
6674
assert len(exceptions) == 1, f"detect more than one exception executor"

0 commit comments

Comments
 (0)