Feat: Adding table comment and columns comment for SQLLab (#10844)

* Adding table comment and columns comment for backend

* fix mypy

* Fix CI

* adding wider catch

* use logger

* fix lint
This commit is contained in:
Yongjie Zhao
2020-09-15 12:11:48 +08:00
committed by GitHub
parent 4502690ef9
commit 38edb69d95
4 changed files with 33 additions and 0 deletions

View File

@@ -500,6 +500,7 @@ class TestDatabaseApi(SupersetTestCase):
self.assertEqual(rv.status_code, 200)
response = json.loads(rv.data.decode("utf-8"))
self.assertEqual(response["name"], "birth_names")
self.assertIsNone(response["comment"])
self.assertTrue(len(response["columns"]) > 5)
self.assertTrue(response.get("selectStar").startswith("SELECT"))