We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2efd34 commit 54b5a61Copy full SHA for 54b5a61
.travis.yml
@@ -0,0 +1,7 @@
1
+language: python
2
+python:
3
+ - "3.6"
4
+# command to install dependencies
5
+install: "pip install PyYAML"
6
+# command to run tests
7
+script: "pytest tests.py"
tests.py
@@ -0,0 +1,16 @@
+import unittest
+
+import yaml
+class TestAPIRegistry(unittest.TestCase):
+ def test_api_list(self):
8
+ with open("./API_LIST.yml") as in_f:
9
+ api_d = yaml.load(in_f)
10
+ self.assertTrue("APIs" in api_d)
11
+ api_li = api_d["APIs"]
12
+ for api in api_li:
13
+ self.assertTrue("metadata" in api)
14
15
+if __name__ == '__main__':
16
+ unittest.main()
0 commit comments