aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/comment.py')
-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