Skip to content

Commit

Permalink
reformatted for linting bot
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusRost committed Oct 8, 2023
1 parent 3db1835 commit 6d01336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_end_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 2 additions & 0 deletions tests/test_init_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 6d01336

Please sign in to comment.