Skip to content

Commit 0979039

Browse files
committed
Removed legacy flags
1 parent 226a654 commit 0979039

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tui/state_handlers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Optional
55

66
from plain2code_events import RenderContextSnapshot
7+
from render_machine.render_types import AcceptanceTestPhase
78
from render_machine.states import States
89

910
from . import components as tui_components
@@ -194,7 +195,9 @@ def handle(self, segments: list[str], snapshot: RenderContextSnapshot, previous_
194195

195196
if segments[2] != States.POSTPROCESSING_CONFORMANCE_TESTS.value:
196197
if segments[2] == States.CONFORMANCE_TESTING_INITIALISED.value:
197-
if snapshot.conformance_tests_running_context.conformance_test_phase_index == 0:
198+
phase = snapshot.conformance_tests_running_context.acceptance_test_phase
199+
# Rendering full conformance tests (if there are no acceptance tests available or haven't been started yet)
200+
if phase == AcceptanceTestPhase.NOT_STARTED or phase == AcceptanceTestPhase.NOT_APPLICABLE:
198201
rendering_text = f"Rendering conformance tests for functionality {snapshot.conformance_tests_running_context.current_testing_frid}"
199202
update_progress_item_substates(
200203
self.tui,

0 commit comments

Comments
 (0)