def actual_read(file_path, **kwargs): with patch("eddington.fitting_data.open", m_open): return FittingData.read_from_json(file_path, **kwargs)
def read_method(**kwargs): return FittingData.read_from_json(file_path, **kwargs)