| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1becef0 commit 5d94846
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,32 +56,6 @@ def resp_create_project_access_token(): | |||
| 56 | 56 | yield rsps | |
| 57 | 57 | ||
| 58 | 58 | ||
| 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 | - | ||
| 85 | 59 | @pytest.fixture | |
| 86 | 60 | def resp_revoke_project_access_token(): | |
| 87 | 61 | content = [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments