- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
24 lines
807 B
Python
24 lines
807 B
Python
import itertools
|
|
|
|
import pytest
|
|
|
|
from shapeshifter_uftp import (
|
|
ShapeshifterAgrService,
|
|
ShapeshifterCroService,
|
|
ShapeshifterDsoService,
|
|
)
|
|
from shapeshifter_uftp.service.base_service import snake_case
|
|
|
|
|
|
@pytest.mark.parametrize('service,message_type,stage',
|
|
[
|
|
*itertools.product([ShapeshifterAgrService], ShapeshifterAgrService.acceptable_messages, ['process']),
|
|
*itertools.product([ShapeshifterCroService], ShapeshifterCroService.acceptable_messages, ['process']),
|
|
*itertools.product([ShapeshifterDsoService], ShapeshifterDsoService.acceptable_messages, ['process']),
|
|
]
|
|
)
|
|
def test_presence_of_processing_methods(service, message_type, stage):
|
|
processing_method = f"{stage}_{snake_case(message_type.__name__)}"
|
|
assert hasattr(service, processing_method)
|
|
|