diff --git a/imagemonk/__about__.py b/imagemonk/__about__.py index 67ed647..a6767d0 100644 --- a/imagemonk/__about__.py +++ b/imagemonk/__about__.py @@ -1,6 +1,9 @@ """Programatically accessible project metadata""" -__title__ = "awesome-template" +__title__ = "imagemonk" __version__ = "0.0.0" -__authors__ = ["Ethan Paul "] +__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] +__license__ = "MIT" +__summary__ = "HTTP server for uploading images and generating thumbnails" +__url__ = "https://github.com/mocproject/imagemonk/" diff --git a/openapi.yaml b/openapi.yaml index aa9380c..4cfbb67 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -4,9 +4,9 @@ info: version: 0.1.0 title: ImageMonk description: >- - ImageMonk is a simple HTTP server that allows users to upload + ImageMonk is a simple HTTP server that allows users to upload images and retrieve them at a later time. In addition, it - supports generating (and caching) scaled versions of the + supports generating (and caching) scaled versions of the uploaded images for use as thumbnails. license: name: MIT diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_about.py b/tests/test_about.py index 370d392..a00b998 100644 --- a/tests/test_about.py +++ b/tests/test_about.py @@ -9,14 +9,25 @@ from imagemonk import __about__ def test_about(): """Test metadata values""" - with (Path(__file__).parent.parent / "pyproject.toml").open() as infile: - about = toml.load(infile) + with (Path(__file__).resolve().parent.parent / "pyproject.toml").open() as infile: + pyproject = 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 pyproject["tool"]["poetry"]["name"] == __about__.__title__ + assert pyproject["tool"]["poetry"]["version"] == __about__.__version__ + assert pyproject["tool"]["poetry"]["license"] == __about__.__license__ + assert pyproject["tool"]["poetry"]["description"] == __about__.__summary__ + assert pyproject["tool"]["poetry"]["repository"] == __about__.__url__ + assert ( + all( + item in __about__.__authors__ + for item in pyproject["tool"]["poetry"]["authors"] + ) + is True ) - assert all( - author in __about__.__authors__ for author in about["tool"]["poetry"]["authors"] + assert ( + all( + item in pyproject["tool"]["poetry"]["authors"] + for item in __about__.__authors__ + ) + is True )