use command_arguments.append("-s") if debug

This commit is contained in:
Daniel 2023-12-09 12:04:30 +01:00
parent ee05c07feb
commit 9080840c3c

View file

@ -1,3 +1,4 @@
import os
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING, Callable, NamedTuple from typing import TYPE_CHECKING, Callable, NamedTuple
@ -133,7 +134,7 @@ class Runner:
# command_arguments.append("--traceconfig") # command_arguments.append("--traceconfig")
command_arguments.append("-v") # command_arguments.append("-v")
# command_arguments.append("-rx") # command_arguments.append("-rx")
command_arguments.append(str(full_test_path)) command_arguments.append(str(full_test_path))
@ -163,7 +164,8 @@ class Runner:
# command_arguments.append("on") # command_arguments.append("on")
# Disable capturing. With -s set, prints will go to console as if pytest is not there. # Disable capturing. With -s set, prints will go to console as if pytest is not there.
# command_arguments.append("-s") if os.environ["PWDEBUG"] == "1":
command_arguments.append("-s")
# headed # headed
# command_arguments.append("--headed") # command_arguments.append("--headed")