Skip to content

Commit 89f34b0

Browse files
committed
Module import can occur in the test function instead, since it's only needed for one function
1 parent 06d9cac commit 89f34b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/workflows/fib/test_register_atlas.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from sqlmodel import Session as SQLModelSession, select as sm_select
1111

1212
import murfey.util.db as MurfeyDB
13-
import murfey.workflows.fib.register_atlas
1413
from murfey.workflows.fib.register_atlas import FIBAtlasMetadata, _parse_metadata, run
1514
from tests.conftest import ExampleVisit
1615

@@ -349,6 +348,8 @@ def test_run_with_db(
349348
)
350349

351350
# Mock the metadata returned from the image file
351+
import murfey.workflows.fib.register_atlas
352+
352353
mock_metadata = [
353354
FIBAtlasMetadata(
354355
visit_name=visit_name,

0 commit comments

Comments
 (0)