Coverage for gpaw/test/fileio/test_read_old_gpw.py: 58%

12 statements  

« prev     ^ index     » next       coverage.py v7.7.1, created at 2025-07-14 00:18 +0000

1import os 

2from pathlib import Path 

3from gpaw import GPAW 

4from ase.io import read 

5 

6 

7def test_fileio_read_old_gpw(): 

8 dir = os.environ.get('GPW_TEST_FILES') 

9 if dir: 

10 for f in (Path(dir) / 'old').glob('*.gpw'): 

11 print(f) 

12 calc = GPAW(str(f)) 

13 calc.get_fermi_level() 

14 read(f)