@@ -141,7 +141,7 @@ def test_marketing_file_is_ingested(self, caplog, test_marketing_file_path):
141
141
"""
142
142
initial_eyb_lead_count = EYBLead .objects .count ()
143
143
initial_ingested_count = IngestedFile .objects .count ()
144
- file_contents = file_contents_faker (default_faker = 'marketing' )
144
+ file_contents = file_contents_faker (default_faker = 'marketing' , nested = False )
145
145
setup_s3_bucket (BUCKET , [test_marketing_file_path ], [file_contents ])
146
146
with caplog .at_level (logging .INFO ):
147
147
ingest_eyb_marketing_data (BUCKET , test_marketing_file_path )
@@ -164,7 +164,7 @@ def test_marketing_data_ingestion_does_not_update_existing(self, test_marketing_
164
164
'content' : updated_value ,
165
165
}),
166
166
]
167
- file_contents = file_contents_faker (records )
167
+ file_contents = file_contents_faker (records , nested = False )
168
168
setup_s3_bucket (BUCKET , [test_marketing_file_path ], [file_contents ])
169
169
ingest_eyb_marketing_data (BUCKET , test_marketing_file_path )
170
170
assert EYBLead .objects .count () == 1
@@ -182,7 +182,7 @@ def test_marketing_data_ingestion_does_not_fail_with_empty_records(
182
182
EYBLeadFactory (marketing_hashed_uuid = hashed_uuid , utm_content = initial_value )
183
183
assert EYBLead .objects .count () == 1
184
184
records = []
185
- file_contents = file_contents_faker (records )
185
+ file_contents = file_contents_faker (records , nested = False )
186
186
setup_s3_bucket (BUCKET , [test_marketing_file_path ], [file_contents ])
187
187
ingest_eyb_marketing_data (BUCKET , test_marketing_file_path )
188
188
assert EYBLead .objects .count () == 1
@@ -223,7 +223,7 @@ def test_incoming_marketing_records_trigger_correct_logging(self, caplog):
223
223
]
224
224
225
225
file_path = f'{ MARKETING_PREFIX } 1.jsonl.gz'
226
- file_contents = file_contents_faker (records )
226
+ file_contents = file_contents_faker (records , nested = False )
227
227
setup_s3_bucket (BUCKET , [file_path ], [file_contents ])
228
228
with caplog .at_level (logging .INFO ):
229
229
ingest_eyb_marketing_data (BUCKET , file_path )
0 commit comments