Skip to content

Commit

Permalink
add test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWeeber authored Jun 24, 2024
1 parent f01e127 commit 21ff37b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
X3_MICPRO_G2_VALUES,
X3_ULTRA_VALUES,
X3_VALUES,
X3_EVC_VALUES,
X3V34_HYBRID_VALUES,
X3V34_HYBRID_VALUES_EPS_MODE,
X3V34_HYBRID_VALUES_NEGATIVE_POWER,
Expand Down Expand Up @@ -46,6 +47,7 @@
X3_ULTRA_RESPONSE,
XHYBRID_DE01_RESPONSE,
XHYBRID_DE02_RESPONSE,
X3_EVC_RESPONSE,
)

X_FORWARDED_HEADER = {"X-Forwarded-For": "5.8.8.8"}
Expand Down Expand Up @@ -235,6 +237,16 @@ def simple_http_fixture(httpserver):
headers=None,
data="optType=ReadRealTimeData",
),
InverterUnderTest(
uri="/",
method="POST",
query_string=None,
response=X3_EVC_RESPONSE,
inverter=inverter.X3EVC,
values=X3_EVC_VALUES,
headers=None,
data="optType=ReadRealTimeData",
),
InverterUnderTest(
uri="/",
method="POST",
Expand Down

0 comments on commit 21ff37b

Please sign in to comment.