Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anyaparekh committed Apr 21, 2023
1 parent 375f68c commit b0a2e6c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_inverters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from pv_site_api.pydantic_models import Inverters


def add_response(id, httpx_mock):
httpx_mock.add_response(
url=f"https://enode-api.production.enode.io/inverters/{id}",
Expand Down Expand Up @@ -30,10 +31,10 @@ def add_response(id, httpx_mock):


def test_get_inverters_from_site(client, sites, inverters, httpx_mock):
add_response('id1', httpx_mock)
add_response('id2', httpx_mock)
add_response('id3', httpx_mock)
add_response("id1", httpx_mock)
add_response("id2", httpx_mock)
add_response("id3", httpx_mock)

response = client.get(f"/sites/{sites[0].site_uuid}/inverters")
assert response.status_code == 200

Expand All @@ -51,7 +52,7 @@ def test_get_inverters_fake(client, fake):

def test_get_inverters(client, httpx_mock, clients):
httpx_mock.add_response(url="https://enode-api.production.enode.io/inverters", json=["id1"])
add_response('id1', httpx_mock)
add_response("id1", httpx_mock)

response = client.get("/inverters")
assert response.status_code == 200
Expand Down

0 comments on commit b0a2e6c

Please sign in to comment.