Skip to content
Snippets Groups Projects
Unverified Commit b264ceca authored by Drew Devereux's avatar Drew Devereux
Browse files

[MCCS-163] Update state machine docs image and rewrite dense lines

parent ac1cd7f9
Branches
No related tags found
No related merge requests found
docs/source/images/OperationalStateStateMachine_coupled.png

38.2 KiB | W: | H:

docs/source/images/OperationalStateStateMachine_coupled.png

40.6 KiB | W: | H:

docs/source/images/OperationalStateStateMachine_coupled.png
docs/source/images/OperationalStateStateMachine_coupled.png
docs/source/images/OperationalStateStateMachine_coupled.png
docs/source/images/OperationalStateStateMachine_coupled.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -39,8 +39,12 @@ def pytest_generate_tests(metafunc):
spec = mark.args[0]
states = {state: spec["states"][state] or state for state in spec["states"]}
triggers = set(transition["trigger"] for transition in spec["transitions"])
expected = defaultdict(lambda: None, (((transition["from"], transition["trigger"]), states[transition["to"]]) for transition in spec["transitions"]))
triggers = set()
expected = defaultdict(lambda: None)
for transition in spec["transitions"]:
triggers.add(transition["trigger"])
expected[(transition["from"], transition["trigger"])] = states[transition["to"]]
test_cases = list(itertools.product(sorted(states), sorted(triggers)))
test_ids = [f"{state}-{trigger}" for (state, trigger) in test_cases]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment