From 6a42be5877ba13272ddc7cb56c36d85120400549 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Tue, 19 Feb 2019 10:04:32 -0800 Subject: [PATCH] chore: flake8 and pin the versions used --- autopush/tests/test_router.py | 12 ++++++------ test-requirements.txt | 2 +- tox.ini | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/autopush/tests/test_router.py b/autopush/tests/test_router.py index d0270f26..22dcbba2 100644 --- a/autopush/tests/test_router.py +++ b/autopush/tests/test_router.py @@ -63,12 +63,12 @@ def init(self, conf, router_conf): class APNSRouterTestCase(unittest.TestCase): def _waitfor(self, func): - times = 0 - while not func(): # pragma: nocover - time.sleep(1) - times += 1 - if times > 9: - break + times = 0 + while not func(): # pragma: nocover + time.sleep(1) + times += 1 + if times > 9: + break @patch('autopush.router.apns2.HTTP20Connection', spec=hyper.HTTP20Connection) diff --git a/test-requirements.txt b/test-requirements.txt index da7ffbf5..d3547699 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ -r requirements.txt coverage factory_boy==2.8.1 -flake8==3.3.0 +flake8==3.7.6 funcsigs==1.0.2 mock>=1.0.1 -e git+https://github.com/bbangert/moto.git@3bdb75a961148ea5aa526f0e88d9e7835a30df3a#egg=moto diff --git a/tox.ini b/tox.ini index c0eac9f3..a1eaa7f9 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ basepython = pypy [testenv:flake8] commands = flake8 autopush -deps = flake8 +deps = flake8==3.7.6 [testenv:py36-mypy] commands = mypy autopush