You've already forked gitea_python_api
Init
This commit is contained in:
258
test/test_admin_api.py
Normal file
258
test/test_admin_api.py
Normal file
@@ -0,0 +1,258 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Gitea API
|
||||
|
||||
This documentation describes the Gitea API. # noqa: E501
|
||||
|
||||
OpenAPI spec version: 1.25.2
|
||||
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import swagger_client
|
||||
from swagger_client.api.admin_api import AdminApi # noqa: E501
|
||||
from swagger_client.rest import ApiException
|
||||
|
||||
|
||||
class TestAdminApi(unittest.TestCase):
|
||||
"""AdminApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = swagger_client.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_runner_registration_token(self):
|
||||
"""Test case for admin_create_runner_registration_token
|
||||
|
||||
Get an global actions runner registration token # 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
|
||||
|
||||
def test_delete_admin_runner(self):
|
||||
"""Test case for delete_admin_runner
|
||||
|
||||
Delete an global runner # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_admin_runner(self):
|
||||
"""Test case for get_admin_runner
|
||||
|
||||
Get an global runner # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_admin_runners(self):
|
||||
"""Test case for get_admin_runners
|
||||
|
||||
Get all runners # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_list_admin_workflow_jobs(self):
|
||||
"""Test case for list_admin_workflow_jobs
|
||||
|
||||
Lists all jobs # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_list_admin_workflow_runs(self):
|
||||
"""Test case for list_admin_workflow_runs
|
||||
|
||||
Lists all runs # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user