DSPy: The framework for programming—not prompting—language models
Python
feat(tests): add pytest.ini for integration
Amir Mehr742eb56616fd
diff --git a/requirements-dev.txt b/requirements-dev.txtindex e9fdfc886..d769cde64 100644--- a/requirements-dev.txt+++ b/requirements-dev.txt@@ -1,6 +1,7 @@black==24.2.0pre-commit==3.7.0-pytest==6.2.5+pytest==8.2.1+pytest-env==1.1.3pytest-mock==3.12.0ruff==0.3.0torch==2.2.1diff --git a/tests_integration/base.py b/tests_integration/base.pyindex ef079d9e3..abdc81f4d 100644--- a/tests_integration/base.py+++ b/tests_integration/base.py@@ -7,6 +7,7 @@ import pytestclass BaseIntegrationTestWithCache:@pytest.fixture(autouse=True)def setup(self) -> None:+ return# Base directory for all DSPy moduleslibrary_dir = Path(__file__).resolve().parentbase_dir = library_dir.parentdiff --git a/tests_integration/pytest.ini b/tests_integration/pytest.ininew file mode 100644index 000000000..1dcef2d8e--- /dev/null+++ b/tests_integration/pytest.ini@@ -0,0 +1,6 @@+[pytest]+filterwarnings =+ ignore::DeprecationWarning++env =+ DSP_NOTEBOOK_CACHEDIR=/Users/amirmehr/workspace/personal_stuff/dspy/cache