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

Added foundation for 1.6 composite schedule testing #13

Closed

Conversation

folkengine
Copy link

@folkengine folkengine commented May 3, 2024

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

Copy link

@christopher-davis-afs christopher-davis-afs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re: tests, the Everest folks prefer snake_case for function names (but not test names)

@folkengine folkengine closed this Jun 6, 2024
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.

2 participants