Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
f802d6bf
Commit
f802d6bf
authored
8 years ago
by
Paulus Schoutsen
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update test packages (#2918)
parent
635e5c8e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements_test.txt
+3
-4
3 additions, 4 deletions
requirements_test.txt
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
tests/components/test_http.py
+6
-6
6 additions, 6 deletions
tests/components/test_http.py
with
10 additions
and
11 deletions
requirements_test.txt
+
3
−
4
View file @
f802d6bf
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-ca
pturelog>=0.7
pytest-ca
tchlog>=1.2.2
pydocstyle>=1.0.0
requests_mock>=1.0
mypy-lang>=0.4
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
f802d6bf
[wheel]
universal
=
1
[pytest]
[
tool:
pytest]
testpaths
=
tests
norecursedirs
=
.git testing_config
...
...
This diff is collapsed.
Click to expand it.
tests/components/test_http.py
+
6
−
6
View file @
f802d6bf
...
...
@@ -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
.
set
L
evel
(
logging
.
WARNING
,
logger
=
'
requests.packages.urllib3.connectionpool
'
)
caplog
.
set
_l
evel
(
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
.
set
L
evel
(
logging
.
WARNING
,
logger
=
'
requests.packages.urllib3.connectionpool
'
)
caplog
.
set
_l
evel
(
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment