FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/tests/functional/cli/test_cli_projects.py at main · delovery/python-gitlab · GitHub
delovery
python-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
tests
/
functional
/
cli
/
test_cli_projects.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (25 loc) · 666 Bytes
Breadcrumbs
python-gitlab
/
tests
/
functional
/
cli
/
test_cli_projects.py
Copy path
File metadata and controls
27 lines (25 loc) · 666 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import
pytest
import
responses
@
pytest
.
mark
.
script_launch_mode
(
"inprocess"
)
@
responses
.
activate
def
test_project_registry_delete_in_bulk
(
script_runner
,
resp_delete_registry_tags_in_bulk
):
responses
.
add
(
**
resp_delete_registry_tags_in_bulk
)
cmd
=
[
"gitlab"
,
"project-registry-tag"
,
"delete-in-bulk"
,
"--project-id"
,
"1"
,
"--repository-id"
,
"1"
,
"--name-regex-delete"
,
"^.*dev.*$"
,
# TODO: remove `name` after deleting without ID is possible
# See #849 and #1631
"--name"
,
".*"
,
]
ret
=
ret
=
script_runner
.
run
(
*
cmd
)
assert
ret
.
success
Back
|
FazBrowse Home
|
New Git URL