🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add explanation
yzlin63081245b94e
diff --git a/tests/conftest.py b/tests/conftest.pyindex c9463094d..5f9441653 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -23,8 +23,9 @@ from metagpt.utils.git_repository import GitRepositoryfrom tests.mock.mock_llm import MockLLMRSP_CACHE_NEW = {} # used globally for producing new and useful only response cache-ALLOW_OPENAI_API_CALL = os.environ.get("ALLOW_OPENAI_API_CALL", False)-ALLOW_OPENAI_API_CALL = True+ALLOW_OPENAI_API_CALL = os.environ.get(+ "ALLOW_OPENAI_API_CALL", True+) # NOTE: should change to default False once mock is complete@pytest.fixture(scope="session")@@ -155,6 +156,7 @@ def init_config():@pytest.fixture(scope="function")def new_filename(mocker):+ # NOTE: Mock new filename to make reproducible llm aask, should consider changing after implementing requirement segmentationmocker.patch("metagpt.utils.file_repository.FileRepository.new_filename", lambda: "20240101")yield mocker