diff --git a/README.rst b/README.rst index e19a3d0..1c95e90 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ mocket /mɔˈkɛt/ .. image:: https://img.shields.io/pypi/dm/mocket :target: https://pypistats.org/packages/mocket -.. image:: mocket.png +.. image:: https://raw.githubusercontent.com/mindflayer/python-mocket/main/mocket.png :height: 256px :width: 256px :alt: Mocket logo diff --git a/mocket/__init__.py b/mocket/__init__.py index 5c3e7f0..2f4c303 100644 --- a/mocket/__init__.py +++ b/mocket/__init__.py @@ -31,4 +31,4 @@ "FakeSSLContext", ) -__version__ = "3.13.7" +__version__ = "3.13.8" diff --git a/mocket/plugins/httpretty/__init__.py b/mocket/plugins/httpretty/__init__.py index 97a2c3a..34de793 100644 --- a/mocket/plugins/httpretty/__init__.py +++ b/mocket/plugins/httpretty/__init__.py @@ -90,7 +90,12 @@ def force_headers(self): Response.set_base_headers = Response.original_set_base_headers # type: ignore[method-assign] if responses: - Entry.register(method, uri, *responses) + Entry.register( + method, + uri, + *responses, + match_querystring=match_querystring, + ) else: Entry.single_register( method, diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index bef5300..a1eae24 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -12,7 +12,7 @@ from mocket.plugins.aiohttp_connector import MocketTCPConnector -def test_asyncio_record_replay(event_loop): +def test_asyncio_record_replay(): async def test_asyncio_connection(): reader, writer = await asyncio.open_connection( host="google.com", @@ -33,7 +33,7 @@ async def test_asyncio_connection(): with tempfile.TemporaryDirectory() as temp_dir: with Mocketizer(truesocket_recording_dir=temp_dir): - event_loop.run_until_complete(test_asyncio_connection()) + asyncio.run(test_asyncio_connection()) files = glob.glob(f"{temp_dir}/*.json") assert len(files) == 1 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy