There was an error while loading. Please reload this page.
1 parent 1726289 commit a773c2cCopy full SHA for a773c2c
1 file changed
tests/app/services/test_user_service.py
@@ -2,13 +2,15 @@
2
3
from prometheus.app.services.database_service import DatabaseService
4
from prometheus.app.services.user_service import UserService
5
+from tests.test_utils.fixtures import postgres_container_fixture # noqa: F401
6
7
8
@pytest.fixture
-def mock_database_service(postgres_container_fixture):
9
+def mock_database_service(postgres_container_fixture): # noqa: F811
10
service = DatabaseService(postgres_container_fixture.get_connection_url())
11
service.start()
- return service
12
+ yield service
13
+ service.close()
14
15
16
def test_create_superuser(mock_database_service):
0 commit comments