From e5bbc290ff6c006b31123a1388258afe2e3c1412 Mon Sep 17 00:00:00 2001 From: bandophahita Date: Wed, 14 Feb 2024 17:59:22 -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 9408e47..aa9ab21 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_playwright import __version__ @@ -7,3 +9,8 @@ def test_metadata() -> None: assert __version__.__title__ == "screenpy_playwright" assert __version__.__license__ == "MIT" assert __version__.__author__ == "Perry Goy" + + +def test_copyright_year() -> None: + current = datetime.now().year + assert f"{current}" in __version__.__copyright__