aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 19:58:30 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-17 19:58:30 +0000
commite77fb4d6b952a69b692155c20f4ff248266944a1 (patch)
tree4a1da0610afe2efb1edc7c91970d3912a7b0a6b0 /becommands
parent336a51ada68f4d30684bed29df155ec73fbd7375 (diff)
downloadbugseverywhere-e77fb4d6b952a69b692155c20f4ff248266944a1.tar.gz
Added tests for missing $EDITOR
Modified bug reports: ecc: no tests for missing $EDITOR status: open -> closed
Diffstat (limited to 'becommands')
-rw-r--r--becommands/comment.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 6a7998c..c53fd87 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -33,6 +33,10 @@ def execute(args):
True
>>> comment.in_reply_to is None
True
+ >>> del os.environ["EDITOR"]
+ >>> execute(["b"])
+ Traceback (most recent call last):
+ UserError: No comment supplied, and EDITOR not specified.
>>> os.environ["EDITOR"] = "echo 'I like cheese' > "
>>> execute(["b"])
>>> dir.get_bug("b").list_comments()[0].body