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

fix(tests): add data folder

parent 379c4159
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,6 @@ venv.bak/
omero_py/omeroweb/
omero_py/pipeline/
**.ipynb
data/
notebooks/
*.pdf
*.h5
......
......@@ -44,7 +44,7 @@ def test_to_yaml(yaml_file):
def test_dict(example_dict):
params = DummyParameters(**example_dict)
assert params.to_dict() == param_dict
assert params.to_dict() == example_dict
# Remove
params.to_yaml("outfile.yml")
......
......@@ -3,24 +3,29 @@
Load data necessary to test agora.
"""
import typing as t
from pathlib import Path
from pathlib import Path, PosixPath
import pytest
@pytest.fixture(scope="module")
def yaml_file():
return Path(__file__).parent / "data/parameters.yaml"
def data_dir():
return Path(__file__).parent / "data"
@pytest.fixture(scope="module")
def yaml_file(data_dir: PosixPath):
return data_dir / "parameters.yaml"
@pytest.fixture(scope="module", autouse=True)
def parameters_example() -> t.Dict:
def example_dict() -> t.Dict:
return dict(
string="abc",
number=1,
boolean=True,
dictionary=dict(
empty_dict=dict(),
# empty_dict=dict(),
string="def",
number=2,
),
......
{}
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