From 6d0133605825ce9bf37b2e636c7d05567a00615f Mon Sep 17 00:00:00 2001 From: MarcusRostSAP Date: Sun, 8 Oct 2023 13:52:19 +0200 Subject: [PATCH] reformatted for linting bot --- tests/test_end_constraints.py | 3 +++ tests/test_init_constraints.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/test_end_constraints.py b/tests/test_end_constraints.py index 0b65c4b..e080e90 100644 --- a/tests/test_end_constraints.py +++ b/tests/test_end_constraints.py @@ -20,15 +20,18 @@ def test_end_constraint_is_generated_with_linear_parser(): res = init_test_setup_for_parser(LINEAR_MERMAID_GRAPH) assert res[-1]['is end'] == True + def test_end_constraint_is_generated_without_explicit_end_event(): res = init_test_setup_for_compiler(LINEAR_SEQUENCE_DIAGRAM_WITHOUT_START_AND_END) assert "End[second element]" in res + def test_end_constraint_is_generated_when_multiple_endings(): res = init_test_setup_for_parser(XOR_GATEWAY_SEQUENCE_DIAGRAM) assert res[-1]['is end'] and res[-2]['is end'] and not res[3]['is end'] + def test_end_constraint_is_generated_when_xor_gateway(): res = init_test_setup_for_compiler(XOR_GATEWAY_SEQUENCE_DIAGRAM) expected_ending_constraints = [ diff --git a/tests/test_init_constraints.py b/tests/test_init_constraints.py index 2473f10..afa118a 100644 --- a/tests/test_init_constraints.py +++ b/tests/test_init_constraints.py @@ -19,10 +19,12 @@ def test_that_each_start_has_init_constraint(): ] assert all(constraint in res for constraint in expected_init_constraints) + def test_missing_init_constraints_for_XOR_gate_parser(): res = init_test_setup_for_parser(XOR_GATEWAY_SEQUENCE_DIAGRAM) assert res[4]['is start'] and res[5]['is start'] and not res[0]['is start'] + def test_missing_init_constraints_for_XOR_gate(): res = init_test_setup_for_compiler(XOR_GATEWAY_SEQUENCE_DIAGRAM) expected_init_constraints = [