Files
cariflex/tools/shapeshifter-library-python-main/test/test_presence_of_client_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

19 lines
549 B
Python

import pytest
from shapeshifter_uftp.client import client_map
from shapeshifter_uftp.service.base_service import snake_case
from shapeshifter_uftp.uftp import routing_map
from .helpers.messages import messages
@pytest.mark.parametrize(
'message',
messages,
ids=[message.__class__.__name__ for message in messages]
)
def test_presence_of_client_methods(message):
client = client_map[routing_map[message.__class__]]
expected_method = f"send_{snake_case(message.__class__.__name__)}"
assert hasattr(client, expected_method)