diff --git a/tests/test__version__.py b/tests/test__version__.py index 7d9ea92..c6358c0 100644 --- a/tests/test__version__.py +++ b/tests/test__version__.py @@ -1,6 +1,7 @@ from __future__ import annotations from datetime import datetime +from pathlib import Path from screenpy_selenium import __version__ @@ -15,3 +16,12 @@ def test_copyright_year() -> None: current = datetime.now().year assert f"{current}" in __version__.__copyright__ + + +def test_copyright_year_in_license() -> None: + current = datetime.now().year + license_path = Path(__file__).parent / ".." / "LICENSE" + with open(license_path) as fp: + license_text = fp.read() + + assert f"{current}" in license_text