Rerun flaky interation tests

This commit is contained in:
hugovk 2015-04-12 12:54:22 +03:00
parent 38d204ad90
commit 816be1cbe8
3 changed files with 5 additions and 2 deletions

View file

@ -80,7 +80,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE
To run all unit and integration tests: To run all unit and integration tests:
```sh ```sh
pip install pytest pip install pytest flaky
py.test py.test
``` ```

View file

@ -2,6 +2,7 @@
""" """
Integration (not unit) tests for pylast.py Integration (not unit) tests for pylast.py
""" """
from flaky import flaky
import os import os
import pytest import pytest
from random import choice from random import choice
@ -30,6 +31,7 @@ def load_secrets():
return doc return doc
@flaky
class TestPyLast(unittest.TestCase): class TestPyLast(unittest.TestCase):
secrets = None secrets = None

View file

@ -10,6 +10,7 @@ deps =
mock mock
ipdb ipdb
pytest-cov pytest-cov
flaky
commands = py.test -v --cov pylast --cov-report term-missing {posargs} commands = py.test -v --cov pylast --cov-report term-missing {posargs}
[testenv:venv] [testenv:venv]