Skip to content

Commit

Permalink
tests: importskip appdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 15, 2024
1 parent b258de3 commit 577f147
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
appdirs
matplotlib
pytest
tifffile
8 changes: 7 additions & 1 deletion tests/test_cli_plotting.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import pathlib
import tempfile

from nanite.cli import plotting
from nanite import load_group

import pytest

pytest.importorskip("appdirs", reason="appdirs not installed")

from nanite.cli import plotting


data_path = pathlib.Path(__file__).resolve().parent / "data"
jpkfile = data_path / "fmt-jpk-fd_spot3-0192.jpk-force"

Expand Down
4 changes: 4 additions & 0 deletions tests/test_cli_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import shutil
import tempfile

import pytest

pytest.importorskip("appdirs", reason="appdirs not installed")

from nanite.cli import profile


Expand Down
7 changes: 6 additions & 1 deletion tests/test_cli_rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

import numpy as np

from nanite.cli import profile, rating
from nanite.rate import IndentationRater

import pytest

pytest.importorskip("appdirs", reason="appdirs not installed")

from nanite.cli import profile, rating


data_path = pathlib.Path(__file__).resolve().parent / "data"
jpkfile = data_path / "fmt-jpk-fd_spot3-0192.jpk-force"
Expand Down

0 comments on commit 577f147

Please sign in to comment.