Skip to content

Commit efae9df

Browse files
Update test_pipeline_readers.py
fixed unit tests for changing keys in delta pipeline reader
1 parent edc17a8 commit efae9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pipeline_readers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_read_delta_positive(self):
212212
full_path = os.path.abspath("tests/resources/delta/customers")
213213
self.spark.sql(f"CREATE TABLE if not exists source_bronze.customer USING DELTA LOCATION '{full_path}' ")
214214

215-
source_details_map = {"sourceDetails": {"database": "source_bronze", "table": "customer"}}
215+
source_details_map = {"sourceDetails": {"source_database": "source_bronze", "table": "customer"}}
216216

217217
bronze_map.update(source_details_map)
218218
bronze_dataflow_spec = BronzeDataflowSpec(**bronze_map)
@@ -227,7 +227,7 @@ def test_read_delta_with_read_config_positive(self):
227227
self.spark.sql("CREATE DATABASE IF NOT EXISTS source_bronze")
228228
full_path = os.path.abspath("tests/resources/delta/customers")
229229
self.spark.sql(f"CREATE TABLE if not exists source_bronze.customer USING DELTA LOCATION '{full_path}' ")
230-
source_details_map = {"sourceDetails": {"database": "source_bronze", "table": "customer"}}
230+
source_details_map = {"sourceDetails": {"source_database": "source_bronze", "table": "customer"}}
231231
bronze_map.update(source_details_map)
232232
reader_config = {"readerConfigOptions": {"maxFilesPerTrigger": "1"}}
233233
bronze_map.update(reader_config)

0 commit comments

Comments
 (0)