From 413a0cb7019fb2f450fd386c22f62a0a3ac60f08 Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Tue, 17 Oct 2023 13:07:34 +0700 Subject: [PATCH] wire up testing deps --- requirements-dev.txt | 1 + run_tests | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 4f2a3f5..7c2aad0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ -r requirements.txt coverage flake8 +cosl diff --git a/run_tests b/run_tests index a8d64b9..e47ee64 100755 --- a/run_tests +++ b/run_tests @@ -6,11 +6,10 @@ if [ -z "$VIRTUAL_ENV" -a -d venv/ ]; then . venv/bin/activate fi -if [ -z "$PYTHONPATH" ]; then - export PYTHONPATH=src -else - export PYTHONPATH="src:$PYTHONPATH" +if [ -n "$PYTHONPATH" ]; then + export PYTHONPATH=":$PYTHONPATH" fi +export PYTHONPATH="src:lib$PYTHONPATH" flake8 coverage run --source=src -m unittest -v "$@"