enforce mock on online test

This commit is contained in:
yzlin 2024-01-05 20:38:07 +08:00
parent afa2411909
commit 8fb5919181
3 changed files with 7 additions and 5 deletions

View file

@ -23,9 +23,9 @@ from metagpt.utils.git_repository import GitRepository
from tests.mock.mock_llm import MockLLM
RSP_CACHE_NEW = {} # used globally for producing new and useful only response cache
ALLOW_OPENAI_API_CALL = os.environ.get(
"ALLOW_OPENAI_API_CALL", True
) # NOTE: should change to default False once mock is complete
ALLOW_OPENAI_API_CALL = int(
os.environ.get("ALLOW_OPENAI_API_CALL", 1)
) # NOTE: should change to default 0 (False) once mock is complete
@pytest.fixture(scope="session")

File diff suppressed because one or more lines are too long