Skip to content

Commit

Permalink
do not need to include hard coded method in mock objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Oct 23, 2023
1 parent e156ae6 commit df2f4b9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/useful_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ def __new__(cls, *_, **__):
rt.describe.return_value = "FakeAction"
return rt

def describe(self) -> str:
return "FakeAction"

return FakeAction


Expand All @@ -25,9 +22,6 @@ def __new__(cls, *_, **__):
rt.answered_by.return_value = True
return rt

def describe(self) -> str:
return "FakeQuestion"

return FakeQuestion


Expand All @@ -39,9 +33,6 @@ def __new__(cls, *_, **__):
rt.describe.return_value = "FakeResolution"
return rt

def describe(self) -> str:
return "FakeResolution"

return FakeResolution


Expand Down

0 comments on commit df2f4b9

Please sign in to comment.