aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitUtils.py14
-rw-r--r--tests/test_skeleton.py17
2 files changed, 14 insertions, 17 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
diff --git a/tests/test_skeleton.py b/tests/test_skeleton.py
deleted file mode 100644
index ec2ef23..0000000
--- a/tests/test_skeleton.py
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-import pytest
-from git_deps.skeleton import fib
-
-__author__ = "Adam Spiers"
-__copyright__ = "Adam Spiers"
-__license__ = "none"
-
-
-def test_fib():
- assert fib(1) == 1
- assert fib(2) == 1
- assert fib(7) == 13
- with pytest.raises(AssertionError):
- fib(-10)