From b5663d1bc85497d766ae912df2afc68b08915a23 Mon Sep 17 00:00:00 2001 From: bronsen Date: Wed, 20 Nov 2024 23:39:54 +0100 Subject: [PATCH] [foo] Add a module so we can test and create a coverage report --- src/foo.py | 2 ++ tests/test_something.py | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/foo.py create mode 100644 tests/test_something.py diff --git a/src/foo.py b/src/foo.py new file mode 100644 index 0000000..7dbdb99 --- /dev/null +++ b/src/foo.py @@ -0,0 +1,2 @@ +def dummy(): + return (1, 1, 1) diff --git a/tests/test_something.py b/tests/test_something.py new file mode 100644 index 0000000..c448d64 --- /dev/null +++ b/tests/test_something.py @@ -0,0 +1,8 @@ +def test_always_true(): + assert True + + +def test_something_in_src(): + from foo import dummy + + assert dummy() == (1, 1, 1)