Skip to content

Commit 8a308c4

Browse files
committed
fix test
1 parent 4c44d3a commit 8a308c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

changehc/tests/test_update_sensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def test_geo_reindex(self):
9191
"timestamp": [pd.Timestamp(f'03-{i}-2020') for i in range(1, 14)]})
9292
if geo == "county": # test for rogue \N
9393
row_contain_N = {"num": 700, "fips": r"\N", "den": 2000, "timestamp": pd.Timestamp("03-15-2020")}
94-
test_data = test_data.append(row_contain_N, ignore_index=True)
94+
test_data = pd.concat([test_data, pd.DataFrame([row_contain_N])], ignore_index=True)
95+
9596
data_frame = su_inst.geo_reindex(test_data)
9697
assert data_frame.shape[0] == multiple*len(su_inst.fit_dates)
9798
assert (data_frame.sum(numeric_only=True) == (4200,19000)).all()

0 commit comments

Comments
 (0)