Skip to content

Commit 874c61e

Browse files
committed
add raise test
1 parent 3057bf4 commit 874c61e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/india_api/internal/inputs/indiadb/test_indiadb.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ def test_get_predicted_wind_power_production_for_location(
3232
for record in result:
3333
assert isinstance(record, PredictedPower)
3434

35+
def test_get_predicted_wind_power_production_for_location_raise_error(
36+
self, client, forecast_values
37+
) -> None:
38+
39+
with pytest.raises(Exception):
40+
result = client.get_predicted_wind_power_production_for_location("testID2")
41+
3542
def test_get_predicted_solar_power_production_for_location(
3643
self, client, forecast_values
3744
) -> None:

0 commit comments

Comments
 (0)