Use test name for the custom macros testing: (#10695)

:

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
Bogdan
2020-08-27 13:12:24 -07:00
committed by GitHub
co-authored by bogdan kyryliuk
parent 7abdf53944
commit 6ed36552e6
4 changed files with 16 additions and 32 deletions
+2 -10
View File
@@ -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):