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

test: Unit test for RemoteStartTransaction nested dataclass #690

Merged

Conversation

ajmirsky
Copy link
Contributor

@ajmirsky ajmirsky commented Dec 8, 2024

To help with PR #648 , adding a unit test to demonstrate that when creating a RemoteStartTransaction call, the optional charging_profile attribute can be set with a dictionary or directly with the CharingProfile nested dataclass.

@ajmirsky ajmirsky force-pushed the unit_test_for_charging_profiles branch from 0c75791 to 0a34b9d Compare December 8, 2024 20:37
@jainmohit2001 jainmohit2001 changed the title Unit test for RemoteStartTransaction nested dataclass test: Unit test for RemoteStartTransaction nested dataclass Dec 9, 2024
@jainmohit2001
Copy link
Collaborator

Let's wait for the PR #680 to get merged. Will take this up after that.

@jainmohit2001
Copy link
Collaborator

@ajmirsky, please rebase this with master. We can fast track this PR since these are only test cases on top of the new dataclasses.

jainmohit2001 pushed a commit that referenced this pull request Dec 18, 2024
PR #172 updated with master. 

Smart charging algos conception and validation has become a requirement
for charging infrastructure. Every single code lines that can help at
implementing and testing it worse the effort.

closes #172 

Associated unit tests PR: #690

---------

Signed-off-by: Jérôme Benoit <[email protected]>
Co-authored-by: Adrian Gruetter <[email protected]>
Co-authored-by: grutts <[email protected]>
Co-authored-by: Patrick Roelke <[email protected]>
… if you declare an attribute as a dict or a nested dataclass
@jainmohit2001 jainmohit2001 force-pushed the unit_test_for_charging_profiles branch from 0a34b9d to e7617b1 Compare December 19, 2024 04:03
@jainmohit2001 jainmohit2001 merged commit 2932746 into mobilityhouse:master Dec 19, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants