1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-09-18 21:21:59 +00:00

Initial commit

This commit is contained in:
2020-09-16 03:41:53 -04:00
commit 3034074de0
15 changed files with 2345 additions and 0 deletions

22
tests/test_about.py Normal file
View 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"]
)