mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 06:07:06 +00:00
23 lines
459 B
Python
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"]
|