-
Notifications
You must be signed in to change notification settings - Fork 96
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
Unit tests for Examples #605
Changes from 1 commit
7f48bfc
c6ee6b3
124f67a
496215b
55cdf51
122f998
494e114
069314c
4b24ed5
6774e1e
40b36ef
67621c0
9d2eb14
1ca3e87
2b22ce7
d3e34fd
6e1cf3c
4376fb0
123831a
9f912a6
5a5317b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,7 @@ def load_data() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as before. |
||
|
||
# Run example script(s) | ||
convert_data() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ def main() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as before. |
||
|
||
# Run example script | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ def main() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as before. |
||
|
||
# Run example script | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,6 @@ def main() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
|
||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,6 @@ def main() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
|
||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,6 @@ def main() -> None: | |
""" | ||
) | ||
|
||
args = parser.parse_args() | ||
args, unknown = parser.parse_known_args() | ||
|
||
main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why you've changed to use
parse_known_args
instead ofparse_args
?