From 91288e845ff801c3c643309aba993230513a8160 Mon Sep 17 00:00:00 2001 From: vky Date: Mon, 24 Jan 2022 22:41:14 +0100 Subject: [PATCH] deleted useless fibtest --- .github/workflows/python-app.yml | 6 +++--- fibtest.py | 10 ---------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 fibtest.py diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 6dbe56d..4475a6c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -36,6 +36,6 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest fibtest.py +# - name: Test with pytest +# run: | +# pytest fibtest.py diff --git a/fibtest.py b/fibtest.py deleted file mode 100644 index 89ca598..0000000 --- a/fibtest.py +++ /dev/null @@ -1,10 +0,0 @@ -import os - - -# testing Fibonacci number function -def fib(n: int) -> int: - return n if n < 2 else fib(n - 1) + fib(n - 2) - - -def test_fibonacci(): - assert fib(int(os.environ["FIB_INPUT"])) == 55