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

(re) Fix parsing of hps with "." in name from commandline #785

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

lebrice
Copy link
Collaborator

@lebrice lebrice commented Feb 8, 2022

New / improved of #775
Fixes #769

  • Fix parsing of arguments with "." in their name.
  • Improve tests for OrionCmdlineParser

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Remove unused imports

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Remove little type hint, because. Just because.

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Fix failing test

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

More general fix for other types of characters

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Add weirder test-case to test_orion_cmdline_parser

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Move the weird arg into parametrized fixture

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Improve test_orion_cmdline_parser.py (see desc)

- Use a parametrized fixture for generating weird arguments
- Added type-hints everywhere in the test module.

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>

Fix isort error

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
@lebrice lebrice merged commit 6aaf1f4 into Epistimio:develop Feb 9, 2022
@bouthilx bouthilx mentioned this pull request Feb 11, 2022
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.

Using parameters with a "." in their name causes a crash
2 participants