diff --git a/tests/conftest.py b/tests/conftest.py index 8f1cbdbe..647e811b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,12 +6,6 @@ def pytest_addoption(parser): - parser.addoption( - "--upd-fail", - action="store_true", - default=False, - help="Update marks for failing tests", - ) parser.addoption( "--gen-diagram", action="store_true", diff --git a/tests/scxml/conftest.py b/tests/scxml/conftest.py index d38a5a1d..3fd34ce8 100644 --- a/tests/scxml/conftest.py +++ b/tests/scxml/conftest.py @@ -5,10 +5,62 @@ CURRENT_DIR = Path(__file__).parent TESTCASES_DIR = CURRENT_DIR +# xfail sets — all tests currently fail identically on both engines +XFAIL_BOTH = { + # mandatory — invoke-related + "test191", + "test192", + "test207", + "test215", + "test216", + "test220", + "test223", + "test224", + "test225", + "test226", + "test228", + "test229", + "test232", + "test233", + "test234", + "test235", + "test236", + "test239", + "test240", + "test241", + "test243", + "test244", + "test245", + "test247", + "test253", + "test276", + "test338", + "test347", + "test422", + "test530", + # optional + "test201", + "test446", + "test509", + "test510", + "test518", + "test519", + "test520", + "test522", + "test531", + "test532", + "test534", + "test557", + "test558", + "test561", + "test567", + "test577", +} +XFAIL_SYNC_ONLY: set[str] = set() +XFAIL_ASYNC_ONLY: set[str] = set() -@pytest.fixture(scope="session") -def update_fail_mark(request): - return request.config.getoption("--upd-fail") +XFAIL_SYNC = XFAIL_BOTH | XFAIL_SYNC_ONLY +XFAIL_ASYNC = XFAIL_BOTH | XFAIL_ASYNC_ONLY @pytest.fixture(scope="session") @@ -16,20 +68,12 @@ def should_generate_debug_diagram(request): return request.config.getoption("--gen-diagram") -@pytest.fixture() -def processor(testcase_path: Path): - """ - Construct a StateMachine class from the SCXML file - """ - return processor - - -def compute_testcase_marks(testcase_path: Path) -> list[pytest.MarkDecorator]: - marks = [pytest.mark.scxml] - if testcase_path.with_name(f"{testcase_path.stem}.fail.md").exists(): +def compute_testcase_marks(testcase_path: Path, is_async: bool) -> list[pytest.MarkDecorator]: + marks: list[pytest.MarkDecorator] = [pytest.mark.scxml] + test_id = testcase_path.stem + xfail_set = XFAIL_ASYNC if is_async else XFAIL_SYNC + if test_id in xfail_set: marks.append(pytest.mark.xfail) - if testcase_path.with_name(f"{testcase_path.stem}.skip.md").exists(): - marks.append(pytest.mark.skip) return marks @@ -37,13 +81,15 @@ def pytest_generate_tests(metafunc): if "testcase_path" not in metafunc.fixturenames: return + is_async = "async" in metafunc.function.__name__ + metafunc.parametrize( "testcase_path", [ pytest.param( testcase_path, id=str(testcase_path.relative_to(TESTCASES_DIR)), - marks=compute_testcase_marks(testcase_path), + marks=compute_testcase_marks(testcase_path, is_async), ) for testcase_path in TESTCASES_DIR.glob("**/*.scxml") if "sub" not in testcase_path.name diff --git a/tests/scxml/test_scxml_cases.py b/tests/scxml/test_scxml_cases.py index a49af294..ccb411da 100644 --- a/tests/scxml/test_scxml_cases.py +++ b/tests/scxml/test_scxml_cases.py @@ -1,14 +1,8 @@ -import traceback -from dataclasses import dataclass -from dataclasses import field from pathlib import Path -from typing import Any import pytest -from statemachine.event import Event from statemachine.io.scxml.processor import SCXMLProcessor -from statemachine import State from statemachine import StateChart """ @@ -22,45 +16,6 @@ """ # noqa: E501 -@dataclass(frozen=True, unsafe_hash=True) -class OnTransition: - source: str - event: str - data: str - target: str - - -@dataclass(frozen=True, unsafe_hash=True) -class OnEnterState: - state: str - event: str - data: str - - -@dataclass(frozen=True, unsafe_hash=True) -class DebugListener: - events: list[Any] = field(default_factory=list) - - def on_transition(self, event: Event, source: State, target: State, event_data): - self.events.append( - OnTransition( - source=f"{source and source.id}", - event=f"{event and event.id}", - data=f"{event_data.trigger_data.kwargs}", - target=f"{target and target.id}", - ) - ) - - def on_enter_state(self, event: Event, state: State, event_data): - self.events.append( - OnEnterState( - state=f"{state.id}", - event=f"{event and event.id}", - data=f"{event_data.trigger_data.kwargs}", - ) - ) - - class AsyncListener: """No-op async listener to trigger AsyncEngine selection.""" @@ -69,77 +24,9 @@ async def on_enter_state( ): ... # No-op: presence of async callback triggers AsyncEngine selection -@dataclass -class FailedMark: - reason: str - events: list[OnTransition] - is_assertion_error: bool - exception: Exception - logs: str - configuration: list[str] = field(default_factory=list) - - @staticmethod - def _get_header(report: str) -> str: - header_end_index = report.find("---") - return report[:header_end_index] - - def write_fail_markdown(self, testcase_path: Path): - fail_file_path = testcase_path.with_suffix(".fail.md") - if not self.is_assertion_error: - exception_traceback = "".join( - traceback.format_exception( - type(self.exception), self.exception, self.exception.__traceback__ - ) - ) - else: - exception_traceback = "Assertion of the testcase failed." - - report = """# Testcase: {testcase_path.stem} - -{reason} - -Final configuration: `{configuration}` - ---- - -## Logs -```py -{logs} -``` - -## "On transition" events -```py -{events} -``` - -## Traceback -```py -{exception_traceback} -``` -""".format( - testcase_path=testcase_path, - reason=self.reason, - configuration=self.configuration if self.configuration else "No configuration", - logs=self.logs if self.logs else "No logs", - events="\n".join(map(repr, self.events)) if self.events else "No events", - exception_traceback=exception_traceback, - ) - - if fail_file_path.exists(): - last_report = fail_file_path.read_text() - - if self._get_header(report) == self._get_header(last_report): - return - - with fail_file_path.open("w") as fail_file: - fail_file.write(report) - - def _run_scxml_testcase( testcase_path: Path, - update_fail_mark, should_generate_debug_diagram, - caplog, *, async_mode: bool = False, ) -> StateChart: @@ -150,65 +37,40 @@ def _run_scxml_testcase( """ from statemachine.contrib.diagram import DotGraphMachine - sm: "StateChart | None" = None - try: - debug = DebugListener() - listeners: list = [debug] - if async_mode: - listeners.append(AsyncListener()) - processor = SCXMLProcessor() - processor.parse_scxml_file(testcase_path) - - sm = processor.start(listeners=listeners) - if should_generate_debug_diagram: - DotGraphMachine(sm).get_graph().write_png( - testcase_path.parent / f"{testcase_path.stem}.png" - ) - assert sm is not None - return sm - except Exception as e: - if update_fail_mark: - reason = f"{e.__class__.__name__}: {e.__class__.__doc__}" - is_assertion_error = isinstance(e, AssertionError) - fail_mark = FailedMark( - reason=reason, - is_assertion_error=is_assertion_error, - events=debug.events, - exception=e, - logs=caplog.text, - configuration=[s.id for s in sm.configuration] if sm else [], - ) - fail_mark.write_fail_markdown(testcase_path) - raise - - -def _assert_passed(sm: StateChart, debug: "DebugListener | None" = None): + listeners: list = [] + if async_mode: + listeners.append(AsyncListener()) + processor = SCXMLProcessor() + processor.parse_scxml_file(testcase_path) + + sm = processor.start(listeners=listeners) + if should_generate_debug_diagram: + DotGraphMachine(sm).get_graph().write_png( + testcase_path.parent / f"{testcase_path.stem}.png" + ) + assert isinstance(sm, StateChart) + return sm + + +def _assert_passed(sm: StateChart): assert isinstance(sm, StateChart) - assert "pass" in {s.id for s in sm.configuration}, debug + assert "pass" in {s.id for s in sm.configuration} -def test_scxml_usecase_sync( - testcase_path: Path, update_fail_mark, should_generate_debug_diagram, caplog -): +def test_scxml_usecase_sync(testcase_path: Path, should_generate_debug_diagram, caplog): sm = _run_scxml_testcase( testcase_path, - update_fail_mark, should_generate_debug_diagram, - caplog, async_mode=False, ) _assert_passed(sm) @pytest.mark.asyncio() -async def test_scxml_usecase_async( - testcase_path: Path, update_fail_mark, should_generate_debug_diagram, caplog -): +async def test_scxml_usecase_async(testcase_path: Path, should_generate_debug_diagram, caplog): sm = _run_scxml_testcase( testcase_path, - update_fail_mark, should_generate_debug_diagram, - caplog, async_mode=True, ) # In async context, the engine only queued __initial__ during __init__. diff --git a/tests/scxml/w3c/mandatory/test191.fail.md b/tests/scxml/w3c/mandatory/test191.fail.md deleted file mode 100644 index 6758bd51..00000000 --- a/tests/scxml/w3c/mandatory/test191.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test191 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test192.fail.md b/tests/scxml/w3c/mandatory/test192.fail.md deleted file mode 100644 index 4e63a5ab..00000000 --- a/tests/scxml/w3c/mandatory/test192.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test192 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test207.fail.md b/tests/scxml/w3c/mandatory/test207.fail.md deleted file mode 100644 index 6e1f59b5..00000000 --- a/tests/scxml/w3c/mandatory/test207.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test207 - -AssertionError: Assertion failed. - -Final configuration: `No configuration` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to } -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test215.fail.md b/tests/scxml/w3c/mandatory/test215.fail.md deleted file mode 100644 index acc81543..00000000 --- a/tests/scxml/w3c/mandatory/test215.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test215 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:259 Assign: Var1 = 'http://www.w3.org/TR/scxml/' -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test216.fail.md b/tests/scxml/w3c/mandatory/test216.fail.md deleted file mode 100644 index 8f05de59..00000000 --- a/tests/scxml/w3c/mandatory/test216.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test216 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:259 Assign: Var1 = 'file:test216sub1.scxml' -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test220.fail.md b/tests/scxml/w3c/mandatory/test220.fail.md deleted file mode 100644 index 557e508b..00000000 --- a/tests/scxml/w3c/mandatory/test220.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test220 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test223.fail.md b/tests/scxml/w3c/mandatory/test223.fail.md deleted file mode 100644 index 5674ac51..00000000 --- a/tests/scxml/w3c/mandatory/test223.fail.md +++ /dev/null @@ -1,37 +0,0 @@ -# Testcase: test223 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to S1} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {S1} -DEBUG statemachine.io.scxml.actions:actions.py:180 Cond Var1 -> None -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S1 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S1} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='s1') -OnEnterState(state='s1', event='timeout', data='{}') -OnTransition(source='s1', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test224.fail.md b/tests/scxml/w3c/mandatory/test224.fail.md deleted file mode 100644 index 14731679..00000000 --- a/tests/scxml/w3c/mandatory/test224.fail.md +++ /dev/null @@ -1,41 +0,0 @@ -# Testcase: test224 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG pydot:__init__.py:15 pydot initializing -DEBUG pydot:__init__.py:16 pydot 3.0.3 -DEBUG pydot.dot_parser:dot_parser.py:43 pydot dot_parser module initializing -DEBUG pydot.core:core.py:20 pydot core module initializing -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to S1} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {S1} -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S1 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S1} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='s1') -OnEnterState(state='s1', event='timeout', data='{}') -OnTransition(source='s1', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test225.fail.md b/tests/scxml/w3c/mandatory/test225.fail.md deleted file mode 100644 index 4862cabd..00000000 --- a/tests/scxml/w3c/mandatory/test225.fail.md +++ /dev/null @@ -1,41 +0,0 @@ -# Testcase: test225 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG pydot:__init__.py:15 pydot initializing -DEBUG pydot:__init__.py:16 pydot 3.0.3 -DEBUG pydot.dot_parser:dot_parser.py:43 pydot dot_parser module initializing -DEBUG pydot.core:core.py:20 pydot core module initializing -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to S1} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {S1} -DEBUG statemachine.io.scxml.actions:actions.py:180 Cond Var1==Var2 -> True -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S1 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S1} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='s1') -OnEnterState(state='s1', event='timeout', data='{}') -OnTransition(source='s1', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test226.fail.md b/tests/scxml/w3c/mandatory/test226.fail.md deleted file mode 100644 index d644c78c..00000000 --- a/tests/scxml/w3c/mandatory/test226.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test226 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test228.fail.md b/tests/scxml/w3c/mandatory/test228.fail.md deleted file mode 100644 index e1010588..00000000 --- a/tests/scxml/w3c/mandatory/test228.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test228 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test229.fail.md b/tests/scxml/w3c/mandatory/test229.fail.md deleted file mode 100644 index 484b5af5..00000000 --- a/tests/scxml/w3c/mandatory/test229.fail.md +++ /dev/null @@ -1,33 +0,0 @@ -# Testcase: test229 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:436 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:459 Entering state: S0 -DEBUG statemachine.engines.base:base.py:98 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:119 External event: timeout -DEBUG statemachine.engines.sync:sync.py:134 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:360 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:436 States to enter: {Fail} -DEBUG statemachine.engines.base:base.py:459 Entering state: Fail - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test232.fail.md b/tests/scxml/w3c/mandatory/test232.fail.md deleted file mode 100644 index 88481632..00000000 --- a/tests/scxml/w3c/mandatory/test232.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test232 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test233.fail.md b/tests/scxml/w3c/mandatory/test233.fail.md deleted file mode 100644 index 854922fa..00000000 --- a/tests/scxml/w3c/mandatory/test233.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test233 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test234.fail.md b/tests/scxml/w3c/mandatory/test234.fail.md deleted file mode 100644 index a77d890b..00000000 --- a/tests/scxml/w3c/mandatory/test234.fail.md +++ /dev/null @@ -1,33 +0,0 @@ -# Testcase: test234 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {P0, P01, P02} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {p0, p01, p02} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from P0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {P02, P01, P0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='p0', event='__initial__', data='{}') -OnEnterState(state='p01', event='__initial__', data='{}') -OnEnterState(state='p02', event='__initial__', data='{}') -OnTransition(source='p0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test235.fail.md b/tests/scxml/w3c/mandatory/test235.fail.md deleted file mode 100644 index 52c340c3..00000000 --- a/tests/scxml/w3c/mandatory/test235.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test235 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test236.fail.md b/tests/scxml/w3c/mandatory/test236.fail.md deleted file mode 100644 index c2b53337..00000000 --- a/tests/scxml/w3c/mandatory/test236.fail.md +++ /dev/null @@ -1,27 +0,0 @@ -# Testcase: test236 - -AssertionError: Assertion failed. - -Final configuration: `['s0']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test239.fail.md b/tests/scxml/w3c/mandatory/test239.fail.md deleted file mode 100644 index e662da56..00000000 --- a/tests/scxml/w3c/mandatory/test239.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test239 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test240.fail.md b/tests/scxml/w3c/mandatory/test240.fail.md deleted file mode 100644 index 17166f15..00000000 --- a/tests/scxml/w3c/mandatory/test240.fail.md +++ /dev/null @@ -1,36 +0,0 @@ -# Testcase: test240 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG pydot:__init__.py:15 pydot initializing -DEBUG pydot:__init__.py:16 pydot 3.0.3 -DEBUG pydot.dot_parser:dot_parser.py:43 pydot dot_parser module initializing -DEBUG pydot.core:core.py:20 pydot core module initializing -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test241.fail.md b/tests/scxml/w3c/mandatory/test241.fail.md deleted file mode 100644 index a1c1cc00..00000000 --- a/tests/scxml/w3c/mandatory/test241.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test241 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test243.fail.md b/tests/scxml/w3c/mandatory/test243.fail.md deleted file mode 100644 index 2c884de2..00000000 --- a/tests/scxml/w3c/mandatory/test243.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test243 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test244.fail.md b/tests/scxml/w3c/mandatory/test244.fail.md deleted file mode 100644 index 2a5cb71c..00000000 --- a/tests/scxml/w3c/mandatory/test244.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test244 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test245.fail.md b/tests/scxml/w3c/mandatory/test245.fail.md deleted file mode 100644 index e77d4711..00000000 --- a/tests/scxml/w3c/mandatory/test245.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test245 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test247.fail.md b/tests/scxml/w3c/mandatory/test247.fail.md deleted file mode 100644 index 061adfe1..00000000 --- a/tests/scxml/w3c/mandatory/test247.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test247 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test253.fail.md b/tests/scxml/w3c/mandatory/test253.fail.md deleted file mode 100644 index 11a3ce46..00000000 --- a/tests/scxml/w3c/mandatory/test253.fail.md +++ /dev/null @@ -1,31 +0,0 @@ -# Testcase: test253 - -AssertionError: Assertion failed. - -Final configuration: `No configuration` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to } -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test276.fail.md b/tests/scxml/w3c/mandatory/test276.fail.md deleted file mode 100644 index c0babfad..00000000 --- a/tests/scxml/w3c/mandatory/test276.fail.md +++ /dev/null @@ -1,24 +0,0 @@ -# Testcase: test276 - -AssertionError: Assertion failed. - -Final configuration: `['s0']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test338.fail.md b/tests/scxml/w3c/mandatory/test338.fail.md deleted file mode 100644 index 3f1f67a6..00000000 --- a/tests/scxml/w3c/mandatory/test338.fail.md +++ /dev/null @@ -1,27 +0,0 @@ -# Testcase: test338 - -AssertionError: Assertion failed. - -Final configuration: `['s0']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test347.fail.md b/tests/scxml/w3c/mandatory/test347.fail.md deleted file mode 100644 index 46764244..00000000 --- a/tests/scxml/w3c/mandatory/test347.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test347 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0, S01} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s0, s01} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S01, S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnEnterState(state='s01', event='__initial__', data='{}') -OnTransition(source='s0', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test422.fail.md b/tests/scxml/w3c/mandatory/test422.fail.md deleted file mode 100644 index 8ef34e25..00000000 --- a/tests/scxml/w3c/mandatory/test422.fail.md +++ /dev/null @@ -1,47 +0,0 @@ -# Testcase: test422 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG pydot:__init__.py:15 pydot initializing -DEBUG pydot:__init__.py:16 pydot 3.0.3 -DEBUG pydot.dot_parser:dot_parser.py:43 pydot dot_parser module initializing -DEBUG pydot.core:core.py:20 pydot core module initializing -DEBUG statemachine.engines.base:base.py:415 States to enter: {S1, S11} -DEBUG statemachine.engines.base:base.py:438 Entering state: S1 -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.engines.base:base.py:438 Entering state: S11 -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: {s1, s11} -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S11 to S12} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S11} -DEBUG statemachine.engines.base:base.py:415 States to enter: {S12} -DEBUG statemachine.engines.base:base.py:438 Entering state: S12 -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.io.scxml.actions:actions.py:183 Cond Var1==2 -> False -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition timeout from S1 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S12, S1} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.base:base.py:438 Entering state: Fail - -``` - -## "On transition" events -```py -OnEnterState(state='s1', event='__initial__', data='{}') -OnTransition(source='', event='__initial__', data='{}', target='s1') -OnEnterState(state='s11', event='__initial__', data='{}') -OnTransition(source='s11', event='None', data='{}', target='s12') -OnEnterState(state='s12', event='None', data='{}') -OnTransition(source='s1', event='timeout', data='{}', target='fail') -OnEnterState(state='fail', event='timeout', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/mandatory/test530.fail.md b/tests/scxml/w3c/mandatory/test530.fail.md deleted file mode 100644 index 9e708966..00000000 --- a/tests/scxml/w3c/mandatory/test530.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test530 - -KeyError: Mapping key not found. - -Final configuration: `No configuration` - ---- - -## Logs -```py -No logs -``` - -## "On transition" events -```py -No events -``` - -## Traceback -```py -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/tests/scxml/test_scxml_cases.py", line 114, in test_scxml_usecase - processor.parse_scxml_file(testcase_path) - ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 30, in parse_scxml_file - return self.parse_scxml(path.stem, scxml_content) - ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 33, in parse_scxml - definition = parse_scxml(scxml_content) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 62, in parse_scxml - state = parse_state(state_elem, definition.initial_states) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 119, in parse_state - content = parse_executable_content(onentry_elem) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 176, in parse_executable_content - action = parse_element(child) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 187, in parse_element - return parse_assign(element) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 211, in parse_assign - expr = element.attrib["expr"] - ~~~~~~~~~~~~~~^^^^^^^^ -KeyError: 'expr' - -``` diff --git a/tests/scxml/w3c/optional/test201.fail.md b/tests/scxml/w3c/optional/test201.fail.md deleted file mode 100644 index 0f962d14..00000000 --- a/tests/scxml/w3c/optional/test201.fail.md +++ /dev/null @@ -1,40 +0,0 @@ -# Testcase: test201 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test446.fail.md b/tests/scxml/w3c/optional/test446.fail.md deleted file mode 100644 index 1fb477f5..00000000 --- a/tests/scxml/w3c/optional/test446.fail.md +++ /dev/null @@ -1,30 +0,0 @@ -# Testcase: test446 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test509.fail.md b/tests/scxml/w3c/optional/test509.fail.md deleted file mode 100644 index f801ca73..00000000 --- a/tests/scxml/w3c/optional/test509.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test509 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test510.fail.md b/tests/scxml/w3c/optional/test510.fail.md deleted file mode 100644 index c8899d7d..00000000 --- a/tests/scxml/w3c/optional/test510.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test510 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test518.fail.md b/tests/scxml/w3c/optional/test518.fail.md deleted file mode 100644 index 15b10ff6..00000000 --- a/tests/scxml/w3c/optional/test518.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test518 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test519.fail.md b/tests/scxml/w3c/optional/test519.fail.md deleted file mode 100644 index f5fda3d9..00000000 --- a/tests/scxml/w3c/optional/test519.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test519 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test520.fail.md b/tests/scxml/w3c/optional/test520.fail.md deleted file mode 100644 index 483e32be..00000000 --- a/tests/scxml/w3c/optional/test520.fail.md +++ /dev/null @@ -1,42 +0,0 @@ -# Testcase: test520 - -ValueError: Inappropriate argument value (of correct type). - -Final configuration: `No configuration` - ---- - -## Logs -```py -No logs -``` - -## "On transition" events -```py -No events -``` - -## Traceback -```py -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/tests/scxml/test_scxml_cases.py", line 114, in test_scxml_usecase - processor.parse_scxml_file(testcase_path) - ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 30, in parse_scxml_file - return self.parse_scxml(path.stem, scxml_content) - ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 33, in parse_scxml - definition = parse_scxml(scxml_content) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 62, in parse_scxml - state = parse_state(state_elem, definition.initial_states) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 119, in parse_state - content = parse_executable_content(onentry_elem) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 176, in parse_executable_content - action = parse_element(child) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 193, in parse_element - return parse_send(element) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 264, in parse_send - raise ValueError(" must have an 'event' or `eventexpr` attribute") -ValueError: must have an 'event' or `eventexpr` attribute - -``` diff --git a/tests/scxml/w3c/optional/test522.fail.md b/tests/scxml/w3c/optional/test522.fail.md deleted file mode 100644 index 37a61b8c..00000000 --- a/tests/scxml/w3c/optional/test522.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test522 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition error from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test531.fail.md b/tests/scxml/w3c/optional/test531.fail.md deleted file mode 100644 index c7ef01b0..00000000 --- a/tests/scxml/w3c/optional/test531.fail.md +++ /dev/null @@ -1,42 +0,0 @@ -# Testcase: test531 - -ValueError: Inappropriate argument value (of correct type). - -Final configuration: `No configuration` - ---- - -## Logs -```py -No logs -``` - -## "On transition" events -```py -No events -``` - -## Traceback -```py -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/tests/scxml/test_scxml_cases.py", line 114, in test_scxml_usecase - processor.parse_scxml_file(testcase_path) - ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 30, in parse_scxml_file - return self.parse_scxml(path.stem, scxml_content) - ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 33, in parse_scxml - definition = parse_scxml(scxml_content) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 62, in parse_scxml - state = parse_state(state_elem, definition.initial_states) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 119, in parse_state - content = parse_executable_content(onentry_elem) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 176, in parse_executable_content - action = parse_element(child) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 193, in parse_element - return parse_send(element) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 264, in parse_send - raise ValueError(" must have an 'event' or `eventexpr` attribute") -ValueError: must have an 'event' or `eventexpr` attribute - -``` diff --git a/tests/scxml/w3c/optional/test532.fail.md b/tests/scxml/w3c/optional/test532.fail.md deleted file mode 100644 index 71eed695..00000000 --- a/tests/scxml/w3c/optional/test532.fail.md +++ /dev/null @@ -1,42 +0,0 @@ -# Testcase: test532 - -ValueError: Inappropriate argument value (of correct type). - -Final configuration: `No configuration` - ---- - -## Logs -```py -No logs -``` - -## "On transition" events -```py -No events -``` - -## Traceback -```py -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/tests/scxml/test_scxml_cases.py", line 114, in test_scxml_usecase - processor.parse_scxml_file(testcase_path) - ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 30, in parse_scxml_file - return self.parse_scxml(path.stem, scxml_content) - ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/processor.py", line 33, in parse_scxml - definition = parse_scxml(scxml_content) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 62, in parse_scxml - state = parse_state(state_elem, definition.initial_states) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 119, in parse_state - content = parse_executable_content(onentry_elem) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 176, in parse_executable_content - action = parse_element(child) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 193, in parse_element - return parse_send(element) - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/parser.py", line 264, in parse_send - raise ValueError(" must have an 'event' or `eventexpr` attribute") -ValueError: must have an 'event' or `eventexpr` attribute - -``` diff --git a/tests/scxml/w3c/optional/test534.fail.md b/tests/scxml/w3c/optional/test534.fail.md deleted file mode 100644 index 838cdb86..00000000 --- a/tests/scxml/w3c/optional/test534.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test534 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test557.fail.md b/tests/scxml/w3c/optional/test557.fail.md deleted file mode 100644 index 2e936907..00000000 --- a/tests/scxml/w3c/optional/test557.fail.md +++ /dev/null @@ -1,30 +0,0 @@ -# Testcase: test557 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test558.fail.md b/tests/scxml/w3c/optional/test558.fail.md deleted file mode 100644 index 5634f4c9..00000000 --- a/tests/scxml/w3c/optional/test558.fail.md +++ /dev/null @@ -1,36 +0,0 @@ -# Testcase: test558 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.io.scxml.actions:actions.py:180 Cond var1 == 'this is a string' -> True -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S0 to S1} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {S1} -DEBUG statemachine.io.scxml.actions:actions.py:180 Cond var2 == 'this is a string' -> False -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition from S1 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S1} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='None', data='{}', target='s1') -OnEnterState(state='s1', event='None', data='{}') -OnTransition(source='s1', event='None', data='{}', target='fail') -OnEnterState(state='fail', event='None', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test561.fail.md b/tests/scxml/w3c/optional/test561.fail.md deleted file mode 100644 index ee3a2368..00000000 --- a/tests/scxml/w3c/optional/test561.fail.md +++ /dev/null @@ -1,32 +0,0 @@ -# Testcase: test561 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'foo' put on the 'external' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:116 External event: foo -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='foo', data='{}', target='fail') -OnEnterState(state='fail', event='foo', data='{}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test567.fail.md b/tests/scxml/w3c/optional/test567.fail.md deleted file mode 100644 index 1030be1d..00000000 --- a/tests/scxml/w3c/optional/test567.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test567 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'timeout' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: timeout -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -``` diff --git a/tests/scxml/w3c/optional/test577.fail.md b/tests/scxml/w3c/optional/test577.fail.md deleted file mode 100644 index 53d58b26..00000000 --- a/tests/scxml/w3c/optional/test577.fail.md +++ /dev/null @@ -1,43 +0,0 @@ -# Testcase: test577 - -AssertionError: Assertion failed. - -Final configuration: `['fail']` - ---- - -## Logs -```py -DEBUG statemachine.engines.base:base.py:415 States to enter: {S0} -DEBUG statemachine.engines.base:base.py:93 New event 'event1' put on the 'external' queue -DEBUG statemachine.io.scxml.actions:actions.py:477 Error executing actions -Traceback (most recent call last): - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 473, in __call__ - action(*args, **kwargs) - ~~~~~~^^^^^^^^^^^^^^^^^ - File "/home/macedo/projects/python-statemachine/statemachine/io/scxml/actions.py", line 348, in send_action - raise ValueError( - "Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported" - ) -ValueError: Only 'http://www.w3.org/TR/scxml/#SCXMLEventProcessor' event type is supported -DEBUG statemachine.engines.base:base.py:93 New event 'error.execution' put on the 'internal' queue -DEBUG statemachine.engines.sync:sync.py:64 Processing loop started: s0 -DEBUG statemachine.engines.sync:sync.py:89 Eventless/internal queue: {transition * from S0 to Fail} -DEBUG statemachine.engines.base:base.py:339 States to exit: {S0} -DEBUG statemachine.engines.base:base.py:415 States to enter: {Fail} -DEBUG statemachine.engines.sync:sync.py:116 External event: event1 -DEBUG statemachine.engines.sync:sync.py:131 Enabled transitions: {} - -``` - -## "On transition" events -```py -OnEnterState(state='s0', event='__initial__', data='{}') -OnTransition(source='s0', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}', target='fail') -OnEnterState(state='fail', event='error.execution', data='{\'event_id\': None, \'error\': ValueError("Only \'http://www.w3.org/TR/scxml/#SCXMLEventProcessor\' event type is supported")}') -``` - -## Traceback -```py -Assertion of the testcase failed. -```