Skip to content

Commit

Permalink
updated based on comments in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Jul 31, 2023
1 parent 74b75dc commit 934578b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,6 @@ def test_first_action_passes(self, Tester, mocker: MockerFixture) -> None:

assert action1.perform_as.call_count == 1
assert action2.perform_as.call_count == 0

assert mock_kink.call_count == 1
assert mock_clear.call_count == 1
assert mock_flush.call_count == 1
Expand All @@ -1028,7 +1027,6 @@ def test_first_action_fails(self, Tester, mocker: MockerFixture) -> None:

assert action1.perform_as.call_count == 1
assert action2.perform_as.call_count == 1

assert mock_kink.call_count == 1
assert mock_clear.call_count == 2
assert mock_flush.call_count == 1
Expand All @@ -1047,6 +1045,7 @@ def perform_as(self, actor: Actor):

with caplog.at_level(logging.INFO):
TryTo(FakeActionFail()).or_(FakeActionPass()).perform_as(Tester)

assert caplog.records[0].message == "Tester tries to FakeActionPass"

def test_output_first_passes(self, Tester, caplog):
Expand All @@ -1062,4 +1061,5 @@ def perform_as(self, actor: Actor):

with caplog.at_level(logging.INFO):
TryTo(FakeActionPass()).or_(FakeActionFail()).perform_as(Tester)

assert caplog.records[0].message == "Tester tries to FakeActionPass"

0 comments on commit 934578b

Please sign in to comment.