diff --git a/bin/tests b/bin/tests index c05763edff65..456f3c9b37d5 100755 --- a/bin/tests +++ b/bin/tests @@ -7,7 +7,7 @@ set -e export LC_ALL="${ENCODING:-en_US.UTF-8}" export LANG="${ENCODING:-en_US.UTF-8}" export COVERAGE_PROCESS_START="$(pwd)/pyproject.toml" -COMMAND_ARGS="$@" +COMMAND_ARGS=( "$@" ) # Test the postgres connection while [ $# -gt 0 ]; do @@ -37,7 +37,7 @@ mkdir -p warehouse/admin/static/dist/ mkdir -p warehouse/static/dist/ # Actually run our tests. -python -m coverage run -m pytest --strict-markers $COMMAND_ARGS +python -m coverage run -m pytest --strict-markers "${COMMAND_ARGS[@]}" python -m coverage combine python -m coverage html --show-contexts python -m coverage report -m --fail-under 100 diff --git a/pyproject.toml b/pyproject.toml index a04216b88d15..1d9e7d6f4892 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ ignore_missing_imports = true [tool.pytest.ini_options] addopts = [ "--disable-socket", - "--allow-hosts=localhost,::1,notdatadog,stripe", + "--allow-hosts=localhost,::1,stripe", "--durations=20", "--numprocesses=auto", ]