Skip to content

Commit

Permalink
pytest -vv works now (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc authored Oct 31, 2024
1 parent b035927 commit 1eb28db
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 1eb28db

Please sign in to comment.