From 1c237847670f929699781fa305b20cd415d17d5b Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Wed, 8 Jan 2020 09:29:16 +0000 Subject: [PATCH] =?UTF-8?q?Pytest=205=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also updates the Pytest command in `run_tests.sh` to remove junit, which we stopped using. --- requirements_for_test.txt | 4 ++-- scripts/run_tests.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements_for_test.txt b/requirements_for_test.txt index 2f7e7d9e6..22260cfe2 100644 --- a/requirements_for_test.txt +++ b/requirements_for_test.txt @@ -1,10 +1,10 @@ -r requirements.txt isort==4.3.21 -pytest==3.10.1 # pyup: <4.0.0 +pytest==5.3.2 pytest-env==0.6.2 pytest-cov==2.8.1 pytest-mock==1.11.2 -pytest-xdist==1.27.0 # pyup: <1.28.0 +pytest-xdist==1.31.0 beautifulsoup4==4.8.1 freezegun==0.3.12 flake8==3.7.9 diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index b77f9b66c..4d5afe776 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -37,5 +37,5 @@ npm test display_result $? 3 "Javascript tests have" ## Code coverage -py.test -n auto --maxfail=10 --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict -p no:warnings +py.test -n auto --maxfail=10 --cov=app --cov-report=term-missing tests/ --strict -p no:warnings display_result $? 4 "Code coverage"