chore: skip pic merge test (#141)

This commit is contained in:
felinae98 2022-11-14 17:15:17 +08:00 committed by GitHub
parent 23d2180fd5
commit 43e368a734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -67,7 +67,7 @@ jobs:
run: poetry install
- name: Run Pytest
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare and not render'
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare and not render and not external'
- name: Upload coverage report
uses: codecov/codecov-action@v3

View File

@ -60,7 +60,8 @@ build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
markers = [
"compare: compare fetching result with rsshub",
"render: render img by chrome"
"render: render img by chrome",
"external: use external resources"
]
asyncio_mode = "auto"

View File

@ -41,6 +41,7 @@ merge_source_9_2 = [
]
@pytest.mark.external
@flaky
async def test_9_merge(app: App):
from nonebot_bison.post import Post
@ -51,6 +52,7 @@ async def test_9_merge(app: App):
await post.generate_messages()
@pytest.mark.external
@flaky
async def test_9_merge_2(app: App):
from nonebot_bison.post import Post
@ -61,6 +63,7 @@ async def test_9_merge_2(app: App):
await post.generate_messages()
@pytest.mark.external
@flaky
async def test_6_merge(app: App):
from nonebot_bison.post import Post
@ -70,6 +73,7 @@ async def test_6_merge(app: App):
assert len(post.pics) == 5
@pytest.mark.external
@flaky
async def test_3_merge(app: App):
from nonebot_bison.post import Post
@ -79,6 +83,7 @@ async def test_3_merge(app: App):
assert len(post.pics) == 5
@pytest.mark.external
@flaky
async def test_6_merge_only(app: App):
from nonebot_bison.post import Post
@ -88,6 +93,7 @@ async def test_6_merge_only(app: App):
assert len(post.pics) == 1
@pytest.mark.external
@flaky
async def test_3_merge_only(app: App):
from nonebot_bison.post import Post