From 3163096e64ed5fa7a9517970f20a4c789d0fcae4 Mon Sep 17 00:00:00 2001 From: Gianluca Amori Date: Tue, 14 May 2024 09:35:39 +0200 Subject: [PATCH] refactor: formatting --- tests/test_models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_models.py b/tests/test_models.py index 45e37cf..d4c0fce 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -17,7 +17,11 @@ ) path = os.getenv("S3_TEST_PATH", "s3://example-bucket/example/path") test_table = Table(name="PYTEST", schema_="PUBLIC", table_structure=test_table_schema) -test_table_json_blob = Table(name="PYTEST_JSON_BLOB", schema_="PUBLIC", table_structure=TableStructure(columns={"payload": "variant"})) +test_table_json_blob = Table( + name="PYTEST_JSON_BLOB", + schema_="PUBLIC", + table_structure=TableStructure(columns={"payload": "variant"}), +) json_file_format = InlineFileFormat(definition="TYPE = JSON STRIP_OUTER_ARRAY = TRUE") storage_integration = "DATA_STAGING" test_schema = Schema(name="PUBLIC", database="SANDBOX") @@ -129,6 +133,7 @@ def test_copy_full_existing_table() -> None: ) assert result[0][0] == "Copy executed with 0 files processed." + @pytest.mark.snowflake_vcr def test_copy_json_blob() -> None: result = test_table_json_blob.copy_into(