Skip to content

Commit 6d288d5

Browse files
authored
Fix for an unconvential usage of Mocket (#192)
* Fix for an unconvential Mocket usage. * Bump version. * Fix for CI.
1 parent bd4b0e5 commit 6d288d5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on: push
55
jobs:
66
build:
77

8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99
strategy:
1010
matrix:
11-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
11+
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10', 'pypy3.9']
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install Redis

mocket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
__all__ = ("async_mocketize", "mocketize", "Mocket", "MocketEntry", "Mocketizer")
55

6-
__version__ = "3.10.8"
6+
__version__ = "3.10.9"

mocket/mocket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ def do_nothing(*args, **kwargs):
421421

422422

423423
class Mocket:
424+
_address = (None, None)
424425
_entries = collections.defaultdict(list)
425426
_requests = []
426427
_namespace = text_type(id(_entries))

0 commit comments

Comments
 (0)