From a935f222306b162de8331e2145f4f24befaa843d Mon Sep 17 00:00:00 2001 From: rafelafrance Date: Wed, 10 Apr 2024 10:33:00 -0400 Subject: [PATCH] Have make test clean up after itself --- Makefile | 4 +++- README.md | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 064d9d5..50dd9a1 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,9 @@ PIP_INSTALL=$(PYTHON) -m pip install SPACY_MODEL=$(PYTHON) -m spacy download en_core_web_md test: - export MOCK_DATA=1; $(PYTHON) -m unittest discover + export MOCK_DATA=1 + $(PYTHON) -m unittest discover + export MOCK_DATA=0 install: venv source $(VENV)/bin/activate diff --git a/README.md b/README.md index 992f649..4c33f8a 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,5 @@ Download the first 3 sources and then use the `util_add_taxa.py` script to extra ## Tests There are tests which you can run like so: ```bash -export MOCK_DATA=1; python -m unittest discover +make test ``` - -Please `export MOCK_DATA=0` before you run any scripts on real data.