From 4b887ac43d921fbc096b70809129b41afcfd183d Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Thu, 18 Jan 2024 12:21:33 +1100 Subject: [PATCH] tests: adding pytest and an import test --- tests/__init__.py | 0 tests/test_import.py | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/test_import.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/test_import.py b/tests/test_import.py new file mode 100644 index 00000000..240e38ee --- /dev/null +++ b/tests/test_import.py @@ -0,0 +1,8 @@ +import pytest + + +def test_import_map2loop(): + try: + import map2loop + except ImportError: + pytest.fail("Failed to import map2loop module")