File: test_version.py

package info (click to toggle)
audio-visualizer-python 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: python: 6,683; sh: 15; makefile: 10
file content (14 lines) | stat: -rw-r--r-- 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from avp import __version__
from tomllib import load
import os


def test_version_number_matches():
    with open(
        os.path.join(
            os.path.dirname(os.path.realpath(__file__)), "..", "pyproject.toml"
        ),
        "rb",
    ) as fp:
        config = load(fp)
    assert config["project"]["version"] == __version__