diff options
author | Max Wittig <max.wittig.ch@gmail.com> | 2021-02-24 19:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 19:22:37 +0100 |
commit | 5d9484617e56b89ac5e17f8fc94c0b1eb46d4b89 (patch) | |
tree | e36144f4020aedb95518e43ad70681e803ec2235 | |
parent | 1becef0253804f119c8a4d0b8b1c53deb2f4d889 (diff) | |
download | gitlab-5d9484617e56b89ac5e17f8fc94c0b1eb46d4b89.tar.gz |
test: don't add duplicate fixture
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
-rw-r--r-- | gitlab/tests/objects/test_project_access_tokens.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gitlab/tests/objects/test_project_access_tokens.py b/gitlab/tests/objects/test_project_access_tokens.py index 76f664f..4d4788d 100644 --- a/gitlab/tests/objects/test_project_access_tokens.py +++ b/gitlab/tests/objects/test_project_access_tokens.py @@ -57,32 +57,6 @@ def resp_create_project_access_token(): @pytest.fixture -def resp_list_project_access_token(): - content = [ - { - "user_id": 141, - "scopes": ["api"], - "name": "token", - "expires_at": "2021-01-31", - "id": 42, - "active": True, - "created_at": "2021-01-20T22:11:48.151Z", - "revoked": False, - } - ] - - with responses.RequestsMock(assert_all_requests_are_fired=False) as rsps: - rsps.add( - method=responses.GET, - url="http://localhost/api/v4/projects/1/access_tokens", - json=content, - content_type="application/json", - status=200, - ) - yield rsps - - -@pytest.fixture def resp_revoke_project_access_token(): content = [ { |