Coverage for gpaw/test/exx/test_xc.py: 100%

8 statements  

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

1import pytest 

2from gpaw.xc import XC 

3 

4 

5@pytest.mark.libxc 

6def test_pbe0(): 

7 xc = XC('PBE0:backend=pw') 

8 assert xc.exx_fraction == 0.25 

9 xc = XC('HYB_GGA_XC_PBEH:backend=pw:omega=0:fraction=0.25') 

10 assert xc.exx_fraction == 0.25