From 665e64fbe8fea91f68be42cbbda79082d9a58c30 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 21 Jun 2009 21:54:07 -0400 Subject: Replaced some doctest output with ellipses. Following Chris' advice. Don't know what I was thinking before ;). --- becommands/merge.py | 40 ++++++++++++++++++++-------------------- becommands/show.py | 8 ++++---- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/becommands/merge.py b/becommands/merge.py index 927bb63..8232282 100644 --- a/becommands/merge.py +++ b/becommands/merge.py @@ -45,7 +45,7 @@ def execute(args, test=False): >>> a.load_comments() >>> mergeA = a.comment_from_shortname(":3") >>> mergeA.time = 3 - >>> print a.string(show_comments=True) + >>> print a.string(show_comments=True) # doctest: +ELLIPSIS ID : a Short name : a Severity : minor @@ -54,43 +54,43 @@ def execute(args, test=False): Target : Reporter : Creator : John Doe - Created : Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000) + Created : ... Bug A --------- Comment --------- Name: a:1 - From: wking - Date: Thu, 01 Jan 1970 00:00:01 +0000 + From: ... + Date: ... Testing --------- Comment --------- Name: a:2 - From: wking - Date: Thu, 01 Jan 1970 00:00:02 +0000 + From: ... + Date: ... Testing... --------- Comment --------- Name: a:3 - From: wking - Date: Thu, 01 Jan 1970 00:00:03 +0000 + From: ... + Date: ... Merged from bug b --------- Comment --------- Name: a:4 - From: wking - Date: Thu, 01 Jan 1970 00:00:01 +0000 + From: ... + Date: ... 1 2 --------- Comment --------- Name: a:5 - From: wking - Date: Thu, 01 Jan 1970 00:00:02 +0000 + From: ... + Date: ... 1 2 3 4 >>> b = bd.bug_from_shortname("b") >>> b.load_comments() >>> mergeB = b.comment_from_shortname(":3") >>> mergeB.time = 3 - >>> print b.string(show_comments=True) + >>> print b.string(show_comments=True) # doctest: +ELLIPSIS ID : b Short name : b Severity : minor @@ -99,24 +99,24 @@ def execute(args, test=False): Target : Reporter : Creator : Jane Doe - Created : Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000) + Created : ... Bug B --------- Comment --------- Name: b:1 - From: wking - Date: Thu, 01 Jan 1970 00:00:01 +0000 + From: ... + Date: ... 1 2 --------- Comment --------- Name: b:2 - From: wking - Date: Thu, 01 Jan 1970 00:00:02 +0000 + From: ... + Date: ... 1 2 3 4 --------- Comment --------- Name: b:3 - From: wking - Date: Thu, 01 Jan 1970 00:00:03 +0000 + From: ... + Date: ... Merged into bug a >>> print b.status diff --git a/becommands/show.py b/becommands/show.py index 7c48257..4b0078f 100644 --- a/becommands/show.py +++ b/becommands/show.py @@ -23,7 +23,7 @@ def execute(args, test=False): >>> import os >>> bd = bugdir.simple_bug_dir() >>> os.chdir(bd.root) - >>> execute (["a",], test=True) + >>> execute (["a",], test=True) # doctest: +ELLIPSIS ID : a Short name : a Severity : minor @@ -32,10 +32,10 @@ def execute(args, test=False): Target : Reporter : Creator : John Doe - Created : Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000) + Created : ... Bug A - >>> execute (["--xml", "a"], test=True) + >>> execute (["--xml", "a"], test=True) # doctest: +ELLIPSIS a a @@ -45,7 +45,7 @@ def execute(args, test=False): John Doe - Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000) + ... Bug A """ -- cgit