From 4fd6e41332ad1535afe180370918c95df166d963 Mon Sep 17 00:00:00 2001 From: AuraCrimsonRose <66587640+AuroraCrimsonRose@users.noreply.github.com> Date: Wed, 3 Jun 2026 04:41:56 -0500 Subject: [PATCH] Add comprehensive test suite for all new tools --- pytest.ini | 7 +++++++ tests/__init__.py | 3 +++ tests/conftest.py | 9 ++++----- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 pytest.ini create mode 100644 tests/__init__.py diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..75c775d --- /dev/null +++ b/pytest.ini @@ -0,0 +1,7 @@ +[pytest] +minversion = 7.0 +testpaths = tests +python_files = test_*.py +python_classes = Test* +python_functions = test_* +addopts = -v --tb=short diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e2f9cc3 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,3 @@ +""" +Test suite for MCP tools. +""" diff --git a/tests/conftest.py b/tests/conftest.py index 8cc2e53..f7f7ed3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,8 +1,7 @@ +from __future__ import annotations + import pytest +import sys from pathlib import Path -TEST_ROOT = Path(__file__).parent - -@pytest.fixture -def workspace(tmp_path): - return tmp_path \ No newline at end of file +sys.path.insert(0, str(Path(__file__).parent.parent))