From 027f42e9b819df3816cb0e6b314f88361570ffed Mon Sep 17 00:00:00 2001 From: Skynet Date: Tue, 26 Sep 2023 16:47:10 +0200 Subject: [PATCH] Feat: test base64 decoding also for url-representation --- .../snowflake/test_snowflake_configuration.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/load/snowflake/test_snowflake_configuration.py b/tests/load/snowflake/test_snowflake_configuration.py index c053d34d5b..f40d0a0c16 100644 --- a/tests/load/snowflake/test_snowflake_configuration.py +++ b/tests/load/snowflake/test_snowflake_configuration.py @@ -20,14 +20,18 @@ def test_connection_string_with_all_params() -> None: creds = SnowflakeCredentials() creds.parse_native_representation(url) - assert creds.database == "db1" - assert creds.username == "user1" - assert creds.password == "pass1" - assert creds.host == "host1" - assert creds.warehouse == "warehouse1" - assert creds.role == "role1" - assert creds.private_key == "pk" - assert creds.private_key_passphrase == "paphr" + params = creds.to_connector_params() + + assert params == dict( + database = "db1", + username = "user1", + password = "pass1", + host = "host1", + warehouse = "warehouse1", + role = "role1", + private_key = "pk", + private_key_passphrase = "paphr" + ) expected = make_url(url)