File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
services/notifications/tests/unit Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1414from celery .worker .worker import WorkController
1515from celery_library .signals import on_worker_init , on_worker_shutdown
1616from fastapi import FastAPI
17+ from fastapi .testclient import TestClient
1718from pytest_mock import MockerFixture
1819from pytest_simcore .helpers .monkeypatch_envs import EnvVarsDict , setenvs_from_dict
1920from servicelib .fastapi .celery .app_server import FastAPIAppServer
@@ -143,3 +144,8 @@ async def notifications_rabbitmq_rpc_client(
143144 rpc_client = await rabbitmq_rpc_client ("pytest_notifications_rpc_client" )
144145 assert rpc_client
145146 return rpc_client
147+
148+
149+ @pytest .fixture
150+ def test_client (fastapi_app : FastAPI ) -> TestClient :
151+ return TestClient (fastapi_app )
You can’t perform that action at this time.
0 commit comments