@@ -249,19 +249,21 @@ def test_verify_data_transform_config_missing(self, mock_exists):
249
249
"""Test verifying data transform config file when it doesn't exist."""
250
250
mock_exists .return_value = False
251
251
with pytest .raises (
252
- FileNotFoundError , match = "config.json not found in /test/dir/payload"
252
+ FileNotFoundError ,
253
+ match = "config.json not found at /test/dir/payload/config.json" ,
253
254
):
254
- verify_data_transform_config ("/test/dir" )
255
+ verify_data_transform_config ("/test/dir/payload " )
255
256
256
257
@patch ("datacustomcode.deploy.os.path.exists" )
257
258
@patch ("builtins.open" , new_callable = mock_open , read_data = '{"invalid": "json"' )
258
259
def test_verify_data_transform_config_invalid_json (self , mock_file , mock_exists ):
259
260
"""Test verifying data transform config with invalid JSON."""
260
261
mock_exists .return_value = True
261
262
with pytest .raises (
262
- ValueError , match = "config.json in /test/dir/payload is not valid JSON"
263
+ ValueError ,
264
+ match = "config.json at /test/dir/payload/config.json is not valid JSON" ,
263
265
):
264
- verify_data_transform_config ("/test/dir" )
266
+ verify_data_transform_config ("/test/dir/payload " )
265
267
266
268
@patch ("datacustomcode.deploy.os.path.exists" )
267
269
@patch ("builtins.open" , new_callable = mock_open , read_data = '{"sdkVersion": "1.0.0"}' )
@@ -270,10 +272,10 @@ def test_verify_data_transform_config_missing_fields(self, mock_file, mock_exist
270
272
mock_exists .return_value = True
271
273
with pytest .raises (
272
274
ValueError ,
273
- match = "config.json in /test/dir/payload is missing required fields: "
274
- "entryPoint, dataspace, permissions" ,
275
+ match = "config.json at /test/dir/payload/config.json is missing "
276
+ "required fields: entryPoint, dataspace, permissions" ,
275
277
):
276
- verify_data_transform_config ("/test/dir" )
278
+ verify_data_transform_config ("/test/dir/payload " )
277
279
278
280
279
281
class TestCreateDataTransform :
0 commit comments