This commit is contained in:
Matthias Bisping 2022-05-06 23:19:25 +02:00
parent 54359501f9
commit f428372511

View File

@ -6,6 +6,6 @@ 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(endpoint, packages, server_process):
sender = RestDispatcher(endpoint)
responses = sender(packages)
dispatcher = RestDispatcher(endpoint)
responses = dispatcher(packages)
assert all((r.status_code == 200 for r in responses))