aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/sra_client/test
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-12-12 08:57:53 +0800
committerGitHub <noreply@github.com>2018-12-12 08:57:53 +0800
commit318e7d5b575419aecacdea97d822606c75e6853b (patch)
tree28ee57e62e445e43d44885db115b993b4d798ed1 /python-packages/sra_client/test
parenta939433bd25e26f3ba285f543999ee3a63e018a5 (diff)
downloaddexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar.gz
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar.bz2
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar.lz
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar.xz
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.tar.zst
dexon-sol-tools-318e7d5b575419aecacdea97d822606c75e6853b.zip
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
Diffstat (limited to 'python-packages/sra_client/test')
-rw-r--r--python-packages/sra_client/test/__init__.py0
-rw-r--r--python-packages/sra_client/test/test_default_api.py35
2 files changed, 35 insertions, 0 deletions
diff --git a/python-packages/sra_client/test/__init__.py b/python-packages/sra_client/test/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/python-packages/sra_client/test/__init__.py
diff --git a/python-packages/sra_client/test/test_default_api.py b/python-packages/sra_client/test/test_default_api.py
new file mode 100644
index 000000000..d23c6173f
--- /dev/null
+++ b/python-packages/sra_client/test/test_default_api.py
@@ -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()