We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d664a commit f86cfe3Copy full SHA for f86cfe3
2 files changed
src/opengeodeweb_microservice/database/connection.py
@@ -25,8 +25,5 @@ def get_database() -> Optional[SQLAlchemy]:
25
return db
26
27
28
-get_database_connection = get_database
29
-
30
31
def get_session() -> Optional[scoped_session[Session]]:
32
return db.session if db else None
tests/test_connection.py
@@ -1,12 +1,12 @@
1
from src.opengeodeweb_microservice.database.connection import (
2
get_session,
3
- get_database_connection,
+ get_database,
4
)
5
from src.opengeodeweb_microservice.microservice.data import Data
6
7
8
def test_database_connection_basic(app_context):
9
session = get_session()
10
assert session is not None
11
- connection = get_database_connection()
+ connection = get_database()
12
assert connection is not None
0 commit comments