Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__pycache__/
*.pyc
.coverage
.coverage*
virtualenv
MANIFEST
build/
Expand Down
35 changes: 19 additions & 16 deletions tests/test_backoff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import itertools
import logging
import random
import re
Expand Down Expand Up @@ -902,22 +901,26 @@ def func():
return func


@pytest.mark.parametrize("func_factory", [_on_predicate_factory, _on_exception_factory])
@pytest.mark.parametrize(
("func_factory", "backoff_log_level", "giveup_log_level"),
(
(factory, backoff_log_level, giveup_log_level)
for backoff_log_level, giveup_log_level in itertools.product(
(
logging.DEBUG,
logging.INFO,
logging.WARNING,
logging.ERROR,
logging.CRITICAL,
),
repeat=2,
)
for factory in (_on_predicate_factory, _on_exception_factory)
),
"backoff_log_level",
[
logging.DEBUG,
logging.INFO,
logging.WARNING,
logging.ERROR,
logging.CRITICAL,
],
)
@pytest.mark.parametrize(
"giveup_log_level",
[
logging.DEBUG,
logging.INFO,
logging.WARNING,
logging.ERROR,
logging.CRITICAL,
],
)
def test_event_log_levels(
caplog,
Expand Down
Loading