76 lines
1.5 KiB
Python
76 lines
1.5 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
eLabFTW REST API v2 Documentation
|
|
|
|
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
|
|
OpenAPI spec version: 2.0.0
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
"""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import unittest
|
|
|
|
import elabapi_python
|
|
from elabapi_python.api.items_api import ItemsApi # noqa: E501
|
|
from elabapi_python.rest import ApiException
|
|
|
|
|
|
class TestItemsApi(unittest.TestCase):
|
|
"""ItemsApi unit test stubs"""
|
|
|
|
def setUp(self):
|
|
self.api = ItemsApi() # noqa: E501
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def test_delete_item(self):
|
|
"""Test case for delete_item
|
|
|
|
Delete an item. # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_get_item(self):
|
|
"""Test case for get_item
|
|
|
|
Read an item # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_patch_item(self):
|
|
"""Test case for patch_item
|
|
|
|
Modify an item # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_post_item(self):
|
|
"""Test case for post_item
|
|
|
|
Create an item # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_post_item_by_id(self):
|
|
"""Test case for post_item_by_id
|
|
|
|
Duplicate an item with its ID # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
def test_read_items(self):
|
|
"""Test case for read_items
|
|
|
|
Read all items that are accessible # noqa: E501
|
|
"""
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|