You've already forked gitea_python_api
Init
This commit is contained in:
90
test/test_package_api.py
Normal file
90
test/test_package_api.py
Normal file
@@ -0,0 +1,90 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Gitea API
|
||||
|
||||
This documentation describes the Gitea API. # noqa: E501
|
||||
|
||||
OpenAPI spec version: 1.25.2
|
||||
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import swagger_client
|
||||
from swagger_client.api.package_api import PackageApi # noqa: E501
|
||||
from swagger_client.rest import ApiException
|
||||
|
||||
|
||||
class TestPackageApi(unittest.TestCase):
|
||||
"""PackageApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = swagger_client.api.package_api.PackageApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_delete_package(self):
|
||||
"""Test case for delete_package
|
||||
|
||||
Delete a package # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_latest_package_version(self):
|
||||
"""Test case for get_latest_package_version
|
||||
|
||||
Gets the latest version of a package # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_package(self):
|
||||
"""Test case for get_package
|
||||
|
||||
Gets a package # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_link_package(self):
|
||||
"""Test case for link_package
|
||||
|
||||
Link a package to a repository # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_list_package_files(self):
|
||||
"""Test case for list_package_files
|
||||
|
||||
Gets all files of a package # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_list_package_versions(self):
|
||||
"""Test case for list_package_versions
|
||||
|
||||
Gets all versions of a package # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_list_packages(self):
|
||||
"""Test case for list_packages
|
||||
|
||||
Gets all packages of an owner # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_unlink_package(self):
|
||||
"""Test case for unlink_package
|
||||
|
||||
Unlink a package from a repository # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user