11 lines
368 B
Python
11 lines
368 B
Python
import pytest
|
|
|
|
from pyinfra.server.dispatcher.dispatchers.rest import RestDispatcher
|
|
|
|
|
|
@pytest.mark.parametrize("batched", [True, False])
|
|
@pytest.mark.parametrize("item_type", ["string", "image", "pdf"])
|
|
def test_rest_sender(url, packages, server_process):
|
|
sender = RestDispatcher(f"{url}/process")
|
|
assert all((r.status_code == 200 for r in sender(packages)))
|