Skip to content
Snippets Groups Projects
Commit 00160a61 authored by Marc-Antoine Drouin's avatar Marc-Antoine Drouin
Browse files

chore: apply updated formatting of ruff

parent 341a596d
No related branches found
No related tags found
No related merge requests found
Pipeline #2133 passed
......@@ -3,7 +3,7 @@ import pytest
from cigas_ptrms.readers.ames import Ames1001, AmesVariableMeta
@pytest.fixture()
@pytest.fixture
def lev0_file(lev0_dir):
"""Return lev0 file."""
return lev0_dir / "ref_lev0.nas"
......
......@@ -5,25 +5,25 @@ from pathlib import Path
import pytest
@pytest.fixture()
@pytest.fixture
def root_dir(request) -> Path: # type: ignore
"""Return root directory of tests."""
return Path(request.config.rootdir / "tests")
@pytest.fixture()
@pytest.fixture
def data_dir(root_dir: Path) -> Path:
"""Return data directory of tests."""
return root_dir / "data"
@pytest.fixture()
@pytest.fixture
def lev0_dir(data_dir: Path) -> Path:
"""Return lev0 directory of tests."""
return data_dir / "lev0"
@pytest.fixture()
@pytest.fixture
def sirta_dir(data_dir: Path) -> Path:
"""Return sirta directory of tests."""
return data_dir / "sirta"
......@@ -3,19 +3,19 @@ from zipfile import ZipFile
import pytest
@pytest.fixture()
@pytest.fixture
def zip_raw_1_file(sirta_dir):
"""Return a zip file."""
return sirta_dir / "ptrms_0a_Lz5L705F5minUptcUptr_v01_20240730_001608_528.zip"
@pytest.fixture()
@pytest.fixture
def zip_raw_n_files(sirta_dir):
"""Return zip files."""
return sorted(sirta_dir.glob("ptrms_0a_Lz5L705F5minUptcUptr_v01_2024072*.zip"))
@pytest.fixture()
@pytest.fixture
def unzip_dir_1_file(tmp_path, zip_raw_1_file):
"""Return a directory to unzip files."""
path = tmp_path / "unzip_1"
......@@ -28,7 +28,7 @@ def unzip_dir_1_file(tmp_path, zip_raw_1_file):
return path
@pytest.fixture()
@pytest.fixture
def unzip_dir_n_files(tmp_path, zip_raw_n_files):
"""Return a directory to unzip files."""
path = tmp_path / "unzip_n"
......@@ -42,37 +42,37 @@ def unzip_dir_n_files(tmp_path, zip_raw_n_files):
return path
@pytest.fixture()
@pytest.fixture
def ptr_1_file(unzip_dir_1_file):
"""Return a ptr file."""
return sorted(unzip_dir_1_file.glob("*.ptr"))
@pytest.fixture()
@pytest.fixture
def ptc_1_file(unzip_dir_1_file):
"""Return a ptc file."""
return sorted(unzip_dir_1_file.glob("*.ptc"))
@pytest.fixture()
@pytest.fixture
def valve_1_file(unzip_dir_1_file):
"""Return a valve file."""
return sorted(unzip_dir_1_file.glob("*.csv"))
@pytest.fixture()
@pytest.fixture
def ptr_n_files(unzip_dir_n_files):
"""Return a ptr file."""
return sorted(unzip_dir_n_files.glob("*.ptr"))
@pytest.fixture()
@pytest.fixture
def ptc_n_files(unzip_dir_n_files):
"""Return a ptc file."""
return sorted(unzip_dir_n_files.glob("*.ptc"))
@pytest.fixture()
@pytest.fixture
def valve_n_files(unzip_dir_n_files):
"""Return a valve file."""
return sorted(unzip_dir_n_files.glob("*.csv"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment