mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 06:46:18 +00:00
Add conftest.py with fixture for simplemind Session
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user