Skip to content

Commit d1380f9

Browse files
committed
fix: Update import path for database_config module in unit tests
- Adjusted the sys.path in test_database_config.py to correctly locate the database_config module. - Ensured compatibility with the module's new location for improved test functionality.
1 parent cd81dac commit d1380f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/praisonai/tests/unit/test_database_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
import sys
77
import os
8-
sys.path.insert(0, 'src/praisonai/praisonai/ui')
8+
9+
# Add the path to find the database_config module
10+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../praisonai/ui'))
911

1012
# Test the database_config module
1113
from database_config import should_force_sqlite, get_database_url_with_sqlite_override, get_database_config_for_sqlalchemy

0 commit comments

Comments
 (0)