From 56d5e8a1cb62f668f23e12f60d10f60ff82a7378 Mon Sep 17 00:00:00 2001 From: Kasia Kucharczyk <2536609+kkucharc@users.noreply.github.com> Date: Fri, 9 Oct 2020 18:01:26 +0200 Subject: [PATCH] Changed cache uid to be depending on table in test_csv_response_format (#11214) --- tests/query_context_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/query_context_tests.py b/tests/query_context_tests.py index 68ef28830f..5bad2d1efd 100644 --- a/tests/query_context_tests.py +++ b/tests/query_context_tests.py @@ -181,7 +181,7 @@ class TestQueryContext(SupersetTestCase): self.assertEqual(len(data.split("\n")), 12) ck = db.session.query(CacheKey).order_by(CacheKey.id.desc()).first() - assert ck.datasource_uid == "3__table" + assert ck.datasource_uid == f"{table.id}__table" def test_sql_injection_via_groupby(self): """