pyinfra/test/exploration_tests/partial_response_test.py
2022-05-03 09:56:12 +02:00

11 lines
402 B
Python

import pytest
from pyinfra.rest import post_partial
@pytest.mark.parametrize("batched", [True, False])
@pytest.mark.parametrize("item_type", ["pdf", "string", "image"])
def test_sending_partial_request(url, input_data_items, metadata, operation, target_data_items, server_process):
output = list(post_partial(f"{url}/process", input_data_items, metadata))
assert output == target_data_items