aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-11-15 19:30:03 +0100
committerGuido Günther <agx@sigxcpu.org>2011-11-20 14:24:24 +0100
commite7bbada49300f987ae129147fffe244d0d7a4cb6 (patch)
tree16c7ae029fc61c541eb21a2a2f2da37432ffedff /tests
parent917a496fd8ffc7e857571ca747df01051ef12e35 (diff)
Move GitModifier class to separate file
and introduce a new base exception for Git related errors.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitModifier.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_GitModifier.py b/tests/test_GitModifier.py
index d463c2ea..1a5b27c4 100644
--- a/tests/test_GitModifier.py
+++ b/tests/test_GitModifier.py
@@ -20,4 +20,8 @@ def test_author():
{'GIT_AUTHOR_EMAIL': 'bar', 'GIT_AUTHOR_NAME': 'foo'}
>>> modifier.get_committer_env()
{'GIT_COMMITTER_NAME': 'foo', 'GIT_COMMITTER_EMAIL': 'bar'}
+ >>> modifier._get_env('foo')
+ Traceback (most recent call last):
+ ...
+ GitModifierError: Neither comitter nor author
"""