Skip to content

Commit

Permalink
t2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 16, 2024
1 parent 367cfce commit 4f8174c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions moler/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,6 @@ def remove_state_from_sm(source_sm: dict, source_transitions: dict, state_to_rem
:param state_to_remove: name of state to remove
:return: tuple with 2 dicts without state_to_remove, 0 - new state machine, 1 - new transitions
"""
from pprint import pformat
print(f"source sm: {pformat(source_sm)}")
print(f"source transitions: {pformat(source_transitions)}")
new_sm = copy.deepcopy(source_sm)
new_transitions = copy.deepcopy(source_transitions)

Expand Down
7 changes: 5 additions & 2 deletions test/device/test_SM_unix_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,16 @@ def test_unix_remote_device_not_connected(device_name):
execution += 1


@pytest.mark.parametrize("devices", [unix_remotes, unix_remotes_proxy_pc])
@pytest.mark.parametrize("devices", [unix_remotes, unix_remotes_proxy_pc, unix_remotes_real_io])
def test_unix_sm_identity(devices):
dev0 = DeviceFactory.get_device(name=devices[0])
dev1 = DeviceFactory.get_device(name=devices[1])

assert dev0._stored_transitions == dev1._stored_transitions
assert dev0._
assert dev0._state_hops == dev1._state_hops
assert dev0._state_prompts == dev1._state_prompts
assert dev0._configurations == dev1._configurations
assert dev0._newline_chars == dev1._newline_chars


@pytest.fixture
Expand Down

0 comments on commit 4f8174c

Please sign in to comment.