Skip to content

Commit de9a277

Browse files
committed
drop trailing location
1 parent 38c6338 commit de9a277

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/acquisition/flusurv/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def get_data(self, location):
202202

203203
# extract
204204
print("[reformatting flusurv result...]")
205-
data_out = self._group_by_epiweek(data_in), location
205+
data_out = self._group_by_epiweek(data_in)
206206

207207
# return
208208
print(f"[successfully fetched data for {location}]")

tests/acquisition/flusurv/test_flusurv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ def test_get_data(self, MockFlusurvLocation):
300300
season_api_fetcher = api_fetcher
301301
season_api_fetcher.metadata.seasonids = [30, 49]
302302

303-
self.assertEqual(season_api_fetcher.get_data("network_all"), by_epiweek_example_data
304-
)
303+
self.assertEqual(season_api_fetcher.get_data("network_all"), by_epiweek_example_data)
305304

306305
@patch(__test_target__ + ".fetch_json")
307306
def test_fetch_flusurv_location(self, MockFlusurvLocation):

0 commit comments

Comments
 (0)