FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/tests/functional/cli/test_cli_users.py at v8.6.0 · python-gitlab/python-gitlab · GitHub
python-gitlab
python-gitlab
Repository navigation
Code
Issues
16
(16)
Pull requests
15
(15)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
tests
/
functional
/
cli
/
test_cli_users.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (20 loc) · 558 Bytes
Breadcrumbs
python-gitlab
/
tests
/
functional
/
cli
/
test_cli_users.py
Copy path
File metadata and controls
26 lines (20 loc) · 558 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
import
datetime
def
test_create_user_impersonation_token_with_scopes
(
gitlab_cli
,
user
):
cmd
=
[
"user-impersonation-token"
,
"create"
,
"--user-id"
,
user
.
id
,
"--name"
,
"test-token"
,
"--scopes"
,
"api,read_user"
,
"--expires-at"
,
datetime
.
date
.
today
().
isoformat
(),
]
ret
=
gitlab_cli
(
cmd
)
assert
ret
.
success
def
test_list_user_projects
(
gitlab_cli
,
user
):
cmd
=
[
"user-project"
,
"list"
,
"--user-id"
,
user
.
id
]
ret
=
gitlab_cli
(
cmd
)
assert
ret
.
success
Back
|
FazBrowse Home
|
New Git URL