diff options
author | biao716.wang <biao716.wang@samsung.com> | 2022-11-25 22:24:26 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2022-11-28 21:21:23 +0900 |
commit | 6f7ef991f742eb5c5226272ca28edd71a2424143 (patch) | |
tree | 8dc1dda13dca3149b20cfdf77ed97e1732e56fe9 /tests/test_GitModifier.py | |
parent | 0ddd0409b7ba0e9cb3e5234a506041ff032c2e27 (diff) | |
download | git-buildpackage-6f7ef991f742eb5c5226272ca28edd71a2424143.tar.gz git-buildpackage-6f7ef991f742eb5c5226272ca28edd71a2424143.tar.bz2 git-buildpackage-6f7ef991f742eb5c5226272ca28edd71a2424143.zip |
porting code to python3.x with os patch
Change-Id: I3deda71d6bde7c3363800d79d2e9ae6998bdb9e7
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'tests/test_GitModifier.py')
-rw-r--r-- | tests/test_GitModifier.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_GitModifier.py b/tests/test_GitModifier.py index 0a05d4b8..8e7930e8 100644 --- a/tests/test_GitModifier.py +++ b/tests/test_GitModifier.py @@ -19,10 +19,14 @@ def test_author(): 'foo' >>> modifier.email 'bar' - >>> modifier.get_author_env() - {'GIT_AUTHOR_EMAIL': 'bar', 'GIT_AUTHOR_NAME': 'foo'} - >>> modifier.get_committer_env() - {'GIT_COMMITTER_NAME': 'foo', 'GIT_COMMITTER_EMAIL': 'bar'} + >>> modifier.get_author_env()['GIT_AUTHOR_EMAIL'] + 'bar' + >>> modifier.get_author_env()['GIT_AUTHOR_NAME'] + 'foo' + >>> modifier.get_committer_env()['GIT_COMMITTER_NAME'] + 'foo' + >>> modifier.get_committer_env()['GIT_COMMITTER_EMAIL'] + 'bar' >>> modifier._get_env('foo') Traceback (most recent call last): ... |