Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Dec 12, 2024
1 parent f149830 commit 3c5c4bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_charge_point_v201.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import pytest
from pytest_homeassistant_custom_component.common import MockConfigEntry

import ocpp
from ocpp.messages import ASYNC_VALIDATION
from ocpp.routing import on
import ocpp.exceptions
from ocpp.v201 import ChargePoint as cpclass, call, call_result
Expand Down Expand Up @@ -1211,7 +1211,8 @@ async def test_cms_responses_v201(hass, socket_enabled):
domain=OCPP_DOMAIN, data=config_data, entry_id="test_cms", title="test_cms"
)
cs: CentralSystem = await create_configuration(hass, config_entry)
ocpp.messages.ASYNC_VALIDATION = False
# threading in async validation causes tests to fail
ASYNC_VALIDATION = False
await run_charge_point_test(

Check failure on line 1216 in tests/test_charge_point_v201.py

View workflow job for this annotation

GitHub Actions / Run tests

test_cms_responses_v201 websockets.exceptions.ConnectionClosedOK: received 1001 (going away); then sent 1001 (going away)
config_entry,
"CP_2",
Expand Down

0 comments on commit 3c5c4bd

Please sign in to comment.