diff options
author | Steve Frécinaux <code@istique.net> | 2008-09-07 21:55:13 +0200 |
---|---|---|
committer | Steve Frécinaux <code@istique.net> | 2008-09-07 22:05:51 +0200 |
commit | 5d3e2f7f57620398df896d9569c5d7c5365f823d (patch) | |
tree | 1d734976d6984236690de77ff4b6eacf31e6b3c7 /test/git/test_repo.py | |
parent | befb617d0c645a5fa3177a1b830a8c9871da4168 (diff) | |
download | gitpython-5d3e2f7f57620398df896d9569c5d7c5365f823d.tar.gz |
Allow modifying the project description
Do this:
>>> repo.description = "Foo Bar"
>>> repo.description
'Foo Bar'
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 036ae1e9..29ba463b 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -25,7 +25,9 @@ class TestRepo(object): Repo("repos/foobar") def test_description(self): - assert_equal("Unnamed repository; edit this file to name it for gitweb.", self.repo.description) + txt = "Test repository" + self.repo.description = txt + assert_equal(self.repo.description, txt) def test_heads_should_return_array_of_head_objects(self): for head in self.repo.heads: |