Coverage for gpaw/test/test_complete.py: 75%

12 statements  

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

1"""Check that our tab-completion script has been updated.""" 

2import pytest 

3from ase.cli.completion import update 

4 

5from gpaw.cli.completion import path 

6from gpaw.cli.main import commands 

7 

8 

9@pytest.mark.ci 

10def test_complete(): 

11 try: 

12 update(path, commands, test=True) 

13 except ValueError as e: 

14 raise ValueError( 

15 'Please update gpaw/cli/complete.py using ' 

16 '"python3 -m gpaw.test.test_complete".') from e 

17 

18 

19if __name__ == '__main__': 

20 update(path, commands, test=False)