narrowed down the pytest bug: n_items interacts with s3_backend: when n_items has more than one entry, s3_backend must not be the last decorator

This commit is contained in:
Matthias Bisping 2022-06-13 10:36:26 +02:00
parent 051cea3ded
commit 8a64e5d868

View File

@ -19,13 +19,6 @@ from pyinfra.visitor import get_object_descriptor, QueueVisitor
from test.utils.input import pair_data_with_queue_message
@pytest.mark.parametrize(
"s3_backend",
[
"minio",
"aws",
],
)
@pytest.mark.parametrize(
"batched",
[
@ -47,6 +40,15 @@ from test.utils.input import pair_data_with_queue_message
True,
],
)
# NOTE: There is a bug in pytest, which leads this test to fail, when n_items has more than one entry and s3_backend is
# the last decorator. Yes, really.
@pytest.mark.parametrize(
"s3_backend",
[
"minio",
"aws",
],
)
@pytest.mark.parametrize(
"n_items",
[
@ -84,7 +86,7 @@ from test.utils.input import pair_data_with_queue_message
@pytest.mark.parametrize(
"components_type",
[
"test",
# "test",
"real",
],
)