Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cynicaljoy committed Dec 2, 2024
1 parent 69482d4 commit 1c6a87e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1c6a87e

Please sign in to comment.