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:02 UTC

[superset] 01/01: update test

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