Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d94846

Browse files
max-wittignejch
andauthored
test: don't add duplicate fixture
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
1 parent1becef0 commit5d94846

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

‎gitlab/tests/objects/test_project_access_tokens.py‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,6 @@ def resp_create_project_access_token():
5656
yieldrsps
5757

5858

59-
@pytest.fixture
60-
defresp_list_project_access_token():
61-
content= [
62-
{
63-
"user_id":141,
64-
"scopes": ["api"],
65-
"name":"token",
66-
"expires_at":"2021-01-31",
67-
"id":42,
68-
"active":True,
69-
"created_at":"2021-01-20T22:11:48.151Z",
70-
"revoked":False,
71-
}
72-
]
73-
74-
withresponses.RequestsMock(assert_all_requests_are_fired=False)asrsps:
75-
rsps.add(
76-
method=responses.GET,
77-
url="http://localhost/api/v4/projects/1/access_tokens",
78-
json=content,
79-
content_type="application/json",
80-
status=200,
81-
)
82-
yieldrsps
83-
84-
8559
@pytest.fixture
8660
defresp_revoke_project_access_token():
8761
content= [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp