@@ -48,7 +48,7 @@ def raise_for_status(self):
48
48
else :
49
49
return MockResponse ([{"signals" : [{"active" : True }]}], 200 )
50
50
51
- # the `kw` approach is needed here because otherwise pytest thinks the
51
+ # the `kw` approach is needed here because otherwise pytest thinks the
52
52
# requests_mock arg is supposed to be a fixture
53
53
@requests_mock .Mocker (kw = "mock_requests" )
54
54
def test_bad_api_key (self , ** kwargs ):
@@ -57,7 +57,7 @@ def test_bad_api_key(self, **kwargs):
57
57
get_geo_signal_combos ("chng" , api_key = "" )
58
58
59
59
@mock .patch ('requests.get' , side_effect = mocked_requests_get )
60
- @mock .patch ("covidcast .metadata" )
60
+ @mock .patch ("delphi_utils.covidcast_port .metadata" )
61
61
def test_get_geo_signal_combos (self , mock_metadata , mock_get ):
62
62
"""Test that the geo signal combos are correctly pulled from the covidcast metadata."""
63
63
# Need to use actual data_source and signal names since we reference the API
@@ -87,7 +87,7 @@ def test_get_geo_signal_combos(self, mock_metadata, mock_get):
87
87
("msa" , "pcr_specimen_positivity_rate" ),
88
88
("msa" , "pcr_specimen_total_tests" )])
89
89
90
- @mock .patch ("covidcast .signal" )
90
+ @mock .patch ("delphi_utils.covidcast_port .signal" )
91
91
def test_threaded_api_calls (self , mock_signal ):
92
92
"""Test that calls to the covidcast API are made."""
93
93
0 commit comments