Update test.py

This commit is contained in:
Kseniia Sumarokova 2022-06-01 14:44:46 +02:00 committed by GitHub
parent 69cd3a2b10
commit 503d94f73b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -931,8 +931,10 @@ def test_predefined_connection_configuration(started_cluster):
)
result = clickhouse_node.query("show create table test_database.test_table")
print(result)
assert(result.strip() == "CREATE TABLE test_database.test_table\\n(\\n `id` Int32\\n)\\nENGINE = MySQL(mysql1, table = \\'test_table\\')")
assert (
result.strip()
== "CREATE TABLE test_database.test_table\\n(\\n `id` Int32\\n)\\nENGINE = MySQL(mysql1, table = \\'test_table\\')"
)
clickhouse_node.query("DROP DATABASE test_database")
clickhouse_node.query_and_get_error(