Skip to content

Commit a7b5cd5

Browse files
committed
Improving logic and fixing comment
1 parent d9491d7 commit a7b5cd5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/test_engine/models/test_suite.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def config(self) -> dict:
6363
Returns execution_config if available (temporary override from CLI),
6464
otherwise returns project.config (persistent configuration).
6565
"""
66-
if self.test_suite_execution.test_run_execution.execution_config is not None:
67-
return self.test_suite_execution.test_run_execution.execution_config
66+
test_run_execution = self.test_suite_execution.test_run_execution
67+
if test_run_execution.execution_config is not None:
68+
return test_run_execution.execution_config
6869
return self.project.config
6970

7071
@property
@@ -83,7 +84,7 @@ def state(self, value: TestStateEnum) -> None:
8384

8485
def __compute_state(self) -> TestStateEnum:
8586
"""
86-
State is computed based test_suite errors and on on test case states.
87+
State is computed based on test_suite errors and test case states.
8788
"""
8889
if self.errors is not None and len(self.errors) > 0:
8990
return TestStateEnum.ERROR

0 commit comments

Comments
 (0)