Skip to content

Commit

Permalink
Update test_http_endpoints.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adfarth committed Jan 25, 2025
1 parent 2f9edd6 commit d739c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reoptjl/test/test_http_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def test_cambium_profile_endpoint(self):
inputs = {
"load_year": 2021,
"scenario": "Mid-case",
"location_type": "States",
"location_type": "GEA Regions 2023",
"latitude": 47.606211, # Seattle
"longitude": -122.336052, # Seattle
"start_year": 2024,
Expand All @@ -249,7 +249,7 @@ def test_cambium_profile_endpoint(self):
self.assertHttpOK(resp)
view_response = json.loads(resp.content)
self.assertEquals(view_response["metric_col"], "lrmer_co2e")
self.assertEquals(view_response["location"], "Washington")
self.assertEquals(view_response["location"], "Northern Grid West")
self.assertEquals(len(view_response["emissions_factor_series_lb_CO2_per_kwh"]), 8760)
#case 2: location off shore of NJ (works for AVERT, not Cambium)
inputs["latitude"] = 39.034417
Expand Down

0 comments on commit d739c13

Please sign in to comment.