Skip to content

Commit 5d94846

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

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
yield rsps
5757

5858

59-
@pytest.fixture
60-
def resp_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-
with responses.RequestsMock(assert_all_requests_are_fired=False) as rsps:
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-
yield rsps
83-
84-
8559
@pytest.fixture
8660
def resp_revoke_project_access_token():
8761
content = [

0 commit comments

Comments
 (0)