From a62354f2cf0c7eeab59673df9ec175a302875d51 Mon Sep 17 00:00:00 2001 From: Christian Eland Date: Sun, 25 Oct 2020 02:07:41 -0300 Subject: [PATCH] test(test_git): get_tag_names should have List[Optional[str]] annotation issue #285 --- tests/test_git.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_git.py b/tests/test_git.py index 92abc2f04..650b720d3 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -1,3 +1,6 @@ +import inspect +from typing import List, Optional, Union + import pytest from commitizen import git @@ -68,3 +71,9 @@ def test_get_commits_author_and_email(): assert commit.author is not "" assert "@" in commit.author_email + + +def test_get_tag_names_has_correct_arrow_annotation(): + arrow_annotation = inspect.getfullargspec(git.get_tag_names).annotations["return"] + + assert arrow_annotation == List[Optional[str]]