Fix tests

This commit is contained in:
Alexey Milovidov 2024-02-27 17:41:30 +01:00
parent 9d75ab2023
commit fc80c796e5
2 changed files with 6 additions and 6 deletions

View File

@ -73,7 +73,7 @@ def test_create():
)
assert (
instance.query("SHOW CREATE SETTINGS PROFILE s2")
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT s1 TO u2\n"
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT `s1` TO u2\n"
)
check()
@ -112,7 +112,7 @@ def test_alter():
assert instance.query("SHOW GRANTS FOR u2") == "GRANT rx, ry TO u2\n"
assert (
instance.query("SHOW CREATE ROLE rx")
== "CREATE ROLE rx SETTINGS PROFILE s2\n"
== "CREATE ROLE rx SETTINGS PROFILE `s2`\n"
)
assert instance.query("SHOW CREATE ROLE ry") == "CREATE ROLE ry\n"
assert (
@ -128,7 +128,7 @@ def test_alter():
)
assert (
instance.query("SHOW CREATE SETTINGS PROFILE s2")
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT s1 TO u2\n"
== "CREATE SETTINGS PROFILE `s2` SETTINGS INHERIT `s1` TO u2\n"
)
check()

View File

@ -308,7 +308,7 @@ def test_inheritance():
)
assert (
instance.query("SHOW CREATE SETTINGS PROFILE alpha")
== "CREATE SETTINGS PROFILE `alpha` SETTINGS INHERIT xyz TO robin\n"
== "CREATE SETTINGS PROFILE `alpha` SETTINGS INHERIT `xyz` TO robin\n"
)
assert (
instance.query(
@ -456,8 +456,8 @@ def test_show_profiles():
assert instance.query("SHOW CREATE PROFILE xyz") == "CREATE SETTINGS PROFILE `xyz`\n"
query_possible_response = [
"CREATE SETTINGS PROFILE default\n",
"CREATE SETTINGS PROFILE default SETTINGS allow_experimental_analyzer = true\n",
"CREATE SETTINGS PROFILE `default`\n",
"CREATE SETTINGS PROFILE `default` SETTINGS allow_experimental_analyzer = true\n",
]
assert (
instance.query("SHOW CREATE SETTINGS PROFILE default")