From a3c1e902d4b9c904947a550acaa6ee75596bc962 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 29 Apr 2020 18:44:03 +0200 Subject: [PATCH] use pytest for github unittests --- .github/workflows/unittests.yml | 2 +- pytest.ini | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 pytest.ini diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index bb8e550a..b66e31b7 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -33,4 +33,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Unittests run: | - python -m unittest discover -s test -t test + pytest test diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..5599a3c9 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,4 @@ +[pytest] +python_files = Test*.py +python_classes = Test +python_functions = test \ No newline at end of file