mirror of
https://github.com/enpaul/kodak.git
synced 2025-09-18 21:21:59 +00:00
Initial commit
This commit is contained in:
22
tests/test_about.py
Normal file
22
tests/test_about.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""Test that metadata module matches pyproject"""
|
||||
from pathlib import Path
|
||||
|
||||
import toml
|
||||
|
||||
from imagemonk import __about__
|
||||
|
||||
|
||||
def test_about():
|
||||
"""Test metadata values"""
|
||||
|
||||
with (Path(__file__).parent.parent / "pyproject.toml").open() as infile:
|
||||
about = toml.load(infile)
|
||||
|
||||
assert about["tool"]["poetry"]["name"] == __about__.__title__
|
||||
assert about["tool"]["poetry"]["version"] == __about__.__version__
|
||||
assert all(
|
||||
author in about["tool"]["poetry"]["authors"] for author in __about__.__authors__
|
||||
)
|
||||
assert all(
|
||||
author in __about__.__authors__ for author in about["tool"]["poetry"]["authors"]
|
||||
)
|
Reference in New Issue
Block a user