From 0a22dc11b78d542299700a25ed9d9a773fb55eda Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Wed, 16 Mar 2016 13:12:41 +0100 Subject: [PATCH] A bug fix for the test suite --- vcs_repo_mgr/__init__.py | 11 ++++++++--- vcs_repo_mgr/tests.py | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vcs_repo_mgr/__init__.py b/vcs_repo_mgr/__init__.py index 0ac0dec..367880b 100644 --- a/vcs_repo_mgr/__init__.py +++ b/vcs_repo_mgr/__init__.py @@ -81,7 +81,7 @@ ) # Semi-standard module versioning. -__version__ = '0.22.1' +__version__ = '0.22.2' USER_CONFIG_FILE = os.path.expanduser('~/.vcs-repo-mgr.ini') """The absolute pathname of the user-specific configuration file (a string).""" @@ -502,8 +502,13 @@ def author(self): """ The author for commits created using :func:`commit()` (a string). - Subclasses are expected to override this property to default to the - author configured in the version control system. + This is a string of the form ``name `` where both the name and + the email address are required (this is actually a slight + simplification, but I digress). + + The :attr:`author` property needs to be provided by subclasses and/or + the caller (by passing it to :func:`__init__()` as a keyword + argument). """ @required_property diff --git a/vcs_repo_mgr/tests.py b/vcs_repo_mgr/tests.py index 87f4524..92cd5da 100644 --- a/vcs_repo_mgr/tests.py +++ b/vcs_repo_mgr/tests.py @@ -382,7 +382,7 @@ def check_commit_support(self, cloned_repo): assert not cloned_repo.is_clean # Commit the change we made. cloned_repo.commit( - author="vcs-repo-mgr", + author="Peter Odding ", message="This is a test", ) # Make sure the working tree is clean again.