Skip to content

Commit c94c7fb

Browse files
committed
update tests w/ new method arguments
1 parent 5bb32e8 commit c94c7fb

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

claims_hosp/tests/test_indicator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121

2222
class TestLoadData:
23-
fips_data = load_data(DATA_FILEPATH, DROP_DATE, "fips")
24-
hrr_data = load_data(DATA_FILEPATH, DROP_DATE, "hrr")
23+
fips_data = load_data(DATA_FILEPATH, DROP_DATE, "fips", "Covid_like")
24+
hrr_data = load_data(DATA_FILEPATH, DROP_DATE, "hrr", "Covid_like")
2525

2626
def test_backwards_pad(self):
2727
num0 = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8], dtype=float).reshape(-1, 1)

claims_hosp/tests/test_load_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
class TestLoadData:
2222
fips_claims_data = load_claims_data(DATA_FILEPATH, DROP_DATE, "fips")
2323
hrr_claims_data = load_claims_data(DATA_FILEPATH, DROP_DATE, "hrr")
24-
fips_data = load_data(DATA_FILEPATH, DROP_DATE, "fips")
25-
hrr_data = load_data(DATA_FILEPATH, DROP_DATE, "hrr")
24+
fips_data = load_data(DATA_FILEPATH, DROP_DATE, "fips", "Covid_like")
25+
hrr_data = load_data(DATA_FILEPATH, DROP_DATE, "hrr", "Covid_like")
2626

2727
def test_base_unit(self):
2828
with pytest.raises(AssertionError):
2929
load_claims_data(DATA_FILEPATH, DROP_DATE, "foo")
3030

3131
with pytest.raises(AssertionError):
32-
load_data(DATA_FILEPATH, DROP_DATE, "foo")
32+
load_data(DATA_FILEPATH, DROP_DATE, "foo", "Covid_like")
3333

3434
def test_claims_columns(self):
3535
assert "hrr" in self.hrr_claims_data.index.names

claims_hosp/tests/test_update_indicator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_shift_dates(self):
5252
self.weekday,
5353
self.write_se,
5454
Config.signal_name,
55+
"Covid_like",
5556
TEST_LOGGER
5657
)
5758
## Test init
@@ -74,6 +75,7 @@ def test_geo_reindex(self):
7475
self.weekday,
7576
self.write_se,
7677
Config.signal_name,
78+
"Covid_like",
7779
TEST_LOGGER
7880
)
7981
updater.shift_dates()
@@ -93,6 +95,7 @@ def test_update_indicator(self):
9395
self.weekday,
9496
self.write_se,
9597
Config.signal_name,
98+
"Covid_like",
9699
TEST_LOGGER
97100
)
98101

@@ -115,6 +118,7 @@ def test_write_to_csv_results(self):
115118
self.weekday,
116119
self.write_se,
117120
Config.signal_name,
121+
"Covid_like",
118122
TEST_LOGGER
119123
)
120124

@@ -196,6 +200,7 @@ def test_write_to_csv_with_se_results(self):
196200
True,
197201
True,
198202
signal_name,
203+
"Covid_like",
199204
TEST_LOGGER
200205
)
201206

@@ -248,6 +253,7 @@ def test_write_to_csv_wrong_results(self):
248253
self.weekday,
249254
self.write_se,
250255
Config.signal_name,
256+
"Covid_like",
251257
TEST_LOGGER
252258
)
253259

0 commit comments

Comments
 (0)