summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 15:13:15 +0200
committerGitHub <noreply@github.com>2017-09-28 15:13:15 +0200
commita56136f9cb48a17ae15b59ae0f3f99d9303b1cb1 (patch)
treeecb856bea6ed63e9c2baf8365a4e0a9030b0b3a3 /git/test
parent90dc03da3ebe1daafd7f39d1255565b5c07757cb (diff)
parent2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (diff)
downloadgitpython-a56136f9cb48a17ae15b59ae0f3f99d9303b1cb1.tar.gz
Merge branch 'master' into adding_setup_for_git_executable
Diffstat (limited to 'git/test')
-rw-r--r--git/test/test_docs.py4
-rw-r--r--git/test/test_repo.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index cbbd9447..1ba3f482 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -289,9 +289,9 @@ class Tutorials(TestBase):
assert len(headcommit.hexsha) == 40
assert len(headcommit.parents) > 0
assert headcommit.tree.type == 'tree'
- assert headcommit.author.name == 'Sebastian Thiel'
+ assert len(headcommit.author.name) != 0
assert isinstance(headcommit.authored_date, int)
- assert headcommit.committer.name == 'Sebastian Thiel'
+ assert len(headcommit.committer.name) != 0
assert isinstance(headcommit.committed_date, int)
assert headcommit.message != ''
# ![14-test_references_and_objects]
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index a6be4e66..312e67f9 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -935,6 +935,8 @@ class TestRepo(TestBase):
commit = repo.head.commit
self.assertIsInstance(commit, Object)
+ self.assertIsInstance(repo.heads['aaaaaaaa'], Head)
+
@with_rw_directory
def test_git_work_tree_env(self, rw_dir):
"""Check that we yield to GIT_WORK_TREE"""