Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pypelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HaissLab
Data Management
Pypelines
Commits
26356999
Commit
26356999
authored
7 months ago
by
Timothe Jost
Browse files
Options
Downloads
Patches
Plain Diff
just adding one more test
parent
7b74d49b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pypelines/__init__.py
+1
-1
1 addition, 1 deletion
src/pypelines/__init__.py
tests/test_core.py
+4
-1
4 additions, 1 deletion
tests/test_core.py
with
5 additions
and
2 deletions
src/pypelines/__init__.py
+
1
−
1
View file @
26356999
__version__
=
"
0.0.7
4
"
__version__
=
"
0.0.7
5
"
from
.
import
loggs
from
.
import
loggs
from
.pipes
import
*
from
.pipes
import
*
...
...
This diff is collapsed.
Click to expand it.
tests/test_core.py
+
4
−
1
View file @
26356999
...
@@ -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
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment