Update test packages (#2918)
This commit is contained in:
parent
635e5c8eba
commit
f802d6bfa3
3 changed files with 10 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[wheel]
|
||||
universal = 1
|
||||
|
||||
[pytest]
|
||||
[tool:pytest]
|
||||
testpaths = tests
|
||||
norecursedirs = .git testing_config
|
||||
|
||||
|
|
|
@ -75,8 +75,8 @@ 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,
|
||||
logger='requests.packages.urllib3.connectionpool')
|
||||
caplog.set_level(logging.WARNING,
|
||||
logger='requests.packages.urllib3.connectionpool')
|
||||
|
||||
req = requests.get(
|
||||
_url(const.URL_API),
|
||||
|
@ -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,15 +99,15 @@ 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,
|
||||
logger='requests.packages.urllib3.connectionpool')
|
||||
caplog.set_level(logging.WARNING,
|
||||
logger='requests.packages.urllib3.connectionpool')
|
||||
|
||||
req = requests.get(_url(const.URL_API),
|
||||
params={'api_password': API_PASSWORD})
|
||||
|
||||
assert req.status_code == 200
|
||||
|
||||
logs = caplog.text()
|
||||
logs = caplog.text
|
||||
|
||||
# assert const.URL_API in logs
|
||||
assert API_PASSWORD not in logs
|
||||
|
|
Loading…
Add table
Reference in a new issue