Link `tractor` debug mode to `pytest` --pdb flag
parent
7de914d54c
commit
3b7579990b
|
@ -87,8 +87,11 @@ def log(
|
||||||
@acm
|
@acm
|
||||||
async def _open_test_pikerd(
|
async def _open_test_pikerd(
|
||||||
tmpconfdir: str,
|
tmpconfdir: str,
|
||||||
|
|
||||||
reg_addr: tuple[str, int] | None = None,
|
reg_addr: tuple[str, int] | None = None,
|
||||||
loglevel: str = 'warning',
|
loglevel: str = 'warning',
|
||||||
|
debug_mode: bool = False,
|
||||||
|
|
||||||
**kwargs,
|
**kwargs,
|
||||||
|
|
||||||
) -> tuple[
|
) -> tuple[
|
||||||
|
@ -122,7 +125,7 @@ async def _open_test_pikerd(
|
||||||
# or just in sequence per test, so we keep root.
|
# or just in sequence per test, so we keep root.
|
||||||
drop_root_perms_for_ahab=False,
|
drop_root_perms_for_ahab=False,
|
||||||
|
|
||||||
debug_mode=True,
|
debug_mode=debug_mode,
|
||||||
|
|
||||||
**kwargs,
|
**kwargs,
|
||||||
|
|
||||||
|
@ -178,6 +181,8 @@ def open_test_pikerd(
|
||||||
# bind in level from fixture, which is itself set by
|
# bind in level from fixture, which is itself set by
|
||||||
# `--ll <value>` cli flag.
|
# `--ll <value>` cli flag.
|
||||||
loglevel=loglevel,
|
loglevel=loglevel,
|
||||||
|
|
||||||
|
debug_mode=request.config.option.usepdb
|
||||||
)
|
)
|
||||||
|
|
||||||
# NOTE: the `tmp_dir` fixture will wipe any files older then 3 test
|
# NOTE: the `tmp_dir` fixture will wipe any files older then 3 test
|
||||||
|
|
Loading…
Reference in New Issue