Skip to content

Commit

Permalink
Merge pull request #358 from giffels/fix/deployment-tests
Browse files Browse the repository at this point in the history
Fix deployment tests
  • Loading branch information
giffels authored Jan 9, 2025
2 parents 1cf097e + f1228d9 commit 3b08b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. Created by changelog.py at 2024-10-21, command
.. Created by changelog.py at 2024-12-18, command
'/Users/giffler/.cache/pre-commit/repoecmh3ah8/py_env-python3.12/bin/changelog docs/source/changes compile --categories Added Changed Fixed Security Deprecated --output=docs/source/changelog.rst'
based on the format of 'https://keepachangelog.com/'
Expand Down
6 changes: 4 additions & 2 deletions tests/rest_t/routers_t/base_test_case_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from tardis.utilities.attributedict import AttributeDict
from tests.utilities.utilities import run_async

from httpx import AsyncClient
from httpx import AsyncClient, ASGITransport

from unittest import TestCase
from unittest.mock import patch
Expand Down Expand Up @@ -44,7 +44,9 @@ def setUp(self) -> None:
app,
) # has to be imported after SqliteRegistry patch

self.client = AsyncClient(app=app, base_url="http://test")
self.client = AsyncClient(
transport=ASGITransport(app=app), base_url="http://test"
)
self.test_user = {
"user_name": "test1",
"password": "test",
Expand Down

0 comments on commit 3b08b88

Please sign in to comment.