Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Oct 24, 2023
1 parent 673fc6e commit 217551a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,21 +854,23 @@ def test_passthru_attribute_missing(self) -> None:
def test_answerable_answers(self, Tester) -> None:
question = FakeQuestion()
original_answered_by = question.answered_by
s = Silently(question)
s.answered_by(Tester)

Silently(question).answered_by(Tester)

original_answered_by.assert_called_once_with(Tester)

def test_performable_performs(self, Tester) -> None:
action = FakeAction()
original_perform_as = action.perform_as

Silently(action).perform_as(Tester)

original_perform_as.assert_called_once_with(Tester)

def test_resolvable_resolves(self) -> None:
resolution = FakeResolution()
original_resolve = resolution.resolve

Silently(resolution).resolve()

original_resolve.assert_called_once_with()
Expand Down

0 comments on commit 217551a

Please sign in to comment.