Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Oct 11, 2024
1 parent f81b04d commit f9e9b42
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 6 deletions.
35 changes: 30 additions & 5 deletions tools/omero/omero_get_id.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
<test>
<param name="omero_host" value="host.docker.internal"/>
<param name="omero_port" value="6064"/>
<param name="obj_type" value="project"/>
<conditional name="cond_obj_type">
<param name="final_obj_type" value="Project"/>
</conditional>
<param name="test_username" value="root"/>
<param name="test_password" value="omero"/>
<output name="tsv" value="output_ids_project.tsv" ftype="tabular">
Expand All @@ -126,8 +128,11 @@
<test>
<param name="omero_host" value="host.docker.internal"/>
<param name="omero_port" value="6064"/>
<param name="obj_type" value="dataset"/>
<param name="did" value="1"/>
<conditional name="cond_obj_type">
<param name="final_obj_type" value="Dataset"/>
<param name="parent_obj_type" value="Project"/>
<param name="parent_id" value="1"/>
</conditional>
<param name="test_username" value="root"/>
<param name="test_password" value="omero"/>
<output name="tsv" value="output_ids_dataset.tsv" ftype="tabular">
Expand All @@ -140,8 +145,11 @@
<test>
<param name="omero_host" value="host.docker.internal"/>
<param name="omero_port" value="6064"/>
<param name="obj_type" value="image"/>
<param name="did" value="1"/>
<conditional name="cond_obj_type">
<param name="final_obj_type" value="Image"/>
<param name="parent_obj_type" value="Dataset"/>
<param name="parent_id" value="1"/>
</conditional>
<param name="test_username" value="root"/>
<param name="test_password" value="omero"/>
<output name="tsv" value="output_ids_image.tsv" ftype="tabular">
Expand All @@ -151,6 +159,23 @@
</assert_contents>
</output>
</test>
<test>
<param name="omero_host" value="host.docker.internal"/>
<param name="omero_port" value="6064"/>
<conditional name="cond_obj_type">
<param name="final_obj_type" value="Tag"/>
<param name="parent_obj_type" value="Image"/>
<param name="parent_id" value="1"/>
</conditional>
<param name="test_username" value="root"/>
<param name="test_password" value="omero"/>
<output name="tsv" ftype="tabular">
<assert_contents>
<has_text text="Tag IDs"/>
<has_text text="1"/>
</assert_contents>
</output>
</test>
</tests>
<help>
Description
Expand Down
18 changes: 17 additions & 1 deletion tools/omero/omero_get_value.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,23 @@
<data name="tsv" format="tabular"/>
</outputs>
<tests>
<!-- TODO -->
<test>
<param name="omero_host" value="host.docker.internal"/>
<param name="omero_port" value="6064"/>
<param name="obj_type" value="Tag"/>
<conditional name="ids_input">
<param name="ids_format" value="value"/>
<param name="ids" value="1"/>
</conditional>
<param name="test_username" value="root"/>
<param name="test_password" value="omero"/>
<output name="tsv" ftype="tabular">
<assert_contents>
<has_text text="test_tag"/>
<has_n_lines n="1"/>
</assert_contents>
</output>
</test>
</tests>
<help>
Description
Expand Down

0 comments on commit f9e9b42

Please sign in to comment.