test: fix entry test
test / test (push) Successful in 1m1s

This commit is contained in:
2026-10-18 15:50:33 +03:00
parent dc566087fb
commit e54d8dd23f
5 changed files with 32 additions and 22 deletions
+4 -1
View File
@@ -53,6 +53,7 @@ class Task(NamedTuple):
class Entry:
DEFAULT_EXECUTOR: type[CommandExecutor] = CommandExecutor
_logger = logger
def __init__(
@@ -61,11 +62,13 @@ class Entry:
variables: Variables,
basepath: Path,
rootpath: Path,
executor: type[CommandExecutor] | None = None,
):
self._tasks = tasks
self._variables = variables
self._basepath = basepath
self._roopath = rootpath
self._executor = executor or self.DEFAULT_EXECUTOR
@property
def sensentive_data(self):
@@ -103,7 +106,7 @@ class Entry:
if key == task.key:
self._logger.info("🔵 %s %s", task.key, self)
for command in task.commands:
CommandExecutor(command).run(
self._executor(command).run(
(task.cwd and Path(task.cwd)) or self._basepath
)
c += 1
+1 -1
View File
@@ -5,7 +5,7 @@ variables.python_poetry = "{{ 'pyproject.toml' | read | get('build-system.build-
# setup
[presets.python.tasks.setup.poetry]
conditions = ["{{ python_poetry }}"]
variables.python_version = "{{ 'pyproject.toml' | read | get('project.requires-python') | search('(\\d+.\\d+)') }}"
variables.python_version = "{{ 'pyproject.toml' | read | get('project.requires-python') | search('(\\\\d+.\\\\d+)') }}"
commands = ["poetry env use {{ python_version }}", "poetry install --all-extras"]
# playwright