From ba596aae9ffd1a6951a22edc3a370317132057ba Mon Sep 17 00:00:00 2001 From: Marcel Wilson Date: Wed, 14 Feb 2024 17:59:33 -0600 Subject: [PATCH] adding copyright year test --- tests/test__version__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test__version__.py b/tests/test__version__.py index 41540f4..5e6b794 100644 --- a/tests/test__version__.py +++ b/tests/test__version__.py @@ -1,5 +1,7 @@ from __future__ import annotations +from datetime import datetime + from screenpy_selenium import __version__ @@ -7,3 +9,8 @@ def test_metadata() -> None: assert __version__.__title__ == "screenpy_selenium" assert __version__.__license__ == "MIT" assert __version__.__author__ == "Perry Goy" + + +def test_copyright_year() -> None: + current = datetime.now().year + assert f"{current}" in __version__.__copyright__