From 21ff37bbc0064b65fc8fea51ec815a0363b04a45 Mon Sep 17 00:00:00 2001 From: Daniel Weeber Date: Mon, 24 Jun 2024 23:00:45 +0200 Subject: [PATCH] add test fixture --- tests/fixtures.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/fixtures.py b/tests/fixtures.py index 569139f..80d078f 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -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, @@ -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"} @@ -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",