Skip to content

Commit

Permalink
debug windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n committed Jun 11, 2022
1 parent 798688e commit fff476c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions tests/fixtures/graphs_project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
greet = "echo hello"

_noop.shell = ":"
_about = "echo about"
_do_setup = "echo here we go..."
_about = "echo about"
_do_setup = "echo here we go..."


[tool.poe.tasks.think]
shell = "echo Thinking $first_thing and $subject2"
cmd = "echo Thinking $first_thing and $subject2"
deps = ["_noop", "_do_setup"]
uses = { first_thing = "_about $subject1" }
args = [{ name = "subject1", positional = true }, { name = "subject2", positional = true }]

[tool.poe.tasks.deep-graph-with-args]
shell = "echo $greeting1 and $greeting2"
cmd = "echo $greeting1 and $greeting2"
deps = ["_do_setup", "think $subject1 $subject2"]
uses = { "greeting1" = "greet $subject1", greeting2 = "greet $subject2"}
uses = { greeting1 = "greet $subject1", greeting2 = "greet $subject2"}
args = ["subject1", "subject2"]
4 changes: 2 additions & 2 deletions tests/test_graph_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def test_call_attr_func(run_poe_subproc):
"Poe => :\n"
"Poe <= echo about\n"
"Poe <= echo hello\n"
"Poe => echo Thinking $first_thing and $subject2\n"
"Poe => echo $greeting1 and $greeting2\n"
"Poe => echo Thinking about and\n"
"Poe => echo hello and hello\n"
)
assert result.stdout == (
"here we go...\n" "Thinking about and\n" "hello and hello\n"
Expand Down

0 comments on commit fff476c

Please sign in to comment.