Rerun flaky interation tests
This commit is contained in:
parent
38d204ad90
commit
816be1cbe8
3 changed files with 5 additions and 2 deletions
|
@ -80,7 +80,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
|
|||
|
||||
To run all unit and integration tests:
|
||||
```sh
|
||||
pip install pytest
|
||||
pip install pytest flaky
|
||||
py.test
|
||||
```
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"""
|
||||
Integration (not unit) tests for pylast.py
|
||||
"""
|
||||
from flaky import flaky
|
||||
import os
|
||||
import pytest
|
||||
from random import choice
|
||||
|
@ -30,6 +31,7 @@ def load_secrets():
|
|||
return doc
|
||||
|
||||
|
||||
@flaky
|
||||
class TestPyLast(unittest.TestCase):
|
||||
|
||||
secrets = None
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -10,6 +10,7 @@ deps =
|
|||
mock
|
||||
ipdb
|
||||
pytest-cov
|
||||
flaky
|
||||
commands = py.test -v --cov pylast --cov-report term-missing {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue