mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 13:00:37 +01:00
chore: typehint tests
This commit is contained in:
1 parent
a5374d1f1a
commit
e29433b388
23 files changed
+170
-93
No files matched your search
@@ -5,7 +5,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def changelog(request) -> None:
|
||||
def changelog(request: pytest.FixtureRequest) -> str:
|
||||
root = request.config.rootpath
|
||||
changelog = Path(root).joinpath("CHANGELOG.md").read_text()
|
||||
return changelog
|
||||
@@ -19,7 +19,7 @@ def count_hash(line: str) -> int:
|
||||
return cnt
|
||||
|
||||
|
||||
def test_changelog_prefix(changelog) -> None:
|
||||
def test_changelog_prefix(changelog: str) -> None:
|
||||
r = r".*(\[.*\]).*"
|
||||
lines = changelog.splitlines()
|
||||
sort = sorted(lines)
|
||||
|
||||
Reference in new issue
Block a user