Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for unfiled images using default schema #323

Merged
merged 7 commits into from
Nov 15, 2022

Conversation

naglepuff
Copy link
Collaborator

addresses (partially) #295

When using the default schema, images can be ingested into the Unfiled directory. Work in #310 and #260 allowed for manually refiling these images into the AvailableToProcess folder. The changes here add tests for importing images using the default schema, refiling one image from the item view, and bulk refiling from the Unfiled folder itself.

The test data is on DKC and is comprised of low-res whole slide images.

@manthey I think these are a good start on capturing more workflows in tests, although I think they are far from complete. I think a follow up PR could more carefully test the OCR job (perhaps independently of the import process), but if you think there are any glaring omissions from this initial effort I would not mind adding them to this PR.

@naglepuff naglepuff requested a review from manthey November 11, 2022 19:32
@manthey
Copy link
Contributor

manthey commented Nov 11, 2022

If you merge master, CI should pass.

@@ -29,3 +37,11 @@ def get_url(self, fname):
base_url='https://data.kitware.com/api/v1/file/hashsum/{algo}/{hashvalue}/download',
registry=registry,
)

lowres_datastore = DKCPooch(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to create a second datastore? It looks like you enumerate the files you are using anyway.

@naglepuff naglepuff force-pushed the default-workflow-tests branch from acd98bd to 3e11a11 Compare November 15, 2022 19:27
@@ -3,7 +3,7 @@
import pytest
from pytest_girder.web_client import runWebClientTest

from .utilities import provisionBoundServer, resetConfig # noqa
from .utilities import provisionDefaultSchemaBoundServer, provisionBoundServer, resetConfig # noqa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isort wants these alphabetized. You can also run tox -e format.

@naglepuff naglepuff merged commit 711da08 into master Nov 15, 2022
@naglepuff naglepuff deleted the default-workflow-tests branch November 15, 2022 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants