Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial 1.6 calculate composite schedule unit tests #606

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

folkengine
Copy link
Contributor

Describe your changes

This PR establishes a way to test the creation of the Composite Schedule in a way that attempts to minimize the creation and combination of multiple Profiles using the OCPP 1.6 code as a foundation.

It includes:

  1. A mechanism to easily deserialize Profiles from their actual JSON. This makes the creation of complex combinations of Profiles to test out different data textures much simpler.
  2. Methods to dump out ChargingProfile and EnhancedChargingSchedule into JSON for easier debugging and visualization.
  3. An initial unit test that combines two profiles in order to create an EnhancedChargingSchedule with two ChargingSchedulePeriods.

Issue ticket number and link

Checklist before requesting a review

@folkengine
Copy link
Contributor Author

@shankari please review.

@folkengine
Copy link
Contributor Author

@folkengine
Copy link
Contributor Author

Question:

  • Where is the csv file required for generate_component_schemas.py ?
    • Answer. in the OCPP 2.0.1 spec Appendices_CSV_v1.3.zip file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant