Skip to content

Commit

Permalink
make sure cache is not used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 27, 2023
1 parent aa5e393 commit a77a140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/test_national.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def test_read_latest_national_values_properties(db_session, api_client):

app.dependency_overrides[get_session] = lambda: db_session

response = api_client.get("/v0/solar/GB/national/forecast")
# add test=test2 makes sure the cache is not used
response = api_client.get("/v0/solar/GB/national/forecast?test=test2")
assert response.status_code == 200

national_forecast_values = [NationalForecastValue(**f) for f in response.json()]
Expand Down

0 comments on commit a77a140

Please sign in to comment.