Skip to content
Snippets Groups Projects
Commit 26356999 authored by Timothe Jost's avatar Timothe Jost
Browse files

just adding one more test

parent 7b74d49b
No related branches found
No related tags found
No related merge requests found
__version__ = "0.0.74" __version__ = "0.0.75"
from . import loggs from . import loggs
from .pipes import * from .pipes import *
......
...@@ -177,7 +177,7 @@ def test_pypeline_call(request, pipeline_fixture_name: str, session): ...@@ -177,7 +177,7 @@ def test_pypeline_call(request, pipeline_fixture_name: str, session):
def test_pypeline_requirement_stack(request, pipeline_fixture_name: str, session): def test_pypeline_requirement_stack(request, pipeline_fixture_name: str, session):
pipeline: Pipeline = request.getfixturevalue(pipeline_fixture_name) pipeline: Pipeline = request.getfixturevalue(pipeline_fixture_name)
# before being resolved (called) # before being resolved (called), requires is a list of string
assert pipeline.complex_pipe.another_name.requires == ["complex_pipe.my_step_name"] assert pipeline.complex_pipe.another_name.requires == ["complex_pipe.my_step_name"]
# expect no result is present on disk because we didn't check_requirements # expect no result is present on disk because we didn't check_requirements
...@@ -185,3 +185,6 @@ def test_pypeline_requirement_stack(request, pipeline_fixture_name: str, session ...@@ -185,3 +185,6 @@ def test_pypeline_requirement_stack(request, pipeline_fixture_name: str, session
pipeline.complex_pipe.another_name.generate(session) pipeline.complex_pipe.another_name.generate(session)
assert pipeline.complex_pipe.another_name.generate(session, check_requirements=True) == 54 assert pipeline.complex_pipe.another_name.generate(session, check_requirements=True) == 54
# now, requires has been resolved and contains instanciated step objects
assert pipeline.complex_pipe.another_name.requires == [pipeline.complex_pipe.my_step_name]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment