Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
BROKEN add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Feb 16, 2024
1 parent 8f28179 commit 6ba02a9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/test_full_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from devtools import debug
from images import find_image_by_path
from models import Dataset
from models import Workflow
from models import WorkflowTask
Expand Down Expand Up @@ -32,6 +33,16 @@ def test_workflow_1(tmp_path: Path):
],
dataset=dataset_in,
)

debug(dataset_out.history)
assert dataset_out.history == [
"create_ome_zarr",
"yokogawa_to_zarr",
"illumination_correction",
"new_ome_zarr",
"maximum_intensity_projection",
]

debug(dataset_out.images)
assert set(dataset_out.image_paths) == {
"my_plate.zarr/A/01/0",
Expand All @@ -41,6 +52,23 @@ def test_workflow_1(tmp_path: Path):
"my_plate_mip.zarr/A/01/0_corr",
"my_plate_mip.zarr/A/02/0_corr",
}
img = find_image_by_path(path="my_plate.zarr/A/01/0_corr", images=dataset_out.images)
assert img == {
"path": "my_plate.zarr/A/01/0_corr",
"well": "A_01",
"plate": "my_plate.zarr",
"data_dimensionality": "3",
"illumination_correction": True,
}

img = find_image_by_path(path="my_plate_mip.zarr/A/01/0_corr", images=dataset_out.images)
assert img == {
"path": "my_plate_mip.zarr/A/01/0_corr",
"well": "A_01",
"plate": "my_plate_mip.zarr",
"data_dimensionality": "2",
"illumination_correction": True,
}


WORKFLOWS = [
Expand Down

0 comments on commit 6ba02a9

Please sign in to comment.