Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue- #92] Change 'ruvnl' Label to 'rajasthan' #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/india_api/internal/inputs/indiadb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ def get_actual_wind_power_production_for_location(

def get_wind_regions(self) -> list[str]:
"""Gets the valid wind regions."""
return ["ruvnl"]
return ["rajasthan"]

def get_solar_regions(self) -> list[str]:
"""Gets the valid solar regions."""
return ["ruvnl"]
return ["rajasthan"]

def get_sites(self, email: str) -> list[internal.Site]:
"""Get a list of sites"""
Expand Down
4 changes: 2 additions & 2 deletions src/india_api/internal/inputs/indiadb/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def sites(db_session):
asset_type="pv",
country="india",
region='testID',
client_site_name='ruvnl_pv_testID1'
client_site_name='rajasthan_pv_testID1'
)
db_session.add(site)
sites.append(site)
Expand All @@ -81,7 +81,7 @@ def sites(db_session):
asset_type="wind",
country="india",
region='testID',
client_site_name = 'ruvnl_wind_testID'
client_site_name = 'rajasthan_wind_testID'
)
db_session.add(site)
sites.append(site)
Expand Down
4 changes: 2 additions & 2 deletions src/india_api/internal/inputs/indiadb/test_indiadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ def test_get_actual_solar_power_production_for_location(self, client, generation
def test_get_wind_regions(self, client) -> None:
result = client.get_wind_regions()
assert len(result) == 1
assert result[0] == "ruvnl"
assert result[0] == "rajasthan"

def test_get_solar_regions(self, client) -> None:
result = client.get_solar_regions()
assert len(result) == 1
assert result[0] == "ruvnl"
assert result[0] == "rajasthan"

def test_get_sites(self, client, sites) -> None:
sites_from_api = client.get_sites(email="[email protected]")
Expand Down
Loading