Skip to content

Commit

Permalink
update pytest fixture from loop to event_loop in svi_client (NOAA-OWP…
Browse files Browse the repository at this point in the history
  • Loading branch information
jarq6c authored Feb 18, 2025
1 parent 8f239ba commit ce6befc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/svi_client/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
@pytest.mark.parametrize("location", LOCATIONS)
@pytest.mark.parametrize("year", YEARS)
@pytest.mark.parametrize("scale", GEOGRAPHIC_SCALES)
def test_svi_client_get_integration(location, year, scale, loop):
def test_svi_client_get_integration(location, year, scale, event_loop):
client = SVIClient(enable_cache=False)
df = client.get(location, scale, year)
assert df.loc[0, "state_abbreviation"] == location
Expand All @@ -72,7 +72,7 @@ def test_svi_client_get_integration(location, year, scale, loop):
@pytest.mark.slow
@pytest.mark.parametrize("year", YEARS)
@pytest.mark.parametrize("scale", GEOGRAPHIC_SCALES)
def test_svi_client_get_integration_us(year, scale, loop):
def test_svi_client_get_integration_us(year, scale, event_loop):
client = SVIClient(enable_cache=False)
df = client.get("us", scale, year)
assert df.state_abbreviation.isin(LOCATIONS).all()

0 comments on commit ce6befc

Please sign in to comment.