A way to generate sys.argv-like list from the argument's dataclasses instances. #344
ovidiu-eremia
started this conversation in
General
Replies: 1 comment
-
@lebrice could you please take a moment to help me with your valuable input? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Congratulations for this library, it really helps with managing a lot of parameters!
But when this happens, you also have a lot of trouble working on tests for different situations.
I usually have nested dataclasses in my arguments and I like to create different inputs for test-cases by instantiating them with specific values for my own use-case.
Is there any way I could use the library to generate the sys.argv-like list of arguments from these dataclass instances and use them to mock the
sys.argv
and test my functions?Thank you,
Ovi
Beta Was this translation helpful? Give feedback.
All reactions