You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/09/01 20:00:01 UTC

[superset] branch ds-404-test created (now 7928caa990)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch ds-404-test
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 7928caa990 update test

This branch includes the following new commits:

     new 7928caa990 update test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: update test

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch ds-404-test
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7928caa990bd335b2afa493e38d33f9234616039
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Sep 1 12:59:45 2022 -0700

    update test
---
 tests/unit_tests/explore/api_test.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/unit_tests/explore/api_test.py b/tests/unit_tests/explore/api_test.py
new file mode 100644
index 0000000000..315e827a7d
--- /dev/null
+++ b/tests/unit_tests/explore/api_test.py
@@ -0,0 +1,11 @@
+from typing import Any
+
+import pytest
+
+
+def test_explore_datasource_not_found(client: Any, full_api_access: None):
+    response = client.get(
+        "/api/v1/explore/?dataset_id=50000&dataset_type=table",
+    )
+    response.json["result"]["dataset"]["name"] == "[Missing Dataset]"
+    assert response.status_code == 200