From 856159d8e5ceff5f678ab4d5a8ecb2ca6b972b0a Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 29 Mar 2020 03:16:08 +0200 Subject: Support newlines in the /topic command Fixes #728 --- _pytest/test_topic_command.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '_pytest') diff --git a/_pytest/test_topic_command.py b/_pytest/test_topic_command.py index 5224ab7..79a26d3 100644 --- a/_pytest/test_topic_command.py +++ b/_pytest/test_topic_command.py @@ -19,6 +19,13 @@ def test_parse_topic_with_text(): assert topic == 'some topic text' +def test_parse_topic_with_text_with_newline(): + channel_name, topic = parse_topic_command('/topic some topic text\nsecond line') + + assert channel_name is None + assert topic == 'some topic text\nsecond line' + + def test_parse_topic_with_delete(): channel_name, topic = parse_topic_command('/topic -delete') -- cgit