Coverage for gpaw/test/wannier/conftest.py: 86%
7 statements
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-14 00:18 +0000
« prev ^ index » next coverage.py v7.7.1, created at 2025-07-14 00:18 +0000
1import shutil
2import pytest
5@pytest.fixture
6def wannier90(scope='session'):
7 wannier90 = shutil.which('wannier90.x')
8 if wannier90 is None:
9 pytest.skip('no wannier90.x executable')
11 # Actually we should /return/ the path, and we should have stored
12 # it in a kind of config rather than hardcoding the executable.
13 #
14 # TODO: return wannier90 path and pass it to Wannier90 class