This commit is contained in:
ManishMadan2882
2025-10-01 02:23:53 +05:30
parent aab8d3a4f1
commit 7d8ed2d102
11 changed files with 12 additions and 17 deletions

View File

@@ -1,4 +1,3 @@
import pytest
from pathlib import Path
from unittest.mock import patch, mock_open
@@ -40,7 +39,8 @@ def test_json_parser_row_joiner_config():
def test_json_parser_forwards_json_config():
pf = lambda s: 1.23
def pf(s):
return 1.23
parser = JSONParser(json_config={"parse_float": pf})
with patch("builtins.open", mock_open(read_data="[]")):
with patch("json.load", return_value=[]) as mock_load: