mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
fix(dev/ci): pre-commit fixes galore (#32352)
This commit is contained in:
@@ -187,13 +187,10 @@ def test_query_datasources_by_permissions_with_catalog_schema(
|
||||
["[my_db].[db1].[schema1]", "[my_other_db].[schema]"], # type: ignore
|
||||
)
|
||||
clause = db.session.query().filter_by().filter.mock_calls[0].args[0]
|
||||
assert (
|
||||
str(clause.compile(engine, compile_kwargs={"literal_binds": True}))
|
||||
== (
|
||||
"tables.perm IN ('[my_db].[table1](id:1)') OR "
|
||||
"tables.schema_perm IN ('[my_db].[db1].[schema1]', '[my_other_db].[schema]') OR " # noqa: E501
|
||||
"tables.catalog_perm IN ('[my_db].[db1]')"
|
||||
)
|
||||
assert str(clause.compile(engine, compile_kwargs={"literal_binds": True})) == (
|
||||
"tables.perm IN ('[my_db].[table1](id:1)') OR "
|
||||
"tables.schema_perm IN ('[my_db].[db1].[schema1]', '[my_other_db].[schema]') OR " # noqa: E501
|
||||
"tables.catalog_perm IN ('[my_db].[db1]')"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user