DSPy: The framework for programming—not prompting—language models
Python
feat(dspy): add unqiue base names for all tests by adding __init__.py files
Michael Jones9753f3ed44dd
diff --git a/dsp/modules/dummy_lm.py b/dsp/modules/dummy_lm.pyindex 1bd6a04a1..0509004c7 100644--- a/dsp/modules/dummy_lm.py+++ b/dsp/modules/dummy_lm.py@@ -5,7 +5,7 @@ from dsp.modules import LM# This testing module was moved in PR #735 to patch Arize Phoenix logging-class DummyLM(LM):+class DspDummyLM(LM):"""Dummy language model for unit testing purposes."""def __init__(self, answers: Union[list[str], dict[str, str]], follow_examples: bool = False):@@ -61,7 +61,7 @@ class DummyLM(LM):},)- RED, GREEN, RESET = "\033[91m", "\033[92m", "\033[0m"+ RED, _, RESET = "\033[91m", "\033[92m", "\033[0m"print("=== DummyLM ===")print(prompt, end="")print(f"{RED}{answer}{RESET}")diff --git a/tests/dsp_LM/evaluate/__init__.py b/tests/dsp_LM/evaluate/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/examples/__init__.py b/tests/dsp_LM/examples/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/functional/__init__.py b/tests/dsp_LM/functional/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/modules/__init__.py b/tests/dsp_LM/modules/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/predict/__init__.py b/tests/dsp_LM/predict/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/primitives/__init__.py b/tests/dsp_LM/primitives/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/retrieve/__init__.py b/tests/dsp_LM/retrieve/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/signatures/__init__.py b/tests/dsp_LM/signatures/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/tests/dsp_LM/teleprompt/__init__.py b/tests/dsp_LM/teleprompt/__init__.pynew file mode 100644index 000000000..e69de29bb