File: test_version.py

package info (click to toggle)
python-ase 3.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,484 kB
  • sloc: python: 148,112; xml: 2,728; makefile: 110; javascript: 47
file content (14 lines) | stat: -rw-r--r-- 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# fmt: off
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'