Update test packages (#2918)

This commit is contained in:
Paulus Schoutsen 2016-08-21 11:44:40 -07:00 committed by GitHub
parent 635e5c8eba
commit f802d6bfa3
3 changed files with 10 additions and 11 deletions

View file

@ -1,11 +1,10 @@
flake8>=2.6.0
flake8>=3.0.4
pylint>=1.5.6
astroid>=1.4.8
coveralls>=1.1
pytest>=2.9.2
pytest-cov>=2.2.1
pytest-cov>=2.3.1
pytest-timeout>=1.0.0
pytest-capturelog>=0.7
pytest-catchlog>=1.2.2
pydocstyle>=1.0.0
requests_mock>=1.0
mypy-lang>=0.4

View file

@ -1,7 +1,7 @@
[wheel]
universal = 1
[pytest]
[tool:pytest]
testpaths = tests
norecursedirs = .git testing_config

View file

@ -75,7 +75,7 @@ class TestHttp:
def test_access_with_password_in_header(self, caplog):
"""Test access with password in URL."""
# Hide logging from requests package that we use to test logging
caplog.setLevel(logging.WARNING,
caplog.set_level(logging.WARNING,
logger='requests.packages.urllib3.connectionpool')
req = requests.get(
@ -84,7 +84,7 @@ class TestHttp:
assert req.status_code == 200
logs = caplog.text()
logs = caplog.text
# assert const.URL_API in logs
assert API_PASSWORD not in logs
@ -99,7 +99,7 @@ class TestHttp:
def test_access_with_password_in_url(self, caplog):
"""Test access with password in URL."""
# Hide logging from requests package that we use to test logging
caplog.setLevel(logging.WARNING,
caplog.set_level(logging.WARNING,
logger='requests.packages.urllib3.connectionpool')
req = requests.get(_url(const.URL_API),
@ -107,7 +107,7 @@ class TestHttp:
assert req.status_code == 200
logs = caplog.text()
logs = caplog.text
# assert const.URL_API in logs
assert API_PASSWORD not in logs