217 lines
4.6 KiB
Python
217 lines
4.6 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Gitea API
|
|
|
|
This documentation describes the Gitea API. # noqa: E501
|
|
|
|
OpenAPI spec version: 1.23.1
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
|
|
import gitea
|
|
from gitea.api.admin_api import AdminApi # noqa: E501
|
|
from gitea.rest import ApiException
|
|
|
|
|
|
class TestAdminApi(unittest.TestCase):
|
|
"""AdminApi unit test stubs"""
|
|
|
|
def setUp(self):
|
|
self.api = gitea.api.admin_api.AdminApi() # noqa: E501
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def test_admin_add_user_badges(self):
|
|
"""Test case for admin_add_user_badges
|
|
|
|
Add a badge to a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_adopt_repository(self):
|
|
"""Test case for admin_adopt_repository
|
|
|
|
Adopt unadopted files as a repository # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_create_hook(self):
|
|
"""Test case for admin_create_hook
|
|
|
|
Create a hook # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_create_org(self):
|
|
"""Test case for admin_create_org
|
|
|
|
Create an organization # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_create_public_key(self):
|
|
"""Test case for admin_create_public_key
|
|
|
|
Add a public key on behalf of a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_create_repo(self):
|
|
"""Test case for admin_create_repo
|
|
|
|
Create a repository on behalf of a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_create_user(self):
|
|
"""Test case for admin_create_user
|
|
|
|
Create a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_cron_list(self):
|
|
"""Test case for admin_cron_list
|
|
|
|
List cron tasks # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_cron_run(self):
|
|
"""Test case for admin_cron_run
|
|
|
|
Run cron task # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_delete_hook(self):
|
|
"""Test case for admin_delete_hook
|
|
|
|
Delete a hook # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_delete_unadopted_repository(self):
|
|
"""Test case for admin_delete_unadopted_repository
|
|
|
|
Delete unadopted files # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_delete_user(self):
|
|
"""Test case for admin_delete_user
|
|
|
|
Delete a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_delete_user_badges(self):
|
|
"""Test case for admin_delete_user_badges
|
|
|
|
Remove a badge from a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_delete_user_public_key(self):
|
|
"""Test case for admin_delete_user_public_key
|
|
|
|
Delete a user's public key # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_edit_hook(self):
|
|
"""Test case for admin_edit_hook
|
|
|
|
Update a hook # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_edit_user(self):
|
|
"""Test case for admin_edit_user
|
|
|
|
Edit an existing user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_get_all_emails(self):
|
|
"""Test case for admin_get_all_emails
|
|
|
|
List all emails # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_get_all_orgs(self):
|
|
"""Test case for admin_get_all_orgs
|
|
|
|
List all organizations # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_get_hook(self):
|
|
"""Test case for admin_get_hook
|
|
|
|
Get a hook # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_get_runner_registration_token(self):
|
|
"""Test case for admin_get_runner_registration_token
|
|
|
|
Get an global actions runner registration token # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_list_hooks(self):
|
|
"""Test case for admin_list_hooks
|
|
|
|
List system's webhooks # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_list_user_badges(self):
|
|
"""Test case for admin_list_user_badges
|
|
|
|
List a user's badges # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_rename_user(self):
|
|
"""Test case for admin_rename_user
|
|
|
|
Rename a user # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_search_emails(self):
|
|
"""Test case for admin_search_emails
|
|
|
|
Search all emails # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_search_users(self):
|
|
"""Test case for admin_search_users
|
|
|
|
Search users according filter conditions # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_admin_unadopted_list(self):
|
|
"""Test case for admin_unadopted_list
|
|
|
|
List unadopted repositories # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|