Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: flake8
Browse files Browse the repository at this point in the history
and pin the versions used
  • Loading branch information
pjenvey committed Feb 19, 2019
1 parent 954a091 commit 6a42be5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions autopush/tests/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ basepython = pypy

[testenv:flake8]
commands = flake8 autopush
deps = flake8
deps = flake8==3.7.6

[testenv:py36-mypy]
commands = mypy autopush
Expand Down

0 comments on commit 6a42be5

Please sign in to comment.