1"""Check that our tab-completion script has been updated."""
2from ase.cli.completion import update
3from gpaw.cli.completion import path
4from gpaw.cli.main import commands
5
6
7def test_complete():
8    try:
9        update(path, commands, test=True)
10    except ValueError:
11        raise ValueError(
12            'Please update gpaw/cli/complete.py using '
13            '"python3 -m gpaw.test.test_complete".')
14
15
16if __name__ == '__main__':
17    update(path, commands, test=False)
18