diegomedina248 commented on code in PR #22501:
URL: https://github.com/apache/superset/pull/22501#discussion_r1060868235


##########
tests/integration_tests/databases/api_tests.py:
##########
@@ -1381,6 +1381,56 @@ def test_database_schemas_invalid_query(self):
         )
         self.assertEqual(rv.status_code, 400)
 
+    def test_database_tables(self):
+        """
+        Database API: Test database tables
+        """
+        self.login(username="admin")
+        database = 
db.session.query(Database).filter_by(database_name="examples").one()
+
+        schema_name = self.default_schema_backend_map[database.backend]
+        rv = self.client.get(
+            
f"api/v1/database/{database.id}/tables/?q={prison.dumps({'schema_name': 
schema_name})}"
+        )
+
+        self.assertEqual(rv.status_code, 200)

Review Comment:
   Yeah, the problem with the payload here is that it varies from engine to 
engine.
   should we mock the response at this level, or what do you recommend here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to