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 (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from ase.calculators.vasp import get_vasp_version

vasp_sample_header = """\
 running on    1 total cores
 distrk:  each k-point on    1 cores,    1 groups
 distr:  one band on    1 cores,    1 groups
 using from now: INCAR
 vasp.6.1.2 22Jul20 (build Jan 19 2021 13:49:35) complex
"""


def test_vasp_version():
    assert get_vasp_version(vasp_sample_header) == '6.1.2'