Skip to content

Commit daafee5

Browse files
authored
tests: remove dependence on root folder name (#620)
1 parent 67715e6 commit daafee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_format_task_id(
153153
PathNode.from_path(_ROOT.joinpath("src/module.py")),
154154
[_ROOT.joinpath("alternative_src")],
155155
does_not_raise(),
156-
Text("pytask/src/module.py"),
156+
Text(f"{_ROOT.name}/src/module.py"),
157157
id="Common path found for PathNode not in 'paths' and 'paths'",
158158
),
159159
pytest.param(
@@ -174,7 +174,7 @@ def test_format_task_id(
174174
PythonNode(name=_ROOT.as_posix() + "/task_a.py::task_a::a", value=None),
175175
[_ROOT],
176176
does_not_raise(),
177-
Text("pytask/task_a.py::task_a::a"),
177+
Text(f"{_ROOT.name}/task_a.py::task_a::a"),
178178
id="PythonNode with automatically assigned name",
179179
),
180180
],

0 commit comments

Comments
 (0)