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

diegopucci pushed a commit to branch geido/feat/rls-digest
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/geido/feat/rls-digest by this 
push:
     new 6d09e69434 chore(Tests): Add test cases back
6d09e69434 is described below

commit 6d09e69434997f63fd8f3f6c1dc6cc105f344cc8
Author: Diego Pucci <[email protected]>
AuthorDate: Thu Sep 19 17:47:39 2024 +0200

    chore(Tests): Add test cases back
---
 tests/unit_tests/thumbnails/test_digest.py | 60 ++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/tests/unit_tests/thumbnails/test_digest.py 
b/tests/unit_tests/thumbnails/test_digest.py
index 3e9602e4e0..184e4ddd56 100644
--- a/tests/unit_tests/thumbnails/test_digest.py
+++ b/tests/unit_tests/thumbnails/test_digest.py
@@ -95,6 +95,66 @@ def prepare_datasource_mock(
             [],
             "209dc060ac19271b8708731e3b8280f5",
         ),
+        (
+            {
+                "dashboard_title": "My Other Title",
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "209dc060ac19271b8708731e3b8280f5",
+        ),
+        (
+            {
+                "id": 2,
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "06a4144466dbd5ffad0c3c2225e96296",
+        ),
+        (
+            {
+                "slices": [{"id": 2, "slice_name": "My Other Chart"}],
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "a823ece9563895ccb14f3d9095e84f7a",
+        ),
+        (
+            {
+                "position_json": {"b": "c"},
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "33c5475f92a904925ab3ef493526e5b5",
+        ),
+        (
+            {
+                "css": "background-color: darkblue;",
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "cec57345e6402c0d4b3caee5cfaa0a03",
+        ),
+        (
+            {
+                "json_metadata": {"d": "e"},
+            },
+            [ExecutorType.CURRENT_USER],
+            True,
+            False,
+            [],
+            "5380dcbe94621a0759b09554404f3d02",
+        ),
         (
             None,
             [ExecutorType.CURRENT_USER],

Reply via email to