Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 6, 2024
1 parent 5711491 commit c9e0aa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
1 change: 0 additions & 1 deletion tests/tools/pytest_fixtures/test_configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test the pytest fixtures."""

import tempfile


def test_aiida_config(tmp_path):
Expand Down

0 comments on commit c9e0aa4

Please sign in to comment.