restructure project
This commit is contained in:
@@ -18,7 +18,7 @@ class TestDatabaseConfig:
|
||||
def test_config_loads_from_env(self):
|
||||
"""Test that config loads successfully from .env file."""
|
||||
# Import config (should load .env automatically)
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
# Verify database config is loaded
|
||||
assert config.DATABASE is not None
|
||||
@@ -30,7 +30,7 @@ class TestDatabaseConfig:
|
||||
|
||||
def test_database_password_loaded(self):
|
||||
"""Test that database password is loaded from environment."""
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
# Password should be loaded from .env
|
||||
assert config.DATABASE['password'] is not None
|
||||
@@ -38,7 +38,7 @@ class TestDatabaseConfig:
|
||||
|
||||
def test_database_connection_string(self):
|
||||
"""Test database connection string generation."""
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
conn_str = config.get_db_connection_string()
|
||||
|
||||
@@ -71,7 +71,7 @@ class TestPathsConfig:
|
||||
|
||||
def test_paths_config_exists(self):
|
||||
"""Test that PATHS configuration exists."""
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
assert config.PATHS is not None
|
||||
assert 'csv_dir' in config.PATHS
|
||||
@@ -85,7 +85,7 @@ class TestAutolabelConfig:
|
||||
|
||||
def test_autolabel_config_exists(self):
|
||||
"""Test that AUTOLABEL configuration exists."""
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
assert config.AUTOLABEL is not None
|
||||
assert 'workers' in config.AUTOLABEL
|
||||
@@ -95,7 +95,7 @@ class TestAutolabelConfig:
|
||||
|
||||
def test_autolabel_ratios_sum_to_one(self):
|
||||
"""Test that train/val/test ratios sum to 1.0."""
|
||||
from src import config
|
||||
from shared import config
|
||||
|
||||
total = (
|
||||
config.AUTOLABEL['train_ratio'] +
|
||||
|
||||
Reference in New Issue
Block a user