From 4c4d8ac7e1da49655583dd124db6d4cf359863a5 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 15 May 2018 16:04:07 +0100 Subject: remove broken scaffold test and add a working one --- tests/test_GitUtils.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_GitUtils.py (limited to 'tests/test_GitUtils.py') 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 -- cgit