X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Focpp-server%2Fserver.py;h=2905b09da68b24478bce8851bf5c5cd695d41ca6;hb=04578196600a49d2f03710ded6ba0548cbbd87ad;hp=f48adb21762c179e983564518dd879e453100932;hpb=7c945b4ac211aafb6e90645a0364c12d7373522e;p=e-mobility-charging-stations-simulator.git diff --git a/tests/ocpp-server/server.py b/tests/ocpp-server/server.py index f48adb21..2905b09d 100644 --- a/tests/ocpp-server/server.py +++ b/tests/ocpp-server/server.py @@ -152,10 +152,10 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None): command_name = await charge_point.receive_command() try: match command_name: - case 'ClearCache': + case Action.ClearCache: logging.info("ClearCache parser working") await charge_point.send_clear_cache() - case 'GetBaseReport': + case Action.GetBaseReport: logging.info("GetBaseReport parser working") await charge_point.send_get_base_report() case _: