From 209f89d60c615e2414e35ffc99da1ea5ecd6ac25 Mon Sep 17 00:00:00 2001 From: Dynnammo Date: Wed, 5 Oct 2022 07:05:27 +0200 Subject: [PATCH 1/2] Setup tests --- pytest.ini | 2 ++ tests/test_cmd.py | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pytest.ini create mode 100644 tests/test_cmd.py diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..45c4e56 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = -s --cov-report xml --cov=gh-license --disable-pytest-warnings --cov-fail-under=90 \ No newline at end of file diff --git a/tests/test_cmd.py b/tests/test_cmd.py new file mode 100644 index 0000000..23b8ba6 --- /dev/null +++ b/tests/test_cmd.py @@ -0,0 +1,11 @@ +import pytest +from ghlicense import * + +def test_run_scan(): + assert False + +def test_run_licencelist(): + assert False + +def test_run_license(): + assert False From 962cbb47008bb170cf057e4ae80713c6c20e9e1a Mon Sep 17 00:00:00 2001 From: Dynnammo Date: Wed, 5 Oct 2022 07:07:03 +0200 Subject: [PATCH 2/2] Add dev requirements --- requirements_dev.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 requirements_dev.txt diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..0f5e297 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,3 @@ +-r requirements.txt +pytest >= 7.1.3 +pytest >= 4.0.0 \ No newline at end of file