-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix.patch
More file actions
22 lines (20 loc) · 877 Bytes
/
fix.patch
File metadata and controls
22 lines (20 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,8 +51,8 @@
TELEGRAM_CHAT_ID: "123456789"
API_KEY: "test_api_key"
HMAC_SECRET: "test_hmac_secret_key"
- DATABASE_URL: "postgresql+asyncpg://postgres:postgres@localhost:5432/grace_test_db"
- TEST_DATABASE_URL: "postgresql+asyncpg://postgres:postgres@localhost:5432/grace_test_db"
+ DATABASE_URL: "postgresql+asyncpg://postgres:postgres@127.0.0.1:5432/grace_test_db"
+ TEST_DATABASE_URL: "postgresql+asyncpg://postgres:postgres@127.0.0.1:5432/grace_test_db"
run: poetry run pytest
--- a/app/core/database.py
+++ b/app/core/database.py
@@ -39,6 +39,11 @@
future=True
+def get_engine():
+ """Return the initialized async engine."""
+ return engine
# Initialize the Asynchronous Session Factory
async_session_maker = async_sessionmaker