Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mocket/plugins/pook_mock_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ def single_register(cls, method, uri, body='', status=200, headers=None, match_q


class MocketInterceptor(BaseInterceptor):
def activate(self):
@staticmethod
def activate():
Mocket.disable()
Mocket.enable()

def disable(self):
@staticmethod
def disable():
Mocket.disable()


Expand Down
3 changes: 2 additions & 1 deletion tests/main/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def test_register(self):
Mocket._entries[("localhost", 6379)][0].responses[0].data, b"+OK\r\n"
)

def test_register_response(self):
@staticmethod
def test_register_response():
Entry.register_response(command='SET snowman "is ☃!"', response="")


Expand Down