tmp_optifik/tests/test_io.py
François Boulogne 74cea0083d move data
2025-06-25 10:12:15 +02:00

16 lines
361 B
Python

import pytest
from pathlib import Path
from optifik import io
@pytest.fixture
def test_data_dir():
return Path(__file__).parent.parent / 'data'
def test_load_file(test_data_dir):
path = test_data_dir / 'spectraLorene' / 'sample1' / '000266.xy'
data = io.load_spectrum(path)
assert(len(data) == 2)
assert(data[0].shape == data[1].shape)