Skip to content

Commit

Permalink
adjusting from statment to reference package name in all test files
Browse files Browse the repository at this point in the history
  • Loading branch information
nourshawk committed Apr 11, 2024
1 parent 1c5d281 commit 669bebc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_classification_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import sys
import os

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from src.function_classification_metrics import calculate_classification_metrics

from src.py_predpurchase import calculate_classification_metrics

def test_perfect_predictions():
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/test_feature_importance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LinearRegression

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from src.function_feature_importance import get_feature_importances
from src.py_predpurchase import get_feature_importances

# creating a mock model

Expand Down
3 changes: 1 addition & 2 deletions tests/test_model_cross_val.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import sys
import os

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from src.function_model_cross_val import model_cross_validation
from src.py_predpurchase import model_cross_validation

@pytest.fixture
def test_data():
Expand Down

0 comments on commit 669bebc

Please # to comment.