File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ def test_validate_file_reader_passes(tmp_csv_file):
4444 patch ("src.webapp.validation.load_json" ) as mock_load ,
4545 patch ("os.path.exists" , return_value = True ),
4646 ):
47- mock_load .side_effect = (
48- lambda path : MOCK_BASE_SCHEMA if "base" in path else MOCK_EXT_SCHEMA
47+ mock_load .side_effect = lambda path : (
48+ MOCK_BASE_SCHEMA if "base" in path else MOCK_EXT_SCHEMA
4949 )
5050 result = validate_file_reader (tmp_csv_file , ["test_model" ])
5151 assert result ["validation_status" ] == "passed"
@@ -61,8 +61,8 @@ def test_validate_file_reader_fails_missing_required(tmp_path):
6161 patch ("src.webapp.validation.load_json" ) as mock_load ,
6262 patch ("os.path.exists" , return_value = True ),
6363 ):
64- mock_load .side_effect = (
65- lambda path : MOCK_BASE_SCHEMA if "base" in path else MOCK_EXT_SCHEMA
64+ mock_load .side_effect = lambda path : (
65+ MOCK_BASE_SCHEMA if "base" in path else MOCK_EXT_SCHEMA
6666 )
6767 with pytest .raises (HardValidationError ) as exc_info :
6868 validate_file_reader (str (file_path ), ["test_model" ])
You can’t perform that action at this time.
0 commit comments