Skip to content

Commit ae1e8be

Browse files
committed
fixed test
1 parent f4cc439 commit ae1e8be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nhsn/tests/test_patch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def test_patch(self, params_w_patch):
112112
issue_dt_str = issue_path.name.replace("issue_", "")
113113
for file in Path(issue_path / "nhsn").iterdir():
114114
df = pd.read_csv(file)
115-
val = Week.fromdate(datetime.strptime(str(int(df["val"][0])), "%Y%m%d"))
116-
assert issue_dt_str == str(val)
115+
assert issue_dt_str == str(int(df["val"][0]))
117116

118117
# clean up
119118
shutil.rmtree(f"{TEST_DIR}/patch_dir")

0 commit comments

Comments
 (0)