feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG (#11509)

* feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG

The corresponding cache will now also cache the query results.

* Slice use DATA_CACHE_CONFIG CACHE_DEFAULT_TIMEOUT

* Add test for default cache timeout

* rename FAR_FUTURE to ONE_YEAR_IN_SECS
This commit is contained in:
Jesse Yang
2020-11-13 22:35:10 -08:00
committed by GitHub
parent 68693c7c0a
commit 4cfcaebb61
22 changed files with 438 additions and 379 deletions

View File

@@ -87,7 +87,7 @@ class TestDatabaseApi(SupersetTestCase):
"function_names",
"id",
]
self.assertEqual(response["count"], 2)
self.assertGreater(response["count"], 0)
self.assertEqual(list(response["result"][0].keys()), expected_columns)
def test_get_items_filter(self):