Skip to content
Snippets Groups Projects
Commit bca3f582 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

tests(pipeline): add local tests

parent e4d1a55f
No related branches found
No related tags found
No related merge requests found
#!/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])
#
#!/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()
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