File: test_core_version.py

package info (click to toggle)
poetry-core 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,608 kB
  • sloc: python: 34,630; ansic: 49; makefile: 31; sh: 9
file content (11 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
from __future__ import annotations

from pathlib import Path

from poetry.core import __version__
from poetry.core.pyproject.toml import PyProjectTOML


def test_version_is_synced() -> None:
    pyproject = PyProjectTOML(Path(__file__).parent.parent.joinpath("pyproject.toml"))
    assert __version__ == pyproject.data["project"]["version"]