Skip to content

Commit

Permalink
pytest -vv works now
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Oct 30, 2024
1 parent b035927 commit 41f9641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dp_creator_ii/utils/argparse_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def _get_args():
Namespace(csv_path=None, contributions=1, demo=False)
"""
arg_parser = _get_arg_parser()
if "--port" in argv or "-v" in argv or "-k" in argv:

if "pytest" in argv[0] or ("shiny" in argv[0] and "run" == argv[1]):
# We are running a test,
# and ARGV is polluted, so override:
return arg_parser.parse_args([])
Expand Down

0 comments on commit 41f9641

Please sign in to comment.