From 96c8584963b4686adae0dcb2f93e719e65f75685 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:06:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_unit/test_validation.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test_unit/test_validation.py b/tests/test_unit/test_validation.py index 5c7433c..b92b8ce 100644 --- a/tests/test_unit/test_validation.py +++ b/tests/test_unit/test_validation.py @@ -1,15 +1,19 @@ -import pytest from pathlib import Path -from bg_atlasgen.validate_atlases import validate_atlas_files + +import pytest from bg_atlasapi import BrainGlobeAtlas from bg_atlasapi.config import get_brainglobe_dir +from bg_atlasgen.validate_atlases import validate_atlas_files + + 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) \ No newline at end of file + validate_atlas_files(atlas_path)