8000 test(test_git): get_tag_names should have List[Optional[str]] annotation · edvm/commitizen@a62354f · GitHub
[go: up one dir, main page]

Skip to content

Commit a62354f

Browse files
test(test_git): get_tag_names should have List[Optional[str]] annotation
issue commitizen-tools#285
1 parent 2a94361 commit a62354f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_git.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import inspect
2+
from typing import List, Optional, Union
3+
14
import pytest
25

36
from commitizen import git
@@ -68,3 +71,9 @@ def test_get_commits_author_and_email():
6871

6972
assert commit.author is not ""
7073
assert "@" in commit.author_email
74+
75+
76+
def test_get_tag_names_has_correct_arrow_annotation():
77+
arrow_annotation = inspect.getfullargspec(git.get_tag_names).annotations["return"]
78+
79+
assert arrow_annotation == List[Optional[str]]

0 commit comments

Comments
 (0)
0