Skip to content

Commit

Permalink
test: allow dumping protocol packets via -vvv
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
romanz committed Jan 30, 2025
1 parent a75a9f2 commit 429a373
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,10 @@ def pytest_configure(config: "Config") -> None:
for line in f:
config.addinivalue_line("markers", line.strip())

# enable debug
if config.getoption("verbose"):
log.enable_debug_output()
# enable debug if `-v` flag is passed (use multiple times for more debug)
verbosity = config.getoption("verbose")
if verbosity:
log.enable_debug_output(verbosity)

idval_orig = IdMaker._idval_from_value

Expand Down

0 comments on commit 429a373

Please sign in to comment.