File: test_version.py

package info (click to toggle)
python-ase 3.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,344 kB
  • sloc: python: 126,379; xml: 946; makefile: 111; javascript: 47
file content (14 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from ase.calculators.aims import get_aims_version

version_string = """\
          Invoking FHI-aims ...

blah blah blah

  FHI-aims version      : 200112.2
  Commit number         : GITDIR-NOTFOUND
"""


def test_get_aims_version():
    assert get_aims_version(version_string) == '200112.2'