FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/gitlab/tests/conftest.py at fix/delete-attr · bene64/python-gitlab · GitHub
bene64
python-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
gitlab
/
tests
/
conftest.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (38 loc) · 949 Bytes
Breadcrumbs
python-gitlab
/
gitlab
/
tests
/
conftest.py
Copy path
File metadata and controls
52 lines (38 loc) · 949 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import
pytest
import
gitlab
@
pytest
.
fixture
def
gl
():
return
gitlab
.
Gitlab
(
"http://localhost"
,
private_token
=
"private_token"
,
ssl_verify
=
True
,
api_version
=
4
,
)
# Todo: parametrize, but check what tests it's really useful for
@
pytest
.
fixture
def
gl_trailing
():
return
gitlab
.
Gitlab
(
"http://localhost/"
,
private_token
=
"private_token"
,
api_version
=
4
)
@
pytest
.
fixture
def
default_config
(
tmpdir
):
valid_config
=
"""[global]
default = one
ssl_verify = true
timeout = 2
[one]
url = http://one.url
private_token = ABCDEF
"""
config_path
=
tmpdir
.
join
(
"python-gitlab.cfg"
)
config_path
.
write
(
valid_config
)
return
str
(
config_path
)
@
pytest
.
fixture
def
group
(
gl
):
return
gl
.
groups
.
get
(
1
,
lazy
=
True
)
@
pytest
.
fixture
def
project
(
gl
):
return
gl
.
projects
.
get
(
1
,
lazy
=
True
)
@
pytest
.
fixture
def
user
(
gl
):
return
gl
.
users
.
get
(
1
,
lazy
=
True
)
Back
|
FazBrowse Home
|
New Git URL