diff --git a/requirements-windows.txt b/requirements-windows.txt new file mode 100644 index 0000000..47e240e --- /dev/null +++ b/requirements-windows.txt @@ -0,0 +1,41 @@ +aiosqlite==0.20.0 +annotated-types==0.7.0 +anyio==4.4.0 +beautifulsoup4==4.12.3 +certifi==2024.7.4 +charset-normalizer==3.3.2 +click==8.1.7 +colorama==0.4.6 +dnspython==2.6.1 +email_validator==2.2.0 +fastapi==0.111.1 +fastapi-cli==0.0.4 +h11==0.14.0 +httpcore==1.0.5 +httptools==0.6.1 +httpx==0.27.0 +idna==3.7 +Jinja2==3.1.4 +markdown-it-py==3.0.0 +MarkupSafe==2.1.5 +mdurl==0.1.2 +pydantic==2.8.2 +pydantic_core==2.20.1 +PyExecJS==1.5.1 +Pygments==2.18.0 +python-dotenv==1.0.1 +python-multipart==0.0.9 +PyYAML==6.0.1 +requests==2.32.3 +rich==13.7.1 +shellingham==1.5.4 +six==1.16.0 +sniffio==1.3.1 +soupsieve==2.5 +starlette==0.37.2 +typer==0.12.3 +typing_extensions==4.12.2 +urllib3==2.2.2 +uvicorn==0.30.3 +watchfiles==0.22.0 +websockets==12.0 \ No newline at end of file diff --git a/test/xhs.py b/test/xhs.py index 943591f..0dff6e1 100644 --- a/test/xhs.py +++ b/test/xhs.py @@ -68,7 +68,7 @@ def test_detail(self): response = requests.get(f'{HOST}/xhs/detail', params=param) self.assertEqual(response.status_code, 200) self.assertEqual(response.json()['code'], 0) - self.assertEqual(response.json()['data']['items'][0]['id'], param['id']) + self.assertEqual(response.json()['data']['note']['noteId'], param['id']) # 获取评论接口 def test_comments(self):