mirror of
https://github.com/enpaul/keyosk.git
synced 2025-09-18 13:48:39 +00:00
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
This commit is contained in:
22
tests/test_about.py
Normal file
22
tests/test_about.py
Normal file
@@ -0,0 +1,22 @@
|
||||
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"]
|
Reference in New Issue
Block a user