Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复失败的爬虫testcase #288

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
cache: 'pip' # caching pip dependencies

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pyinstaller
pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller

- name: Build with PyInstaller for windows
run: cmd.exe /c 'make.bat'

- name: Install pytest
run: |
python -m pip install pytest
pip install pytest

- name: Switch code page
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-basic-funcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install -r requirements.txt
pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test-web-funcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install -r requirements.txt
pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Switch code page
run: |
chcp 65001
- name: Public IP
id: ip
uses: haythem/public-ip@v1.3
- name: Test proxyfree.py
run: |
pytest unittest/test_proxyfree.py
Expand Down
48 changes: 0 additions & 48 deletions unittest/data/FC2-718323 (fc2).json

This file was deleted.

8 changes: 3 additions & 5 deletions unittest/data/parathd03639 (fanza).json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
"ドラマ",
"巨乳",
"職業色々",
"ハイビジョン",
"パラダイスTV"
"ハイビジョン"
],
"genre_id": [
"5001",
"4114",
"2001",
"1026",
"6533",
"6008"
"6533"
],
"genre_norm": null,
"score": "10.00",
Expand Down Expand Up @@ -59,4 +57,4 @@
"https://pics.dmm.co.jp/digital/video/parathd03639/parathd03639-20.jpg"
],
"preview_video": "https://cc3001.dmm.co.jp/litevideo/freepv/p/par/parathd03639/parathd03639_mhb_w.mp4"
}
}
Loading