Skip to content

Commit

Permalink
Use __file__ to obtain test fixtures instead importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
mbercx committed Nov 21, 2024
1 parent 6bfe324 commit f362f5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/outputs/test_pw_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import pytest

from qe_tools.outputs.pw import PwOutput
from importlib.resources import files
from fixtures import pw
from pathlib import Path


@pytest.mark.parametrize(
Expand All @@ -26,7 +25,7 @@ def test_default_xml(data_regression, xml_format):

name = f'default_xml_{xml_format}'

directory = files(pw).joinpath(name)
directory = Path(__file__).parent / 'fixtures' / 'pw' / name

pw_out = PwOutput.from_dir(directory)
pw_out.outputs
Expand Down

0 comments on commit f362f5d

Please sign in to comment.