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

change client_site_id to int #140

Merged
merged 1 commit into from
Jan 23, 2024
Merged
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
2 changes: 1 addition & 1 deletion pv_site_api/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def make_fake_site() -> PVSites:
pv_site = PVSiteMetadata(
site_uuid=fake_site_uuid,
client_name="client_name_1",
client_site_id="the site id used by the user",
client_site_id=1,
client_site_name="the site name",
region="the site's region",
dno="the site's dno",
Expand Down
2 changes: 1 addition & 1 deletion pv_site_api/pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PVSiteAPIStatus(BaseModel):
class PVSiteInputMetadata(BaseModel):
"""Site metadata when adding a site"""

client_site_id: str = Field(..., description="The site ID as given by the providing user.")
client_site_id: int = Field(..., description="The site ID as given by the providing user.")
client_site_name: str = Field(
None, decription="The name of the site as given by the providing user."
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_get_site_list_min(client, sites):
def test_put_site_fake(client, fake):
pv_site = PVSiteInputMetadata(
client_name="client_name_1",
client_site_id="the site id used by the user",
client_site_id=1,
client_site_name="the site name",
region="the site's region",
dno="the site's dno",
Expand Down
Loading