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:11:17 UTC

[superset] branch ds-404-test updated (7928caa990 -> fa3ad30616)

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


 discard 7928caa990 update test
     new fa3ad30616 update test

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (7928caa990)
            \
             N -- N -- N   refs/heads/ds-404-test (fa3ad30616)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 tests/unit_tests/explore/api_test.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


[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 fa3ad3061643a3cd06a211297a50499c9e77ef6a
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Sep 1 12:59:45 2022 -0700

    update test
---
 tests/unit_tests/explore/api_test.py | 13 +++++++++++++
 1 file changed, 13 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..df98cb1f91
--- /dev/null
+++ b/tests/unit_tests/explore/api_test.py
@@ -0,0 +1,13 @@
+from typing import Any
+
+import pytest
+
+
+def test_explore_datasource_not_found(client: Any, full_api_access: None) -> None:
+    # validating the payload for a dataset that doesn't exist
+    # user should be expecting missing_datasource view
+    response = client.get(
+        "/api/v1/explore/?dataset_id=50000&dataset_type=table",
+    )
+    response.json["result"]["dataset"]["name"] == "[Missing Dataset]"
+    assert response.status_code == 200