def test_read_manifest_entries_streamed(mock_streamed_rfm, mock_rfm, monkeypatch): monkeypatch.setattr(MinidClient, '_is_stream', Mock(return_value=True)) read_rfm = list(MinidClient.read_manifest_entries('rfm.json')) assert len(read_rfm) == len(mock_rfm) assert read_rfm == mock_rfm
def test_read_manifest_entries(mock_rfm, mock_rfm_filename): read_rfm = list(MinidClient.read_manifest_entries(mock_rfm_filename)) assert read_rfm == mock_rfm