Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
•
717bfae
1
Parent(s):
eae8f9c
Format code with black
Browse filesThis commit fixes the style issues introduced in eae8f9c according to the output
from black.
Details: https://deepsource.io/gh/MilesCranmer/PySR/transform/b5aaa07e-e4fe-40a8-8945-54414bf75589/
- 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)
|