diff --git a/tests/conftest.py b/tests/conftest.py index f65af18647..8fb32eaa83 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -18,11 +18,11 @@ import dataclasses import os import pathlib +import subprocess import types import typing as t import warnings from pathlib import Path -import subprocess import click import pytest @@ -862,14 +862,16 @@ def factory(dirpath: pathlib.Path, read_bytes=True) -> dict: return factory + @pytest.fixture def bash_path() -> Path: - run_process = subprocess.run(["which", "bash"], capture_output=True, check=True) + run_process = subprocess.run(['which', 'bash'], capture_output=True, check=True) path = run_process.stdout.decode('utf-8').strip() return Path(path) + @pytest.fixture def cat_path() -> Path: - run_process = subprocess.run(["which", "cat"], capture_output=True, check=True) + run_process = subprocess.run(['which', 'cat'], capture_output=True, check=True) path = run_process.stdout.decode('utf-8').strip() return Path(path) diff --git a/tests/tools/pytest_fixtures/test_configuration.py b/tests/tools/pytest_fixtures/test_configuration.py index c960c21d55..09bd20cbee 100644 --- a/tests/tools/pytest_fixtures/test_configuration.py +++ b/tests/tools/pytest_fixtures/test_configuration.py @@ -1,6 +1,5 @@ """Test the pytest fixtures.""" -import tempfile def test_aiida_config(tmp_path):