From b50d9311872ea6064ff0302e4a8e15ffca6234cb Mon Sep 17 00:00:00 2001 From: Francesc Alted Date: Thu, 14 Dec 2023 13:36:53 +0100 Subject: [PATCH] Make tests independent of cwd --- pyproject.toml | 2 +- tests/test_jp2.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0ad22db..9cad35a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ build-backend = "scikit_build_core.build" [project] name = "blosc2_grok" -version = "0.0.2.dev" +version = "0.1.0.dev" readme = "README.md" authors = [ {name = "Blosc Development Team", email = "contact@blosc.org"}, diff --git a/tests/test_jp2.py b/tests/test_jp2.py index 199dcd7..aae83cb 100644 --- a/tests/test_jp2.py +++ b/tests/test_jp2.py @@ -10,13 +10,14 @@ import pytest from PIL import Image import time +from pathlib import Path import blosc2 import blosc2_grok - -@pytest.mark.parametrize('image', ['examples/kodim23.png', 'examples/MI04_020751.tif']) +project_dir = Path(__file__).parent.parent +@pytest.mark.parametrize('image', [project_dir / 'examples/kodim23.png', project_dir / 'examples/MI04_020751.tif']) @pytest.mark.parametrize( 'args', [