From 1c6a87e7d8949d2bd98030f11b3a970130eb6b23 Mon Sep 17 00:00:00 2001 From: Darren Cunningham Date: Mon, 2 Dec 2024 10:46:23 -0500 Subject: [PATCH] fixed tests --- Makefile | 4 ++-- tests/unit/test_client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0418e32a..1e1c48b6 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ lint-tests: python -m yapf -i --recursive tests run-fauna: - docker-compose -f tests/docker-compose-tests.yml up --build faunadb + docker compose -f tests/docker-compose-tests.yml up --build faunadb docker-test: - docker-compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION) + docker compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION) diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py index 8cfd636a..deead0cd 100644 --- a/tests/unit/test_client.py +++ b/tests/unit/test_client.py @@ -188,7 +188,7 @@ def validate_tags(request: httpx.Request): json={"data": "mocked"}, ) - httpx_mock.add_callback(validate_tags) + httpx_mock.add_callback(validate_tags, is_reusable=True) with httpx.Client() as mockClient: with subtests.test("should not be set"): @@ -246,7 +246,7 @@ def validate_headers(request: httpx.Request): json={"data": "mocked"}, ) - httpx_mock.add_callback(validate_headers) + httpx_mock.add_callback(validate_headers, is_reusable=True) with httpx.Client() as mockClient: http_client = HTTPXClient(mockClient)