Skip to content

Commit

Permalink
update module name
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomkhj committed Nov 21, 2023
1 parent d497134 commit 185e463
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_shape_check.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import numpy as np
from constrained_linear_regression.constrained_linear_regression import ConstrainedLinearRegression
from constrained_linear_regression.multi_constrained_linear_regression import MultiConstrainedLinearRegression
from constrainedML.constrained_linear_regression import ConstrainedLinearRegression
from constrainedML.multi_constrained_linear_regression import (
MultiConstrainedLinearRegression,
)
from sklearn.datasets import load_linnerud
import pytest


@pytest.mark.xfail(raises=AssertionError)
def test_constraint_min_coef():
X, Y = load_linnerud(return_X_y=True)
Expand All @@ -17,6 +20,7 @@ def test_constraint_min_coef():
model.reset()
assert model.global_horizon_count == 0 # Check reset function


@pytest.mark.xfail(raises=AssertionError)
def test_constraint_max_coef():
X, Y = load_linnerud(return_X_y=True)
Expand All @@ -30,6 +34,7 @@ def test_constraint_max_coef():
model.reset()
assert model.global_horizon_count == 0 # Check reset function


@pytest.mark.xfail(raises=AssertionError)
def test_multi_constraint_min_coef():
X, Y = load_linnerud(return_X_y=True)
Expand All @@ -43,6 +48,7 @@ def test_multi_constraint_min_coef():
model.reset()
assert model.global_horizon_count == 0 # Check reset function


@pytest.mark.xfail(raises=AssertionError)
def test_multi_constraint_max_coef():
X, Y = load_linnerud(return_X_y=True)
Expand Down

0 comments on commit 185e463

Please sign in to comment.