Skip to content

Commit 395cb9a

Browse files
charles-openclawadhit-r
andauthored
Fix distribution helper import path (#171)
* Fix distribution helper import path * test: import distribution helper from ml module --------- Co-authored-by: Greeniac <radhithya1991@gmail.com>
1 parent aad1932 commit 395cb9a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
import sys
33
from pathlib import Path
44

5-
# Add backend directory to python path
6-
backend_path = Path(__file__).parent.parent / "apps" / "backend"
5+
# Add project and backend directories to python path
6+
project_path = Path(__file__).parent.parent
7+
backend_path = project_path / "apps" / "backend"
8+
sys.path.append(str(project_path))
79
sys.path.append(str(backend_path))
810

911
from core.container import ServiceContainer

tests/test_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pandas as pd
22
import pytest
33

4-
from apps.backend.utils.visualization.data_distribution import (
4+
from apps.ml.visualizations.data_distribution import (
55
plot_numeric_distributions
66
)
77

0 commit comments

Comments
 (0)