This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dev install, make test structure, initial tests
- Loading branch information
1 parent
9402b66
commit 598a0e1
Showing
3 changed files
with
27 additions
and
6 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
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,15 @@ | ||
import pytest | ||
from pathlib import Path | ||
from bg_atlasgen.validate_atlases import validate_atlas_files | ||
from bg_atlasapi import BrainGlobeAtlas | ||
from bg_atlasapi.config import get_brainglobe_dir | ||
|
||
def test_valid_atlas_files(): | ||
_ = BrainGlobeAtlas("allen_mouse_100um") | ||
atlas_path = Path(get_brainglobe_dir()) / "allen_mouse_100um_v1.2" | ||
assert validate_atlas_files(atlas_path) | ||
|
||
def test_invalid_atlas_path(): | ||
atlas_path = Path.home() | ||
with pytest.raises(AssertionError, match="Expected file not found"): | ||
validate_atlas_files(atlas_path) |