From 436463e7874524b21d70bdd9bb2be8bae1d3441c Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 18 Dec 2007 00:53:27 -0800 Subject: Add more testcases, and add coverage exclusion notations on places where we do test the the content functions already, or they interact with the system too much to test for coverage automatically. --- gitosis/init.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitosis/init.py') diff --git a/gitosis/init.py b/gitosis/init.py index 91e986e..054bda1 100644 --- a/gitosis/init.py +++ b/gitosis/init.py @@ -20,7 +20,7 @@ from gitosis import app # pylint: disable-msg=C0103 log = logging.getLogger('gitosis.init') -def read_ssh_pubkey(fp=None): +def read_ssh_pubkey(fp=None): #pragma: no cover """Read an SSH public key from stdin.""" if fp is None: fp = sys.stdin @@ -53,7 +53,7 @@ def initial_commit(git_dir, cfg, pubkey, user): ], ) -def symlink_config(git_dir): +def symlink_config(git_dir): #pragma: no cover """ Place a symlink for the gitosis.conf file in the homedir of the gitosis user, to make possible to find initially. @@ -118,7 +118,7 @@ class Main(app.App): except app.ConfigFileDoesNotExistError: pass - def handle_args(self, parser, cfg, options, args): + def handle_args(self, parser, cfg, options, args): #pragma: no cover """Parse the input for this program.""" super(Main, self).handle_args(parser, cfg, options, args) -- cgit v1.2.3