Skip to content

Commit

Permalink
Enable testing with FakeConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Mar 15, 2023
1 parent 3677298 commit 0e11e7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fakeredis/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def __init__(self, *args, **kwargs):
self.client_name = None
self._sock = None
self._selector = None
self._server = kwargs.pop('server')
self._server = kwargs.pop('server', None)
if self._server is None:
self._server = FakeServer()
super().__init__(*args, **kwargs)

def connect(self):
Expand Down

0 comments on commit 0e11e7d

Please sign in to comment.