mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Changed cache uid to be depending on table in test_csv_response_format (#11214)
This commit is contained in:
parent
d93b1afe79
commit
56d5e8a1cb
@ -181,7 +181,7 @@ class TestQueryContext(SupersetTestCase):
|
|||||||
self.assertEqual(len(data.split("\n")), 12)
|
self.assertEqual(len(data.split("\n")), 12)
|
||||||
|
|
||||||
ck = db.session.query(CacheKey).order_by(CacheKey.id.desc()).first()
|
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):
|
def test_sql_injection_via_groupby(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user