-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
If you merge master, CI should pass. |
tests/datastore.py
Outdated
@@ -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( |
There was a problem hiding this comment.
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.
Each utility function for provisioning web servers enumerates the files to use. Therefore they can share the data stores without necessarily sharing the files.
acd98bd
to
3e11a11
Compare
tests/test_web_client.py
Outdated
@@ -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 |
There was a problem hiding this comment.
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
.
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 theAvailableToProcess
folder. The changes here add tests for importing images using the default schema, refiling one image from the item view, and bulk refiling from theUnfiled
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.