From dbb1387076ab8b5047e0fcdf170ead6e131e0422 Mon Sep 17 00:00:00 2001 From: James Addison Date: Thu, 20 Oct 2022 23:00:58 +0100 Subject: [PATCH 1/2] Remove unittest-parallel dependency --- README.rst | 2 +- requirements-dev.txt | 1 - run_tests.py | 7 ------- 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100755 run_tests.py diff --git a/README.rst b/README.rst index 0da9bdaf2..a414e6a39 100644 --- a/README.rst +++ b/README.rst @@ -343,7 +343,7 @@ Assuming you have ``>=python3.7`` installed, navigate to the directory where you source .venv/bin/activate && pip install -r requirements-dev.txt && pre-commit install && - python run_tests.py + python -m unittest In case you want to run a single unittest for a newly developed scraper diff --git a/requirements-dev.txt b/requirements-dev.txt index 2a0f53c60..31fb6fdd9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,7 +5,6 @@ flake8>=3.8.3 flake8-printf-formatting>=1.1.0 pre-commit>=2.6.0 responses>=0.21.0 -unittest-parallel>=1.5.0 mypy>=0.971 # language-tags>=1.0.0 # tld>=0.12.3 diff --git a/run_tests.py b/run_tests.py deleted file mode 100755 index d73f0b310..000000000 --- a/run_tests.py +++ /dev/null @@ -1,7 +0,0 @@ -import subprocess - -if __name__ == "__main__": - run_tests_command = ( - "unittest-parallel -t . -s tests --coverage --coverage-rcfile .coveragerc" - ) - subprocess.run(run_tests_command.split(" "), check=True, text=True) From 19b0795d0534ad43a1a3d4b8f2f2e1da8d4471b3 Mon Sep 17 00:00:00 2001 From: James Addison Date: Thu, 20 Oct 2022 23:15:19 +0100 Subject: [PATCH 2/2] Consistency: remove coverage from basic unit test commands for now --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a414e6a39..57b89d02f 100644 --- a/README.rst +++ b/README.rst @@ -349,7 +349,7 @@ In case you want to run a single unittest for a newly developed scraper .. code:: shell - python -m coverage run -m unittest tests.test_myscraper + python -m unittest tests.test_myscraper FAQ ---