1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-05 06:07:06 +00:00
keyosk/tests/test_about.py

23 lines
459 B
Python
Raw Permalink Normal View History

from pathlib import Path
import toml
from keyosk import __about__
PYPROJECT_PATH = Path("pyproject.toml")
def test_version():
with PYPROJECT_PATH.open() as infile:
pyproject = toml.load(infile)
assert __about__.__version__ == pyproject["tool"]["poetry"]["version"]
def test_title():
with PYPROJECT_PATH.open() as infile:
pyproject = toml.load(infile)
assert __about__.__title__ == pyproject["tool"]["poetry"]["name"]