Skip to content

Commit e453c5b

Browse files
dsweber2dshemetov
authored andcommitted
updates borked old tests, caught by @dshemetov
1 parent 65c2d46 commit e453c5b

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

_delphi_utils_python/tests/test_weekday.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,10 @@ def test_get_params(self):
1818

1919
result = Weekday.get_params(self.TEST_DATA, "den", ["num"], "date", [1], TEST_LOGGER)
2020
print(result)
21-
expected_result = [
22-
-0.05993665,
23-
-0.0727396,
24-
-0.05618517,
25-
0.0343405,
26-
0.12534997,
27-
0.04561813,
28-
-2.27669028,
29-
-1.89564374,
30-
-1.5695407,
31-
-1.29838116,
32-
-1.08216513,
33-
-0.92089259,
34-
-0.81456355,
35-
-0.76317802,
36-
-0.76673598,
37-
-0.82523745,
38-
]
21+
expected_result = np.array([[-0.05998306, -0.07269935, -0.05603804, 0.03437098, 0.12530953,
22+
0.04554737, -2.27674403, -1.89568887, -1.56957556, -1.29840412,
23+
-1.08217453, -0.9208868 , -0.81454092, -0.76313691, -0.76667475,
24+
-0.82515445]])
3925
assert np.allclose(result, expected_result)
4026

4127
def test_calc_adjustment_with_zero_parameters(self):
@@ -71,4 +57,4 @@ def test_calc_adjustment(self):
7157
# The date and "den" column are unchanged by this function
7258
assert np.allclose(result["num"].values, expected_nums)
7359
assert np.allclose(result["den"].values, self.TEST_DATA["den"].values)
74-
assert np.array_equal(result["date"].values, self.TEST_DATA["date"].values)
60+
assert np.array_equal(result["date"].values, self.TEST_DATA["date"].values)

0 commit comments

Comments
 (0)