Skip to content

Commit

Permalink
adding copyright year test
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 14, 2024
1 parent ac1dc23 commit e5bbc29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test__version__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from __future__ import annotations

from datetime import datetime

from screenpy_playwright import __version__


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__

0 comments on commit e5bbc29

Please sign in to comment.