Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
5952ba2f
Verified
Commit
5952ba2f
authored
3 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Use a public method to access registered responses
parent
c54146a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!145
Use a public method to access registered responses
Pipeline
#78959
passed
3 years ago
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_git.py
+12
-12
12 additions, 12 deletions
tests/test_git.py
with
12 additions
and
12 deletions
tests/test_git.py
+
12
−
12
View file @
5952ba2f
...
...
@@ -225,8 +225,8 @@ def test_merge_request(fake_responses, fake_gitlab_helper_factory, mocker):
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
gitlab_helper
.
_wait_for_rebase_to_finish
=
mocker
.
MagicMock
()
...
...
@@ -261,8 +261,8 @@ def test_merge_request_fail(fake_responses, fake_gitlab_helper_factory, mocker):
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
gitlab_helper
.
_wait_for_rebase_to_finish
=
mocker
.
MagicMock
()
...
...
@@ -349,8 +349,8 @@ def test_merge_request__success_after_errors(
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
...
...
@@ -387,8 +387,8 @@ def test_merge_request__fail_bad_request(fake_responses, fake_gitlab_helper_fact
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
...
...
@@ -413,8 +413,8 @@ def test_create_merge_request__no_retry_5xx_error(
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
...
...
@@ -458,8 +458,8 @@ def test_create_merge_request__retry_5xx_error(
)
# the fake_responses are defined in the same order as they are expected to be called
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
_matches
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
_matches
]
expected_http_methods
=
[
r
.
method
for
r
in
fake_responses
.
registered
()
]
expected_urls
=
[
r
.
url
for
r
in
fake_responses
.
registered
()
]
gitlab_helper
=
fake_gitlab_helper_factory
()
...
...
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