refactor filename

This commit is contained in:
geekan 2024-01-02 21:44:51 +08:00
parent e580e971a9
commit 05749fad31
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
"""
@Time : 2023/5/2 16:03
@Author : mashenquan
@File : hello.py
@File : openapi_v3_hello.py
@Desc : Implement the OpenAPI Specification 3.0 demo and use the following command to test the HTTP service:
curl -X 'POST' \

View file

@ -53,7 +53,7 @@ gitpython==3.1.40
zhipuai==1.0.7
socksio~=1.0.0
gitignore-parser==0.1.9
# connexion[uvicorn]~=3.0.5 # Used by metagpt/tools/hello.py
# connexion[uvicorn]~=3.0.5 # Used by metagpt/tools/openapi_v3_hello.py
websockets~=12.0
networkx~=3.2.1
google-generativeai==0.3.2

View file

@ -18,7 +18,7 @@ from metagpt.config import CONFIG
@pytest.mark.asyncio
async def test_hello():
workdir = Path(__file__).parent.parent.parent.parent
script_pathname = workdir / "metagpt/tools/hello.py"
script_pathname = workdir / "metagpt/tools/openapi_v3_hello.py"
env = CONFIG.new_environ()
env["PYTHONPATH"] = str(workdir) + ":" + env.get("PYTHONPATH", "")
process = subprocess.Popen(["python", str(script_pathname)], cwd=workdir, env=env)