mirror of
https://github.com/apache/superset.git
synced 2026-07-18 20:55:47 +00:00
chore(mcp): restore out-of-scope files to master state
Earlier style commits reformatted 24 unrelated files with a newer local ruff than the pinned 0.9.7, removed the PT004 ignore from pyproject.toml, and the initial branch commit accidentally deleted tests/unit_tests/utils/test_split.py. None of these belong to the chart plugin registry change; restore them to master to keep the PR scoped.
This commit is contained in:
@@ -260,9 +260,8 @@ class TestSecurityGuestTokenApiTokenValidator(SupersetTestCase):
|
||||
|
||||
@with_config(
|
||||
{
|
||||
"GUEST_TOKEN_VALIDATOR_HOOK": lambda x: (
|
||||
len(x["rls"]) == 1 and "tenant_id=" in x["rls"][0]["clause"]
|
||||
)
|
||||
"GUEST_TOKEN_VALIDATOR_HOOK": lambda x: len(x["rls"]) == 1
|
||||
and "tenant_id=" in x["rls"][0]["clause"]
|
||||
}
|
||||
)
|
||||
def test_guest_validator_hook_real_world_example_positive(self):
|
||||
@@ -277,9 +276,8 @@ class TestSecurityGuestTokenApiTokenValidator(SupersetTestCase):
|
||||
|
||||
@with_config(
|
||||
{
|
||||
"GUEST_TOKEN_VALIDATOR_HOOK": lambda x: (
|
||||
len(x["rls"]) == 1 and "tenant_id=" in x["rls"][0]["clause"]
|
||||
)
|
||||
"GUEST_TOKEN_VALIDATOR_HOOK": lambda x: len(x["rls"]) == 1
|
||||
and "tenant_id=" in x["rls"][0]["clause"]
|
||||
}
|
||||
)
|
||||
def test_guest_validator_hook_real_world_example_negative(self):
|
||||
|
||||
Reference in New Issue
Block a user