Skip to content

Commit f43cd6a

Browse files
committed
test(git): add test case for git object
1 parent 2d12337 commit f43cd6a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_git.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from commitizen import git
2+
3+
4+
def test_git_object_eq():
5+
git_commit = git.GitCommit(
6+
rev="sha1-code", title="this is title", body="this is body"
7+
)
8+
git_tag = git.GitTag(rev="sha1-code", name="0.0.1", date="2020-01-21")
9+
10+
assert git_commit == git_tag
11+
assert git_commit != "sha1-code"

0 commit comments

Comments
 (0)