Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Swain Lab
aliby
alibylite
Commits
bca3f582
Commit
bca3f582
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
tests(pipeline): add local tests
parent
e4d1a55f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/aliby/pipeline/conftest.py
+16
-0
16 additions, 0 deletions
tests/aliby/pipeline/conftest.py
tests/aliby/pipeline/test_pipeline_local_nometa.py
+19
-0
19 additions, 0 deletions
tests/aliby/pipeline/test_pipeline_local_nometa.py
with
35 additions
and
0 deletions
tests/aliby/pipeline/conftest.py
0 → 100644
+
16
−
0
View file @
bca3f582
#!/usr/bin/env jupyter
def
pytest_addoption
(
parser
):
parser
.
addoption
(
"
--file
"
,
action
=
"
store
"
,
default
=
"
test_datasets
"
)
def
pytest_generate_tests
(
metafunc
):
# This is called for every test. Only get/set command line arguments
# if the argument is specified in the list of test "fixturenames".
option_value
=
metafunc
.
config
.
option
.
file
if
"
file
"
in
metafunc
.
fixturenames
and
option_value
is
not
None
:
metafunc
.
parametrize
(
"
file
"
,
[
option_value
])
#
This diff is collapsed.
Click to expand it.
tests/aliby/pipeline/test_pipeline_local_nometa.py
0 → 100644
+
19
−
0
View file @
bca3f582
#!/usr/bin/env jupyter
from
aliby.pipeline
import
PipelineParameters
,
Pipeline
def
test_local_pipeline
(
file
:
str
):
print
(
file
)
# params = PipelineParameters.default(
# general={
# "expt_id": file,
# "distributed": 0,
# "directory": "../local/",
# "overwrite": True,
# },
# tiler={"ref_channel": 0},
# )
# p = Pipeline(params)
# p.run()
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