mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 06:07:06 +00:00
Ethan Paul
f6185ba82d
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
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"]
|