File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff 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
8660def resp_revoke_project_access_token ():
8761 content = [
You can’t perform that action at this time.
0 commit comments