Skip to content

Commit fcc5d6a

Browse files
Jingjing TangJingjing Tang
authored andcommitted
update unittests
1 parent c8f6e1e commit fcc5d6a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

nchs_mortality/tests/test_run.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@ def test_output_files_exist(self, run_as_module, date):
3232
"202025",
3333
"202026",
3434
]
35-
metrics = [
36-
'covid_deaths', 'total_deaths', 'pneumonia_deaths',
37-
'pneumonia_and_covid_deaths', 'influenza_deaths',
38-
'pneumonia_influenza_or_covid_19_deaths'
39-
]
35+
metrics = ['deaths_covid_incidence',
36+
'deaths_allcause_incidence',
37+
'deaths_percent_of_expected',
38+
'deaths_pneumonia_notflu_incidence',
39+
'deaths_covid_and_pneumonia_notflu_incidence',
40+
'deaths_flu_incidence',
41+
'deaths_pneumonia_or_flu_or_covid_incidence']
4042
sensors = ["num", "prop"]
4143

4244
expected_files = []
4345
for date in dates:
4446
for metric in metrics:
45-
if metric == "percent_of_expected_deaths":
47+
if metric == "deaths_percent_of_expected":
4648
expected_files += ["weekly_" + date + "_state_wip_" \
4749
+ metric + ".csv"]
4850
else:
@@ -61,6 +63,6 @@ def test_output_file_format(self, run_as_module, date):
6163

6264
for output_folder in folders:
6365
df = pd.read_csv(
64-
join(output_folder, "weekly_202026_state_wip_covid_deaths_prop.csv")
66+
join(output_folder, "weekly_202026_state_wip_deaths_covid_incidence_prop.csv")
6567
)
6668
assert (df.columns.values == ["geo_id", "val", "se", "sample_size"]).all()

0 commit comments

Comments
 (0)