about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-03-04 16:01:23 +0300
committerMunyoki Kilyungi2025-03-04 16:01:23 +0300
commitfb86ebfae2f3ce9fc264aa5796d4513553725f87 (patch)
treeb4fcd0e2fe9470b9e1b627f0eadaa9261da563bd
parent856db7764b6cd3e146ff3f9a3fbe85a58508747e (diff)
downloadgenenetwork3-fb86ebfae2f3ce9fc264aa5796d4513553725f87.tar.gz
Revert "test: Add unit tests for fibonacci function in rqtl2 module"
This reverts commit 9bad745abd94fd0eeb0b0dc6aba0d6a74db33f81.
-rw-r--r--tests/unit/api/test_rqtl2.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/unit/api/test_rqtl2.py b/tests/unit/api/test_rqtl2.py
deleted file mode 100644
index fbd0d25..0000000
--- a/tests/unit/api/test_rqtl2.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import pytest
-from gn3.api.rqtl2 import fibonacci
-
-def test_fibonacci_zero():
-    assert fibonacci(0) == 0
-
-def test_fibonacci_one():
-    assert fibonacci(1) == 1
-
-def test_fibonacci_ten():
-    assert fibonacci(10) == 55
-
-def test_fibonacci_negative():
-    with pytest.raises(ValueError) as excinfo:
-        fibonacci(-1)
-    assert "non-negative integer" in str(excinfo.value)
-
-def test_fibonacci_non_integer():
-    with pytest.raises(ValueError) as excinfo:
-        fibonacci(5.5)
-    assert "non-negative integer" in str(excinfo.value)
-
-def test_fibonacci_large():
-    assert fibonacci(20) == 6765
-
-@pytest.mark.parametrize("n, expected", [
-    (2, 1),
-    (3, 2),
-    (4, 3),
-    (5, 5),
-    (6, 8),
-    (7, 13),
-])
-def test_fibonacci_multiple(n, expected):
-    assert fibonacci(n) == expected