Skip to content

Commit 771659e

Browse files
committed
fixed CircleCI flake8 issues
1 parent 0e723d1 commit 771659e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ocpp/routing.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
routables = []
44

5+
56
def on(action, *, skip_schema_validation=False):
67
""" Function decorator to mark function as handler for specific action.
78

tests/test_charge_point.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import pytest
12
from ocpp.v20 import ChargePoint as cp
23
from ocpp.routing import on, create_route_map
34
from ocpp.v16.enums import Action
45

6+
57
def test_getters_should_not_be_called_during_routemap_setup():
68
class ChargePoint(cp):
79
@property
@@ -14,6 +16,7 @@ def foo(self):
1416
assert str(e) == "this will be raised"
1517
pytest.fail("Getter was called during ChargePoint creation")
1618

19+
1720
def test_multiple_classes_with_same_name_for_handler():
1821
class ChargerA(cp):
1922
@on(Action.Heartbeat)
@@ -29,4 +32,4 @@ def heartbeat(self, **kwargs):
2932
B = ChargerB("B", None)
3033
route_mapA = create_route_map(A)
3134
route_mapB = create_route_map(B)
32-
assert route_mapA["Heartbeat"] != route_mapB["Heartbeat"]
35+
assert route_mapA["Heartbeat"] != route_mapB["Heartbeat"]

0 commit comments

Comments
 (0)