aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_GitUtils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_GitUtils.py')
-rw-r--r--tests/test_GitUtils.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_GitUtils.py b/tests/test_GitUtils.py
new file mode 100644
index 0000000..c5f79ca
--- /dev/null
+++ b/tests/test_GitUtils.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import pytest
+from git_deps.gitutils import GitUtils
+
+__author__ = "Adam Spiers"
+__copyright__ = "Adam Spiers"
+__license__ = "none"
+
+
+def test_abbreviate_sha1():
+ sha1 = GitUtils.abbreviate_sha1("HEAD")
+ assert len(sha1) == 7