From 984721f02be28ea773d28b9a7b6cd8107a83840c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 31 Oct 2024 16:21:54 -0400 Subject: [PATCH] Add conftest.py with fixture for simplemind Session --- tests/conftest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..663d5b5 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,15 @@ +import pytest + +import os +import sys + +# Add the project root to the Python path. +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +from simplemind import Session + + +@pytest.fixture +def sm(): + """Fixture that provides a simplemind Session instance with default settings.""" + return Session()