-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a5fed6
commit 5d706c7
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ def client(engine, db_session): | |
|
||
class TestIndiaDBClient: | ||
def test_get_predicted_wind_power_production_for_location( | ||
self, client, forecast_values | ||
self, client, forecast_values_wind | ||
) -> None: | ||
locID = "testID" | ||
result = client.get_predicted_wind_power_production_for_location(locID) | ||
|
@@ -33,7 +33,7 @@ def test_get_predicted_wind_power_production_for_location( | |
assert isinstance(record, PredictedPower) | ||
|
||
def test_get_predicted_wind_power_production_for_location_raise_error( | ||
self, client, forecast_values | ||
self, client, forecast_values_wind | ||
) -> None: | ||
|
||
with pytest.raises(Exception): | ||
|
@@ -83,7 +83,7 @@ def test_get_sites_no_sites(self, client, sites) -> None: | |
sites_from_api = client.get_sites(email="[email protected]") | ||
assert len(sites_from_api) == 0 | ||
|
||
def test_get_site_forecast(self, client, sites, forecast_values) -> None: | ||
def test_get_site_forecast(self, client, sites, forecast_values_site) -> None: | ||
out = client.get_site_forecast(site_uuid=str(sites[0].site_uuid), email="[email protected]") | ||
assert len(out) > 0 | ||
|
||
|