1010from attrs import define
1111from pytask import cli
1212from pytask import ExitCode
13- from pytask import Node
13+ from pytask import MetaNode
1414from pytask import Task
1515
1616
@@ -304,7 +304,7 @@ def task_example_2():
304304
305305
306306@define
307- class Node ( Node ):
307+ class MetaNode ( MetaNode ):
308308 path : Path
309309
310310 def state (self ):
@@ -323,8 +323,8 @@ def test_print_collected_tasks_without_nodes(capsys):
323323 base_name = "function" ,
324324 path = Path ("task_path.py" ),
325325 function = function ,
326- depends_on = {0 : Node ("in.txt" )},
327- produces = {0 : Node ("out.txt" )},
326+ depends_on = {0 : MetaNode ("in.txt" )},
327+ produces = {0 : MetaNode ("out.txt" )},
328328 )
329329 ]
330330 }
@@ -346,8 +346,8 @@ def test_print_collected_tasks_with_nodes(capsys):
346346 base_name = "function" ,
347347 path = Path ("task_path.py" ),
348348 function = function ,
349- depends_on = {0 : Node ("in.txt" )},
350- produces = {0 : Node ("out.txt" )},
349+ depends_on = {0 : MetaNode ("in.txt" )},
350+ produces = {0 : MetaNode ("out.txt" )},
351351 )
352352 ]
353353 }
@@ -370,8 +370,10 @@ def test_find_common_ancestor_of_all_nodes(show_nodes, expected_add):
370370 base_name = "function" ,
371371 path = Path .cwd () / "src" / "task_path.py" ,
372372 function = function ,
373- depends_on = {0 : Node (Path .cwd () / "src" / "in.txt" )},
374- produces = {0 : Node (Path .cwd ().joinpath (".." , "bld" , "out.txt" ).resolve ())},
373+ depends_on = {0 : MetaNode (Path .cwd () / "src" / "in.txt" )},
374+ produces = {
375+ 0 : MetaNode (Path .cwd ().joinpath (".." , "bld" , "out.txt" ).resolve ())
376+ },
375377 )
376378 ]
377379
0 commit comments