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