-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary pytest options * Update dependency imports * Add test for get_available_atlases * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update tests/tests/test_unit/test_plugin/test_register.py Co-authored-by: Will Graham <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Will Graham <[email protected]>
- Loading branch information
1 parent
6391f81
commit 7efddfc
Showing
4 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from brainreg.napari.register import get_available_atlases | ||
|
||
atlas_name = "allen_mouse_50um" | ||
|
||
|
||
def test_get_available_atlases(): | ||
atlases = get_available_atlases() | ||
|
||
# arbitrary selection of atlases | ||
expected_atlases = [ | ||
"allen_mouse_10um", | ||
"allen_mouse_25um", | ||
"allen_mouse_50um", | ||
"mpin_zfish_1um", | ||
] | ||
|
||
for a in expected_atlases: | ||
assert ( | ||
a in atlases.keys() | ||
), f"{a} is not in the list of expected atlases" |