Initial commit.

This commit is contained in:
2020-11-28 18:59:17 +01:00
commit a60c631551
410 changed files with 87335 additions and 0 deletions

0
test/__init__.py Normal file
View File

40
test/test_access_token.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.access_token import AccessToken # noqa: E501
from giteapython.rest import ApiException
class TestAccessToken(unittest.TestCase):
"""AccessToken unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAccessToken(self):
"""Test AccessToken"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.access_token.AccessToken() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.add_collaborator_option import AddCollaboratorOption # noqa: E501
from giteapython.rest import ApiException
class TestAddCollaboratorOption(unittest.TestCase):
"""AddCollaboratorOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAddCollaboratorOption(self):
"""Test AddCollaboratorOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.add_collaborator_option.AddCollaboratorOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.add_time_option import AddTimeOption # noqa: E501
from giteapython.rest import ApiException
class TestAddTimeOption(unittest.TestCase):
"""AddTimeOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAddTimeOption(self):
"""Test AddTimeOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.add_time_option.AddTimeOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

97
test/test_admin_api.py Normal file
View File

@ -0,0 +1,97 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.api.admin_api import AdminApi # noqa: E501
from giteapython.rest import ApiException
class TestAdminApi(unittest.TestCase):
"""AdminApi unit test stubs"""
def setUp(self):
self.api = giteapython.api.admin_api.AdminApi() # noqa: E501
def tearDown(self):
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_delete_user(self):
"""Test case for admin_delete_user
Delete 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_user(self):
"""Test case for admin_edit_user
Edit an existing user # 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_all_users(self):
"""Test case for admin_get_all_users
List all users # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.annotated_tag import AnnotatedTag # noqa: E501
from giteapython.rest import ApiException
class TestAnnotatedTag(unittest.TestCase):
"""AnnotatedTag unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAnnotatedTag(self):
"""Test AnnotatedTag"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.annotated_tag.AnnotatedTag() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.annotated_tag_object import AnnotatedTagObject # noqa: E501
from giteapython.rest import ApiException
class TestAnnotatedTagObject(unittest.TestCase):
"""AnnotatedTagObject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAnnotatedTagObject(self):
"""Test AnnotatedTagObject"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.annotated_tag_object.AnnotatedTagObject() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_api_error.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.api_error import APIError # noqa: E501
from giteapython.rest import ApiException
class TestAPIError(unittest.TestCase):
"""APIError unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAPIError(self):
"""Test APIError"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.api_error.APIError() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_attachment.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.attachment import Attachment # noqa: E501
from giteapython.rest import ApiException
class TestAttachment(unittest.TestCase):
"""Attachment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAttachment(self):
"""Test Attachment"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.attachment.Attachment() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_branch.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.branch import Branch # noqa: E501
from giteapython.rest import ApiException
class TestBranch(unittest.TestCase):
"""Branch unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testBranch(self):
"""Test Branch"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.branch.Branch() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.branch_protection import BranchProtection # noqa: E501
from giteapython.rest import ApiException
class TestBranchProtection(unittest.TestCase):
"""BranchProtection unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testBranchProtection(self):
"""Test BranchProtection"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.branch_protection.BranchProtection() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_comment.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.comment import Comment # noqa: E501
from giteapython.rest import ApiException
class TestComment(unittest.TestCase):
"""Comment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testComment(self):
"""Test Comment"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.comment.Comment() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_commit.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.commit import Commit # noqa: E501
from giteapython.rest import ApiException
class TestCommit(unittest.TestCase):
"""Commit unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCommit(self):
"""Test Commit"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.commit.Commit() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.commit_date_options import CommitDateOptions # noqa: E501
from giteapython.rest import ApiException
class TestCommitDateOptions(unittest.TestCase):
"""CommitDateOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCommitDateOptions(self):
"""Test CommitDateOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.commit_date_options.CommitDateOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_commit_meta.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.commit_meta import CommitMeta # noqa: E501
from giteapython.rest import ApiException
class TestCommitMeta(unittest.TestCase):
"""CommitMeta unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCommitMeta(self):
"""Test CommitMeta"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.commit_meta.CommitMeta() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_commit_user.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.commit_user import CommitUser # noqa: E501
from giteapython.rest import ApiException
class TestCommitUser(unittest.TestCase):
"""CommitUser unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCommitUser(self):
"""Test CommitUser"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.commit_user.CommitUser() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.contents_response import ContentsResponse # noqa: E501
from giteapython.rest import ApiException
class TestContentsResponse(unittest.TestCase):
"""ContentsResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testContentsResponse(self):
"""Test ContentsResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.contents_response.ContentsResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_branch_protection_option import CreateBranchProtectionOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateBranchProtectionOption(unittest.TestCase):
"""CreateBranchProtectionOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateBranchProtectionOption(self):
"""Test CreateBranchProtectionOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_branch_protection_option.CreateBranchProtectionOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_email_option import CreateEmailOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateEmailOption(unittest.TestCase):
"""CreateEmailOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateEmailOption(self):
"""Test CreateEmailOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_email_option.CreateEmailOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_file_options import CreateFileOptions # noqa: E501
from giteapython.rest import ApiException
class TestCreateFileOptions(unittest.TestCase):
"""CreateFileOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateFileOptions(self):
"""Test CreateFileOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_file_options.CreateFileOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_fork_option import CreateForkOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateForkOption(unittest.TestCase):
"""CreateForkOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateForkOption(self):
"""Test CreateForkOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_fork_option.CreateForkOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_gpg_key_option import CreateGPGKeyOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateGPGKeyOption(unittest.TestCase):
"""CreateGPGKeyOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateGPGKeyOption(self):
"""Test CreateGPGKeyOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_gpg_key_option.CreateGPGKeyOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_hook_option import CreateHookOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateHookOption(unittest.TestCase):
"""CreateHookOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateHookOption(self):
"""Test CreateHookOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_hook_option.CreateHookOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_hook_option_config import CreateHookOptionConfig # noqa: E501
from giteapython.rest import ApiException
class TestCreateHookOptionConfig(unittest.TestCase):
"""CreateHookOptionConfig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateHookOptionConfig(self):
"""Test CreateHookOptionConfig"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_hook_option_config.CreateHookOptionConfig() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_issue_comment_option import CreateIssueCommentOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateIssueCommentOption(unittest.TestCase):
"""CreateIssueCommentOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateIssueCommentOption(self):
"""Test CreateIssueCommentOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_issue_comment_option.CreateIssueCommentOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_issue_option import CreateIssueOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateIssueOption(unittest.TestCase):
"""CreateIssueOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateIssueOption(self):
"""Test CreateIssueOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_issue_option.CreateIssueOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_key_option import CreateKeyOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateKeyOption(unittest.TestCase):
"""CreateKeyOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateKeyOption(self):
"""Test CreateKeyOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_key_option.CreateKeyOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_label_option import CreateLabelOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateLabelOption(unittest.TestCase):
"""CreateLabelOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateLabelOption(self):
"""Test CreateLabelOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_label_option.CreateLabelOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_milestone_option import CreateMilestoneOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateMilestoneOption(unittest.TestCase):
"""CreateMilestoneOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateMilestoneOption(self):
"""Test CreateMilestoneOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_milestone_option.CreateMilestoneOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_o_auth2_application_options import CreateOAuth2ApplicationOptions # noqa: E501
from giteapython.rest import ApiException
class TestCreateOAuth2ApplicationOptions(unittest.TestCase):
"""CreateOAuth2ApplicationOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateOAuth2ApplicationOptions(self):
"""Test CreateOAuth2ApplicationOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_o_auth2_application_options.CreateOAuth2ApplicationOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_org_option import CreateOrgOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateOrgOption(unittest.TestCase):
"""CreateOrgOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateOrgOption(self):
"""Test CreateOrgOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_org_option.CreateOrgOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_pull_request_option import CreatePullRequestOption # noqa: E501
from giteapython.rest import ApiException
class TestCreatePullRequestOption(unittest.TestCase):
"""CreatePullRequestOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreatePullRequestOption(self):
"""Test CreatePullRequestOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_pull_request_option.CreatePullRequestOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_pull_review_comment import CreatePullReviewComment # noqa: E501
from giteapython.rest import ApiException
class TestCreatePullReviewComment(unittest.TestCase):
"""CreatePullReviewComment unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreatePullReviewComment(self):
"""Test CreatePullReviewComment"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_pull_review_comment.CreatePullReviewComment() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_pull_review_options import CreatePullReviewOptions # noqa: E501
from giteapython.rest import ApiException
class TestCreatePullReviewOptions(unittest.TestCase):
"""CreatePullReviewOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreatePullReviewOptions(self):
"""Test CreatePullReviewOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_pull_review_options.CreatePullReviewOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_release_option import CreateReleaseOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateReleaseOption(unittest.TestCase):
"""CreateReleaseOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateReleaseOption(self):
"""Test CreateReleaseOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_release_option.CreateReleaseOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_repo_option import CreateRepoOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateRepoOption(unittest.TestCase):
"""CreateRepoOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateRepoOption(self):
"""Test CreateRepoOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_repo_option.CreateRepoOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_status_option import CreateStatusOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateStatusOption(unittest.TestCase):
"""CreateStatusOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateStatusOption(self):
"""Test CreateStatusOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_status_option.CreateStatusOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_team_option import CreateTeamOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateTeamOption(unittest.TestCase):
"""CreateTeamOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateTeamOption(self):
"""Test CreateTeamOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_team_option.CreateTeamOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.create_user_option import CreateUserOption # noqa: E501
from giteapython.rest import ApiException
class TestCreateUserOption(unittest.TestCase):
"""CreateUserOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCreateUserOption(self):
"""Test CreateUserOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.create_user_option.CreateUserOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.delete_email_option import DeleteEmailOption # noqa: E501
from giteapython.rest import ApiException
class TestDeleteEmailOption(unittest.TestCase):
"""DeleteEmailOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDeleteEmailOption(self):
"""Test DeleteEmailOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.delete_email_option.DeleteEmailOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.delete_file_options import DeleteFileOptions # noqa: E501
from giteapython.rest import ApiException
class TestDeleteFileOptions(unittest.TestCase):
"""DeleteFileOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDeleteFileOptions(self):
"""Test DeleteFileOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.delete_file_options.DeleteFileOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_deploy_key.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.deploy_key import DeployKey # noqa: E501
from giteapython.rest import ApiException
class TestDeployKey(unittest.TestCase):
"""DeployKey unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDeployKey(self):
"""Test DeployKey"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.deploy_key.DeployKey() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_attachment_options import EditAttachmentOptions # noqa: E501
from giteapython.rest import ApiException
class TestEditAttachmentOptions(unittest.TestCase):
"""EditAttachmentOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditAttachmentOptions(self):
"""Test EditAttachmentOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_attachment_options.EditAttachmentOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_branch_protection_option import EditBranchProtectionOption # noqa: E501
from giteapython.rest import ApiException
class TestEditBranchProtectionOption(unittest.TestCase):
"""EditBranchProtectionOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditBranchProtectionOption(self):
"""Test EditBranchProtectionOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_branch_protection_option.EditBranchProtectionOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_deadline_option import EditDeadlineOption # noqa: E501
from giteapython.rest import ApiException
class TestEditDeadlineOption(unittest.TestCase):
"""EditDeadlineOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditDeadlineOption(self):
"""Test EditDeadlineOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_deadline_option.EditDeadlineOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_git_hook_option import EditGitHookOption # noqa: E501
from giteapython.rest import ApiException
class TestEditGitHookOption(unittest.TestCase):
"""EditGitHookOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditGitHookOption(self):
"""Test EditGitHookOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_git_hook_option.EditGitHookOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_hook_option import EditHookOption # noqa: E501
from giteapython.rest import ApiException
class TestEditHookOption(unittest.TestCase):
"""EditHookOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditHookOption(self):
"""Test EditHookOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_hook_option.EditHookOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_issue_comment_option import EditIssueCommentOption # noqa: E501
from giteapython.rest import ApiException
class TestEditIssueCommentOption(unittest.TestCase):
"""EditIssueCommentOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditIssueCommentOption(self):
"""Test EditIssueCommentOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_issue_comment_option.EditIssueCommentOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_issue_option import EditIssueOption # noqa: E501
from giteapython.rest import ApiException
class TestEditIssueOption(unittest.TestCase):
"""EditIssueOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditIssueOption(self):
"""Test EditIssueOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_issue_option.EditIssueOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_label_option import EditLabelOption # noqa: E501
from giteapython.rest import ApiException
class TestEditLabelOption(unittest.TestCase):
"""EditLabelOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditLabelOption(self):
"""Test EditLabelOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_label_option.EditLabelOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_milestone_option import EditMilestoneOption # noqa: E501
from giteapython.rest import ApiException
class TestEditMilestoneOption(unittest.TestCase):
"""EditMilestoneOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditMilestoneOption(self):
"""Test EditMilestoneOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_milestone_option.EditMilestoneOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_org_option import EditOrgOption # noqa: E501
from giteapython.rest import ApiException
class TestEditOrgOption(unittest.TestCase):
"""EditOrgOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditOrgOption(self):
"""Test EditOrgOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_org_option.EditOrgOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_pull_request_option import EditPullRequestOption # noqa: E501
from giteapython.rest import ApiException
class TestEditPullRequestOption(unittest.TestCase):
"""EditPullRequestOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditPullRequestOption(self):
"""Test EditPullRequestOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_pull_request_option.EditPullRequestOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_reaction_option import EditReactionOption # noqa: E501
from giteapython.rest import ApiException
class TestEditReactionOption(unittest.TestCase):
"""EditReactionOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditReactionOption(self):
"""Test EditReactionOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_reaction_option.EditReactionOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_release_option import EditReleaseOption # noqa: E501
from giteapython.rest import ApiException
class TestEditReleaseOption(unittest.TestCase):
"""EditReleaseOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditReleaseOption(self):
"""Test EditReleaseOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_release_option.EditReleaseOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_repo_option import EditRepoOption # noqa: E501
from giteapython.rest import ApiException
class TestEditRepoOption(unittest.TestCase):
"""EditRepoOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditRepoOption(self):
"""Test EditRepoOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_repo_option.EditRepoOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_team_option import EditTeamOption # noqa: E501
from giteapython.rest import ApiException
class TestEditTeamOption(unittest.TestCase):
"""EditTeamOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditTeamOption(self):
"""Test EditTeamOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_team_option.EditTeamOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.edit_user_option import EditUserOption # noqa: E501
from giteapython.rest import ApiException
class TestEditUserOption(unittest.TestCase):
"""EditUserOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditUserOption(self):
"""Test EditUserOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.edit_user_option.EditUserOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_email.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.email import Email # noqa: E501
from giteapython.rest import ApiException
class TestEmail(unittest.TestCase):
"""Email unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEmail(self):
"""Test Email"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.email.Email() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.external_tracker import ExternalTracker # noqa: E501
from giteapython.rest import ApiException
class TestExternalTracker(unittest.TestCase):
"""ExternalTracker unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testExternalTracker(self):
"""Test ExternalTracker"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.external_tracker.ExternalTracker() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.external_wiki import ExternalWiki # noqa: E501
from giteapython.rest import ApiException
class TestExternalWiki(unittest.TestCase):
"""ExternalWiki unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testExternalWiki(self):
"""Test ExternalWiki"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.external_wiki.ExternalWiki() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.file_commit_response import FileCommitResponse # noqa: E501
from giteapython.rest import ApiException
class TestFileCommitResponse(unittest.TestCase):
"""FileCommitResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testFileCommitResponse(self):
"""Test FileCommitResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.file_commit_response.FileCommitResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.file_delete_response import FileDeleteResponse # noqa: E501
from giteapython.rest import ApiException
class TestFileDeleteResponse(unittest.TestCase):
"""FileDeleteResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testFileDeleteResponse(self):
"""Test FileDeleteResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.file_delete_response.FileDeleteResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.file_links_response import FileLinksResponse # noqa: E501
from giteapython.rest import ApiException
class TestFileLinksResponse(unittest.TestCase):
"""FileLinksResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testFileLinksResponse(self):
"""Test FileLinksResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.file_links_response.FileLinksResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.file_response import FileResponse # noqa: E501
from giteapython.rest import ApiException
class TestFileResponse(unittest.TestCase):
"""FileResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testFileResponse(self):
"""Test FileResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.file_response.FileResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.git_blob_response import GitBlobResponse # noqa: E501
from giteapython.rest import ApiException
class TestGitBlobResponse(unittest.TestCase):
"""GitBlobResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGitBlobResponse(self):
"""Test GitBlobResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.git_blob_response.GitBlobResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_git_entry.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.git_entry import GitEntry # noqa: E501
from giteapython.rest import ApiException
class TestGitEntry(unittest.TestCase):
"""GitEntry unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGitEntry(self):
"""Test GitEntry"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.git_entry.GitEntry() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_git_hook.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.git_hook import GitHook # noqa: E501
from giteapython.rest import ApiException
class TestGitHook(unittest.TestCase):
"""GitHook unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGitHook(self):
"""Test GitHook"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.git_hook.GitHook() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_git_object.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.git_object import GitObject # noqa: E501
from giteapython.rest import ApiException
class TestGitObject(unittest.TestCase):
"""GitObject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGitObject(self):
"""Test GitObject"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.git_object.GitObject() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.git_tree_response import GitTreeResponse # noqa: E501
from giteapython.rest import ApiException
class TestGitTreeResponse(unittest.TestCase):
"""GitTreeResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGitTreeResponse(self):
"""Test GitTreeResponse"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.git_tree_response.GitTreeResponse() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_gpg_key.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.gpg_key import GPGKey # noqa: E501
from giteapython.rest import ApiException
class TestGPGKey(unittest.TestCase):
"""GPGKey unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGPGKey(self):
"""Test GPGKey"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.gpg_key.GPGKey() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.gpg_key_email import GPGKeyEmail # noqa: E501
from giteapython.rest import ApiException
class TestGPGKeyEmail(unittest.TestCase):
"""GPGKeyEmail unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testGPGKeyEmail(self):
"""Test GPGKeyEmail"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.gpg_key_email.GPGKeyEmail() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_hook.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.hook import Hook # noqa: E501
from giteapython.rest import ApiException
class TestHook(unittest.TestCase):
"""Hook unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testHook(self):
"""Test Hook"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.hook.Hook() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_identity.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.identity import Identity # noqa: E501
from giteapython.rest import ApiException
class TestIdentity(unittest.TestCase):
"""Identity unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testIdentity(self):
"""Test Identity"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.identity.Identity() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.inline_response200 import InlineResponse200 # noqa: E501
from giteapython.rest import ApiException
class TestInlineResponse200(unittest.TestCase):
"""InlineResponse200 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testInlineResponse200(self):
"""Test InlineResponse200"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.inline_response200.InlineResponse200() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.inline_response2001 import InlineResponse2001 # noqa: E501
from giteapython.rest import ApiException
class TestInlineResponse2001(unittest.TestCase):
"""InlineResponse2001 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testInlineResponse2001(self):
"""Test InlineResponse2001"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.inline_response2001.InlineResponse2001() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.internal_tracker import InternalTracker # noqa: E501
from giteapython.rest import ApiException
class TestInternalTracker(unittest.TestCase):
"""InternalTracker unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testInternalTracker(self):
"""Test InternalTracker"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.internal_tracker.InternalTracker() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_issue.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.issue import Issue # noqa: E501
from giteapython.rest import ApiException
class TestIssue(unittest.TestCase):
"""Issue unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testIssue(self):
"""Test Issue"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.issue.Issue() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

356
test/test_issue_api.py Normal file
View File

@ -0,0 +1,356 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.api.issue_api import IssueApi # noqa: E501
from giteapython.rest import ApiException
class TestIssueApi(unittest.TestCase):
"""IssueApi unit test stubs"""
def setUp(self):
self.api = giteapython.api.issue_api.IssueApi() # noqa: E501
def tearDown(self):
pass
def test_issue_add_label(self):
"""Test case for issue_add_label
Add a label to an issue # noqa: E501
"""
pass
def test_issue_add_subscription(self):
"""Test case for issue_add_subscription
Subscribe user to issue # noqa: E501
"""
pass
def test_issue_add_time(self):
"""Test case for issue_add_time
Add tracked time to a issue # noqa: E501
"""
pass
def test_issue_check_subscription(self):
"""Test case for issue_check_subscription
Check if user is subscribed to an issue # noqa: E501
"""
pass
def test_issue_clear_labels(self):
"""Test case for issue_clear_labels
Remove all labels from an issue # noqa: E501
"""
pass
def test_issue_create_comment(self):
"""Test case for issue_create_comment
Add a comment to an issue # noqa: E501
"""
pass
def test_issue_create_issue(self):
"""Test case for issue_create_issue
Create an issue. If using deadline only the date will be taken into account, and time of day ignored. # noqa: E501
"""
pass
def test_issue_create_label(self):
"""Test case for issue_create_label
Create a label # noqa: E501
"""
pass
def test_issue_create_milestone(self):
"""Test case for issue_create_milestone
Create a milestone # noqa: E501
"""
pass
def test_issue_delete_comment(self):
"""Test case for issue_delete_comment
Delete a comment # noqa: E501
"""
pass
def test_issue_delete_comment_deprecated(self):
"""Test case for issue_delete_comment_deprecated
Delete a comment # noqa: E501
"""
pass
def test_issue_delete_comment_reaction(self):
"""Test case for issue_delete_comment_reaction
Remove a reaction from a comment of an issue # noqa: E501
"""
pass
def test_issue_delete_issue_reaction(self):
"""Test case for issue_delete_issue_reaction
Remove a reaction from an issue # noqa: E501
"""
pass
def test_issue_delete_label(self):
"""Test case for issue_delete_label
Delete a label # noqa: E501
"""
pass
def test_issue_delete_milestone(self):
"""Test case for issue_delete_milestone
Delete a milestone # noqa: E501
"""
pass
def test_issue_delete_stop_watch(self):
"""Test case for issue_delete_stop_watch
Delete an issue's existing stopwatch. # noqa: E501
"""
pass
def test_issue_delete_subscription(self):
"""Test case for issue_delete_subscription
Unsubscribe user from issue # noqa: E501
"""
pass
def test_issue_delete_time(self):
"""Test case for issue_delete_time
Delete specific tracked time # noqa: E501
"""
pass
def test_issue_edit_comment(self):
"""Test case for issue_edit_comment
Edit a comment # noqa: E501
"""
pass
def test_issue_edit_comment_deprecated(self):
"""Test case for issue_edit_comment_deprecated
Edit a comment # noqa: E501
"""
pass
def test_issue_edit_issue(self):
"""Test case for issue_edit_issue
Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. # noqa: E501
"""
pass
def test_issue_edit_issue_deadline(self):
"""Test case for issue_edit_issue_deadline
Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. # noqa: E501
"""
pass
def test_issue_edit_label(self):
"""Test case for issue_edit_label
Update a label # noqa: E501
"""
pass
def test_issue_edit_milestone(self):
"""Test case for issue_edit_milestone
Update a milestone # noqa: E501
"""
pass
def test_issue_get_comment(self):
"""Test case for issue_get_comment
Get a comment # noqa: E501
"""
pass
def test_issue_get_comment_reactions(self):
"""Test case for issue_get_comment_reactions
Get a list of reactions from a comment of an issue # noqa: E501
"""
pass
def test_issue_get_comments(self):
"""Test case for issue_get_comments
List all comments on an issue # noqa: E501
"""
pass
def test_issue_get_issue(self):
"""Test case for issue_get_issue
Get an issue # noqa: E501
"""
pass
def test_issue_get_issue_reactions(self):
"""Test case for issue_get_issue_reactions
Get a list reactions of an issue # noqa: E501
"""
pass
def test_issue_get_label(self):
"""Test case for issue_get_label
Get a single label # noqa: E501
"""
pass
def test_issue_get_labels(self):
"""Test case for issue_get_labels
Get an issue's labels # noqa: E501
"""
pass
def test_issue_get_milestone(self):
"""Test case for issue_get_milestone
Get a milestone # noqa: E501
"""
pass
def test_issue_get_milestones_list(self):
"""Test case for issue_get_milestones_list
Get all of a repository's opened milestones # noqa: E501
"""
pass
def test_issue_get_repo_comments(self):
"""Test case for issue_get_repo_comments
List all comments in a repository # noqa: E501
"""
pass
def test_issue_list_issues(self):
"""Test case for issue_list_issues
List a repository's issues # noqa: E501
"""
pass
def test_issue_list_labels(self):
"""Test case for issue_list_labels
Get all of a repository's labels # noqa: E501
"""
pass
def test_issue_post_comment_reaction(self):
"""Test case for issue_post_comment_reaction
Add a reaction to a comment of an issue # noqa: E501
"""
pass
def test_issue_post_issue_reaction(self):
"""Test case for issue_post_issue_reaction
Add a reaction to an issue # noqa: E501
"""
pass
def test_issue_remove_label(self):
"""Test case for issue_remove_label
Remove a label from an issue # noqa: E501
"""
pass
def test_issue_replace_labels(self):
"""Test case for issue_replace_labels
Replace an issue's labels # noqa: E501
"""
pass
def test_issue_reset_time(self):
"""Test case for issue_reset_time
Reset a tracked time of an issue # noqa: E501
"""
pass
def test_issue_search_issues(self):
"""Test case for issue_search_issues
Search for issues across the repositories that the user has access to # noqa: E501
"""
pass
def test_issue_start_stop_watch(self):
"""Test case for issue_start_stop_watch
Start stopwatch on an issue. # noqa: E501
"""
pass
def test_issue_stop_stop_watch(self):
"""Test case for issue_stop_stop_watch
Stop an issue's existing stopwatch. # noqa: E501
"""
pass
def test_issue_subscriptions(self):
"""Test case for issue_subscriptions
Get users who subscribed on an issue. # noqa: E501
"""
pass
def test_issue_tracked_times(self):
"""Test case for issue_tracked_times
List an issue's tracked times # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.issue_deadline import IssueDeadline # noqa: E501
from giteapython.rest import ApiException
class TestIssueDeadline(unittest.TestCase):
"""IssueDeadline unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testIssueDeadline(self):
"""Test IssueDeadline"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.issue_deadline.IssueDeadline() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.issue_labels_option import IssueLabelsOption # noqa: E501
from giteapython.rest import ApiException
class TestIssueLabelsOption(unittest.TestCase):
"""IssueLabelsOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testIssueLabelsOption(self):
"""Test IssueLabelsOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.issue_labels_option.IssueLabelsOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_label.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.label import Label # noqa: E501
from giteapython.rest import ApiException
class TestLabel(unittest.TestCase):
"""Label unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testLabel(self):
"""Test Label"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.label.Label() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.markdown_option import MarkdownOption # noqa: E501
from giteapython.rest import ApiException
class TestMarkdownOption(unittest.TestCase):
"""MarkdownOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testMarkdownOption(self):
"""Test MarkdownOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.markdown_option.MarkdownOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.merge_pull_request_option import MergePullRequestOption # noqa: E501
from giteapython.rest import ApiException
class TestMergePullRequestOption(unittest.TestCase):
"""MergePullRequestOption unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testMergePullRequestOption(self):
"""Test MergePullRequestOption"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.merge_pull_request_option.MergePullRequestOption() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.migrate_repo_form import MigrateRepoForm # noqa: E501
from giteapython.rest import ApiException
class TestMigrateRepoForm(unittest.TestCase):
"""MigrateRepoForm unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testMigrateRepoForm(self):
"""Test MigrateRepoForm"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.migrate_repo_form.MigrateRepoForm() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_milestone.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.milestone import Milestone # noqa: E501
from giteapython.rest import ApiException
class TestMilestone(unittest.TestCase):
"""Milestone unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testMilestone(self):
"""Test Milestone"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.milestone.Milestone() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,62 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.api.miscellaneous_api import MiscellaneousApi # noqa: E501
from giteapython.rest import ApiException
class TestMiscellaneousApi(unittest.TestCase):
"""MiscellaneousApi unit test stubs"""
def setUp(self):
self.api = giteapython.api.miscellaneous_api.MiscellaneousApi() # noqa: E501
def tearDown(self):
pass
def test_get_signing_key(self):
"""Test case for get_signing_key
Get default signing-key.gpg # noqa: E501
"""
pass
def test_get_version(self):
"""Test case for get_version
Returns the version of the Gitea application # noqa: E501
"""
pass
def test_render_markdown(self):
"""Test case for render_markdown
Render a markdown document as HTML # noqa: E501
"""
pass
def test_render_markdown_raw(self):
"""Test case for render_markdown_raw
Render raw markdown as HTML # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,83 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.api.notification_api import NotificationApi # noqa: E501
from giteapython.rest import ApiException
class TestNotificationApi(unittest.TestCase):
"""NotificationApi unit test stubs"""
def setUp(self):
self.api = giteapython.api.notification_api.NotificationApi() # noqa: E501
def tearDown(self):
pass
def test_notify_get_list(self):
"""Test case for notify_get_list
List users's notification threads # noqa: E501
"""
pass
def test_notify_get_repo_list(self):
"""Test case for notify_get_repo_list
List users's notification threads on a specific repo # noqa: E501
"""
pass
def test_notify_get_thread(self):
"""Test case for notify_get_thread
Get notification thread by ID # noqa: E501
"""
pass
def test_notify_new_available(self):
"""Test case for notify_new_available
Check if unread notifications exist # noqa: E501
"""
pass
def test_notify_read_list(self):
"""Test case for notify_read_list
Mark notification threads as read, pinned or unread # noqa: E501
"""
pass
def test_notify_read_repo_list(self):
"""Test case for notify_read_repo_list
Mark notification threads as read, pinned or unread on a specific repo # noqa: E501
"""
pass
def test_notify_read_thread(self):
"""Test case for notify_read_thread
Mark notification thread as read by ID # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.notification_count import NotificationCount # noqa: E501
from giteapython.rest import ApiException
class TestNotificationCount(unittest.TestCase):
"""NotificationCount unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testNotificationCount(self):
"""Test NotificationCount"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.notification_count.NotificationCount() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.notification_subject import NotificationSubject # noqa: E501
from giteapython.rest import ApiException
class TestNotificationSubject(unittest.TestCase):
"""NotificationSubject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testNotificationSubject(self):
"""Test NotificationSubject"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.notification_subject.NotificationSubject() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.notification_thread import NotificationThread # noqa: E501
from giteapython.rest import ApiException
class TestNotificationThread(unittest.TestCase):
"""NotificationThread unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testNotificationThread(self):
"""Test NotificationThread"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.notification_thread.NotificationThread() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.o_auth2_application import OAuth2Application # noqa: E501
from giteapython.rest import ApiException
class TestOAuth2Application(unittest.TestCase):
"""OAuth2Application unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOAuth2Application(self):
"""Test OAuth2Application"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.o_auth2_application.OAuth2Application() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_organization.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.organization import Organization # noqa: E501
from giteapython.rest import ApiException
class TestOrganization(unittest.TestCase):
"""Organization unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOrganization(self):
"""Test Organization"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.organization.Organization() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,314 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.api.organization_api import OrganizationApi # noqa: E501
from giteapython.rest import ApiException
class TestOrganizationApi(unittest.TestCase):
"""OrganizationApi unit test stubs"""
def setUp(self):
self.api = giteapython.api.organization_api.OrganizationApi() # noqa: E501
def tearDown(self):
pass
def test_create_org_repo(self):
"""Test case for create_org_repo
Create a repository in an organization # noqa: E501
"""
pass
def test_create_org_repo_deprecated(self):
"""Test case for create_org_repo_deprecated
Create a repository in an organization # noqa: E501
"""
pass
def test_org_add_team_member(self):
"""Test case for org_add_team_member
Add a team member # noqa: E501
"""
pass
def test_org_add_team_repository(self):
"""Test case for org_add_team_repository
Add a repository to a team # noqa: E501
"""
pass
def test_org_conceal_member(self):
"""Test case for org_conceal_member
Conceal a user's membership # noqa: E501
"""
pass
def test_org_create(self):
"""Test case for org_create
Create an organization # noqa: E501
"""
pass
def test_org_create_hook(self):
"""Test case for org_create_hook
Create a hook # noqa: E501
"""
pass
def test_org_create_label(self):
"""Test case for org_create_label
Create a label for an organization # noqa: E501
"""
pass
def test_org_create_team(self):
"""Test case for org_create_team
Create a team # noqa: E501
"""
pass
def test_org_delete(self):
"""Test case for org_delete
Delete an organization # noqa: E501
"""
pass
def test_org_delete_hook(self):
"""Test case for org_delete_hook
Delete a hook # noqa: E501
"""
pass
def test_org_delete_label(self):
"""Test case for org_delete_label
Delete a label # noqa: E501
"""
pass
def test_org_delete_member(self):
"""Test case for org_delete_member
Remove a member from an organization # noqa: E501
"""
pass
def test_org_delete_team(self):
"""Test case for org_delete_team
Delete a team # noqa: E501
"""
pass
def test_org_edit(self):
"""Test case for org_edit
Edit an organization # noqa: E501
"""
pass
def test_org_edit_hook(self):
"""Test case for org_edit_hook
Update a hook # noqa: E501
"""
pass
def test_org_edit_label(self):
"""Test case for org_edit_label
Update a label # noqa: E501
"""
pass
def test_org_edit_team(self):
"""Test case for org_edit_team
Edit a team # noqa: E501
"""
pass
def test_org_get(self):
"""Test case for org_get
Get an organization # noqa: E501
"""
pass
def test_org_get_all(self):
"""Test case for org_get_all
Get list of organizations # noqa: E501
"""
pass
def test_org_get_hook(self):
"""Test case for org_get_hook
Get a hook # noqa: E501
"""
pass
def test_org_get_label(self):
"""Test case for org_get_label
Get a single label # noqa: E501
"""
pass
def test_org_get_team(self):
"""Test case for org_get_team
Get a team # noqa: E501
"""
pass
def test_org_is_member(self):
"""Test case for org_is_member
Check if a user is a member of an organization # noqa: E501
"""
pass
def test_org_is_public_member(self):
"""Test case for org_is_public_member
Check if a user is a public member of an organization # noqa: E501
"""
pass
def test_org_list_current_user_orgs(self):
"""Test case for org_list_current_user_orgs
List the current user's organizations # noqa: E501
"""
pass
def test_org_list_hooks(self):
"""Test case for org_list_hooks
List an organization's webhooks # noqa: E501
"""
pass
def test_org_list_labels(self):
"""Test case for org_list_labels
List an organization's labels # noqa: E501
"""
pass
def test_org_list_members(self):
"""Test case for org_list_members
List an organization's members # noqa: E501
"""
pass
def test_org_list_public_members(self):
"""Test case for org_list_public_members
List an organization's public members # noqa: E501
"""
pass
def test_org_list_repos(self):
"""Test case for org_list_repos
List an organization's repos # noqa: E501
"""
pass
def test_org_list_team_member(self):
"""Test case for org_list_team_member
List a particular member of team # noqa: E501
"""
pass
def test_org_list_team_members(self):
"""Test case for org_list_team_members
List a team's members # noqa: E501
"""
pass
def test_org_list_team_repos(self):
"""Test case for org_list_team_repos
List a team's repos # noqa: E501
"""
pass
def test_org_list_teams(self):
"""Test case for org_list_teams
List an organization's teams # noqa: E501
"""
pass
def test_org_list_user_orgs(self):
"""Test case for org_list_user_orgs
List a user's organizations # noqa: E501
"""
pass
def test_org_publicize_member(self):
"""Test case for org_publicize_member
Publicize a user's membership # noqa: E501
"""
pass
def test_org_remove_team_member(self):
"""Test case for org_remove_team_member
Remove a team member # noqa: E501
"""
pass
def test_org_remove_team_repository(self):
"""Test case for org_remove_team_repository
Remove a repository from a team # noqa: E501
"""
pass
def test_team_search(self):
"""Test case for team_search
Search for teams within an organization # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.payload_commit import PayloadCommit # noqa: E501
from giteapython.rest import ApiException
class TestPayloadCommit(unittest.TestCase):
"""PayloadCommit unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPayloadCommit(self):
"""Test PayloadCommit"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.payload_commit.PayloadCommit() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.payload_commit_verification import PayloadCommitVerification # noqa: E501
from giteapython.rest import ApiException
class TestPayloadCommitVerification(unittest.TestCase):
"""PayloadCommitVerification unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPayloadCommitVerification(self):
"""Test PayloadCommitVerification"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.payload_commit_verification.PayloadCommitVerification() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_payload_user.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.payload_user import PayloadUser # noqa: E501
from giteapython.rest import ApiException
class TestPayloadUser(unittest.TestCase):
"""PayloadUser unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPayloadUser(self):
"""Test PayloadUser"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.payload_user.PayloadUser() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_permission.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.permission import Permission # noqa: E501
from giteapython.rest import ApiException
class TestPermission(unittest.TestCase):
"""Permission unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPermission(self):
"""Test Permission"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.permission.Permission() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.pr_branch_info import PRBranchInfo # noqa: E501
from giteapython.rest import ApiException
class TestPRBranchInfo(unittest.TestCase):
"""PRBranchInfo unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPRBranchInfo(self):
"""Test PRBranchInfo"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.pr_branch_info.PRBranchInfo() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

40
test/test_public_key.py Normal file
View File

@ -0,0 +1,40 @@
# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapython
from giteapython.models.public_key import PublicKey # noqa: E501
from giteapython.rest import ApiException
class TestPublicKey(unittest.TestCase):
"""PublicKey unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPublicKey(self):
"""Test PublicKey"""
# FIXME: construct object with mandatory attributes with example values
# model = giteapython.models.public_key.PublicKey() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

Some files were not shown because too many files have changed in this diff Show More