Skip to content

Commit

Permalink
better tests names
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Aug 9, 2024
1 parent 4c27adf commit 07ff68a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/mmm/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def test_hill_zero(self, sigma, beta, lam):
(-3, 3, 2, -1),
],
)
def test_sigma_upper_bound(self, x, sigma, beta, lam):
def test_hill_sigma_upper_bound(self, x, sigma, beta, lam):
y = hill_saturation(x, sigma, beta, lam).eval()
assert y <= sigma, f"The output {y} exceeds the upper bound sigma {sigma}."

Expand All @@ -503,7 +503,7 @@ def test_sigma_upper_bound(self, x, sigma, beta, lam):
(-1, 3, 2, -1, 1.5),
],
)
def test_behavior_at_lambda(self, x, sigma, beta, lam, expected):
def test_hill_behavior_at_lambda(self, x, sigma, beta, lam, expected):
y = hill_saturation(x, sigma, beta, lam).eval()
np.testing.assert_almost_equal(
y,
Expand All @@ -520,7 +520,7 @@ def test_behavior_at_lambda(self, x, sigma, beta, lam, expected):
(np.array([1, 2, 3]), 3, 2, 2),
],
)
def test_vectorized_input(self, x, sigma, beta, lam):
def test_hill_vectorized_input(self, x, sigma, beta, lam):
y = hill_saturation(x, sigma, beta, lam).eval()
assert (
y.shape == x.shape
Expand All @@ -534,7 +534,7 @@ def test_vectorized_input(self, x, sigma, beta, lam):
(3, 2, -1),
],
)
def test_asymptotic_behavior(self, sigma, beta, lam):
def test_hill_asymptotic_behavior(self, sigma, beta, lam):
x = 1e6 # A very large value to approximate infinity
y = hill_saturation(x, sigma, beta, lam).eval()
np.testing.assert_almost_equal(
Expand Down

0 comments on commit 07ff68a

Please sign in to comment.