Skip to content

Commit f86cfe3

Browse files
committed
removed connection alias
1 parent f4d664a commit f86cfe3

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/opengeodeweb_microservice/database/connection.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ def get_database() -> Optional[SQLAlchemy]:
2525
return db
2626

2727

28-
get_database_connection = get_database
29-
30-
3128
def get_session() -> Optional[scoped_session[Session]]:
3229
return db.session if db else None

tests/test_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from src.opengeodeweb_microservice.database.connection import (
22
get_session,
3-
get_database_connection,
3+
get_database,
44
)
55
from src.opengeodeweb_microservice.microservice.data import Data
66

77

88
def test_database_connection_basic(app_context):
99
session = get_session()
1010
assert session is not None
11-
connection = get_database_connection()
11+
connection = get_database()
1212
assert connection is not None

0 commit comments

Comments
 (0)