We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d12337 commit f43cd6aCopy full SHA for f43cd6a
tests/test_git.py
@@ -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