processing log added to test
This commit is contained in:
parent
21e519a6cd
commit
17e11adf78
@ -9,6 +9,9 @@ from pyinfra.exceptions import ProcessingFailure
|
||||
from pyinfra.queue.consumer import Consumer
|
||||
from pyinfra.visitor import get_object_descriptor, ForwardingStrategy
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def consumer(queue_manager, callback):
|
||||
@ -87,8 +90,9 @@ class TestConsumer:
|
||||
|
||||
requests = consumer.consume(inactivity_timeout=5)
|
||||
|
||||
for _, r in zip(items, requests):
|
||||
queue_manager.publish_response(r, visitor)
|
||||
for itm, req in zip(items, requests):
|
||||
logger.debug(f"Processing item {itm}")
|
||||
queue_manager.publish_response(req, visitor)
|
||||
|
||||
assert list(map(itemgetter("data"), queue_manager.output_queue.to_list())) == ["00", "11", "22"]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user