feat(sra_client.py)
* Code generation scripts * Generated code * Change test config to hit 0x-launch-kit * Ran prettier on generated code * First test case, of get_asset_pairs() * Use launch kit docker image to faciliate CI tests * Fix markdown rendering for GitHub and PyPI * Add URL for PyPI to link back to GitHub * Add one-line package description to README.md * Remove git_push.sh * Remove unimplemented tests * Add sra_client to top-level README package list * Remove repeated-everywhere long description * Add shorcuts for publishing * Remove TypeScript examples
This commit is contained in:
0
python-packages/sra_client/test/__init__.py
Normal file
0
python-packages/sra_client/test/__init__.py
Normal file
35
python-packages/sra_client/test/test_default_api.py
Normal file
35
python-packages/sra_client/test/test_default_api.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# coding: utf-8
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import sra_client
|
||||
from sra_client.api.default_api import DefaultApi # noqa: E501
|
||||
from sra_client.models.relayer_api_asset_data_pairs_response_schema import (
|
||||
RelayerApiAssetDataPairsResponseSchema
|
||||
)
|
||||
from sra_client.rest import ApiException
|
||||
|
||||
|
||||
class TestDefaultApi(unittest.TestCase):
|
||||
"""DefaultApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = sra_client.api.default_api.DefaultApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_get_asset_pairs(self):
|
||||
"""Test case for get_asset_pairs
|
||||
|
||||
"""
|
||||
expected = RelayerApiAssetDataPairsResponseSchema([])
|
||||
actual = self.api.get_asset_pairs()
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user