1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-09-12 20:03:50 +00:00
keyosk/tests/test_about.py
Ethan Paul f6185ba82d Update about file with less sketchy loading system
Remove importlib usage from about file
Add tests to enforce data consistency between pyproject and about
Update sphinx config to use new about file
Remove pyproject from package
2020-02-24 20:33:44 -05:00

23 lines
459 B
Python

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"]