Spaces:
Running
Running
Merge pull request #55 from MilesCranmer/deepsource-transform-e6f88263
Browse files- test/test.py +2 -2
test/test.py
CHANGED
|
@@ -149,9 +149,9 @@ class TestFeatureSelection(unittest.TestCase):
|
|
| 149 |
np.sort(selected_X, axis=1), np.sort(X[:, [2, 3]], axis=1)
|
| 150 |
)
|
| 151 |
|
| 152 |
-
class TestHelperFunctions(unittest.TestCase):
|
| 153 |
|
| 154 |
-
|
|
|
|
| 155 |
def test_yesno(self, mock_input):
|
| 156 |
# Assert that the yes/no function correctly deals with y/n
|
| 157 |
self.assertEqual(_yesno("Test"), True)
|
|
|
|
| 149 |
np.sort(selected_X, axis=1), np.sort(X[:, [2, 3]], axis=1)
|
| 150 |
)
|
| 151 |
|
|
|
|
| 152 |
|
| 153 |
+
class TestHelperFunctions(unittest.TestCase):
|
| 154 |
+
@patch("builtins.input", side_effect=["y", "n"])
|
| 155 |
def test_yesno(self, mock_input):
|
| 156 |
# Assert that the yes/no function correctly deals with y/n
|
| 157 |
self.assertEqual(_yesno("Test"), True)
|