Files
cariflex/tools/shapeshifter-library-python-main/test/test_presence_of_service_methods.py
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- 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
2026-06-08 00:38:27 -04:00

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)