From 6f54c3b7be14ca8c290831c697f38287d136ee97 Mon Sep 17 00:00:00 2001 From: jcschaff Date: Sun, 2 Jun 2024 16:44:29 -0400 Subject: [PATCH] fix pytest --- test/test.py | 15 --------------- tests/test_basic.py | 7 +++++++ 2 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 test/test.py create mode 100644 tests/test_basic.py diff --git a/test/test.py b/test/test.py deleted file mode 100644 index b5c7c977..00000000 --- a/test/test.py +++ /dev/null @@ -1,15 +0,0 @@ -from __future__ import annotations - -import pyvcell_fvsolver as fv - - -def test_version(): - assert fv.__version__ == "0.0.1" - - -def test_add(): - assert fv.add(1, 2) == 3 - - -def test_sub(): - assert fv.subtract(1, 2) == -1 diff --git a/tests/test_basic.py b/tests/test_basic.py new file mode 100644 index 00000000..1077a16e --- /dev/null +++ b/tests/test_basic.py @@ -0,0 +1,7 @@ +import pyvcell_fvsolver as fv + +def test_version(): + assert fv.__version__ == "0.0.1" + +def test_version(): + assert fv.version() is not None