kopia lustrzana https://github.com/halcy/Mastodon.py
another attempt at unfucking the CI
rodzic
9d2fa016f1
commit
8713b8670d
|
@ -7,7 +7,7 @@ jobs:
|
|||
- checkout
|
||||
- run:
|
||||
name: "Install test deps"
|
||||
command: "pip install .[test,webpush,blurhash]"
|
||||
command: "pip install .[test_old,webpush,blurhash]"
|
||||
- run:
|
||||
name: "Run tests"
|
||||
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"
|
||||
|
@ -20,7 +20,7 @@ jobs:
|
|||
- checkout
|
||||
- run:
|
||||
name: "Install test deps"
|
||||
command: "pip install .[test,webpush,blurhash]"
|
||||
command: "pip install .[test_old,webpush,blurhash]"
|
||||
- run:
|
||||
name: "Run tests"
|
||||
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
- checkout
|
||||
- run:
|
||||
name: "Install test deps"
|
||||
command: "pip install .[test,webpush,blurhash]"
|
||||
command: "pip install .[test_old,webpush,blurhash]"
|
||||
- run:
|
||||
name: "Run tests"
|
||||
command: "python setup.py pytest --addopts '--junitxml=tests/result.xml'"
|
||||
|
|
|
@ -48,6 +48,16 @@ test = [
|
|||
'pytz',
|
||||
'pytest-retry'
|
||||
]
|
||||
test_old = [
|
||||
'pytest',
|
||||
'pytest-runner',
|
||||
'pytest-cov',
|
||||
'vcrpy',
|
||||
'pytest-vcr',
|
||||
'pytest-mock',
|
||||
'requests-mock',
|
||||
'pytz',
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Repository="https://github.com/halcy/Mastodon.py"
|
||||
|
|
|
@ -19,6 +19,12 @@ def vcr(vcr):
|
|||
vcr.match_on = ['path']
|
||||
return vcr
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
def vcr_config():
|
||||
return {
|
||||
"match_on": ["path"],
|
||||
}
|
||||
|
||||
def patch_streaming():
|
||||
# For monkeypatching so we can make vcrpy better
|
||||
import vcr.stubs
|
||||
|
|
Ładowanie…
Reference in New Issue