[tests] move imports into functions

This commit is contained in:
jan 2026-03-08 19:00:20 -07:00
commit 3ceeba23b8
2 changed files with 6 additions and 4 deletions

View file

@ -4,12 +4,10 @@ from numpy.testing import assert_equal
from ..pattern import Pattern
from ..library import Library
from ..file import oasis
def test_oasis_roundtrip(tmp_path: Path) -> None:
# Skip if fatamorgana is not installed
pytest.importorskip("fatamorgana")
from ..file import oasis
lib = Library()
pat1 = Pattern()