Skip to content

Commit 2730241

Browse files
committed
fix: update import path for database_config module in unit tests
- Adjusted the import statement in test_database_config.py to reference the correct module path. - Ensures that the tests can locate the database_config functionalities properly.
1 parent ac4892c commit 2730241

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/praisonai/tests/unit/test_database_config.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
import sys
77
import os
88

9-
# Add the path to find the database_config module
10-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../praisonai/ui'))
11-
12-
# Test the database_config module
13-
from database_config import should_force_sqlite, get_database_url_with_sqlite_override, get_database_config_for_sqlalchemy
9+
# Import from the proper module path
10+
from praisonai.ui.database_config import should_force_sqlite, get_database_url_with_sqlite_override, get_database_config_for_sqlalchemy
1411

1512
def test_database_config():
1613
print("Testing database_config utilities...")

0 commit comments

Comments
 (0)