From 816be1cbe8cd50c7775cb61ac8fe9ad8d95a1a93 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 12 Apr 2015 12:54:22 +0300 Subject: [PATCH] Rerun flaky interation tests --- README.md | 2 +- tests/test_pylast.py | 2 ++ tox.ini | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36bd8f5..77b16eb 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/tests/test_pylast.py b/tests/test_pylast.py index 37695bf..8962ef3 100755 --- a/tests/test_pylast.py +++ b/tests/test_pylast.py @@ -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 diff --git a/tox.ini b/tox.ini index 28796b2..ec0e215 100644 --- a/tox.ini +++ b/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] @@ -28,4 +29,4 @@ commands = pyflakes tests pep8 pylast pep8 tests - ./clonedigger.sh \ No newline at end of file + ./clonedigger.sh