Skip to content

Commit d73f6b6

Browse files
committed
update to preprocess unit tests
1 parent a7fdbfa commit d73f6b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/test_write_score_code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def test_preprocess_function():
198198
data=[[0, "a", 1], [2, "b", 0]], columns=["num", "char", "bin"]
199199
)
200200
sc = ScoreCode()
201+
sc.score_code = " "
201202
def preprocess_function_one(data: pd.DataFrame):
202203
print("preprocessing happens here")
203204
return data
@@ -206,6 +207,7 @@ def preprocess_function_one(data: pd.DataFrame):
206207
assert "preprocess_function_one" in sc.score_code
207208

208209
sc = ScoreCode()
210+
sc.score_code = " "
209211
def preprocess_function_two(data: pd.DataFrame):
210212
print("preprocessing happens here?")
211213
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)