mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
Use test name for the custom macros testing: (#10695)
: Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
co-authored by
bogdan kyryliuk
parent
7abdf53944
commit
6ed36552e6
@@ -95,11 +95,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
query_obj = dict(**base_query_obj, extras={})
|
||||
extra_cache_keys = table.get_extra_cache_keys(query_obj)
|
||||
self.assertTrue(table.has_extra_cache_key_calls(query_obj))
|
||||
# TODO(bkyryliuk): make it work with presto
|
||||
if get_example_database().backend == "presto":
|
||||
assert extra_cache_keys == []
|
||||
else:
|
||||
assert extra_cache_keys == ["abc"]
|
||||
assert extra_cache_keys == ["abc"]
|
||||
|
||||
# Table with Jinja callable disabled.
|
||||
table = SqlaTable(
|
||||
@@ -131,11 +127,7 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
)
|
||||
extra_cache_keys = table.get_extra_cache_keys(query_obj)
|
||||
self.assertTrue(table.has_extra_cache_key_calls(query_obj))
|
||||
# TODO(bkyryliuk): make it work with presto and hive
|
||||
if get_example_database().backend == "presto":
|
||||
assert extra_cache_keys == []
|
||||
else:
|
||||
assert extra_cache_keys == ["abc"]
|
||||
assert extra_cache_keys == ["abc"]
|
||||
|
||||
def test_where_operators(self):
|
||||
class FilterTestCase(NamedTuple):
|
||||
|
||||
Reference in New Issue
Block a user