From c23519b5262fd264ed0f9e5bc23b901ed7eee632 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 31 Aug 2016 18:31:52 +0200 Subject: Use a multiline value and update NEWS --- src/mailman/docs/NEWS.rst | 2 ++ src/mailman/rest/tests/test_listconf.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index a6a2e4522..49f309770 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -88,6 +88,8 @@ Bugs * Email address validation is now more compliant with RFC 5321. (Closes #266) * A mailing list's ``description`` must not contain newlines. Given by Aurélien Bompard. (Closes: #273) + * Allow MailingList.info to be set using the REST API. Given by Aurélien + Bompard. Configuration ------------- diff --git a/src/mailman/rest/tests/test_listconf.py b/src/mailman/rest/tests/test_listconf.py index 78e94b95e..3260d6afb 100644 --- a/src/mailman/rest/tests/test_listconf.py +++ b/src/mailman/rest/tests/test_listconf.py @@ -455,9 +455,9 @@ class TestConfiguration(unittest.TestCase): with transaction(): resource, response = call_api( 'http://localhost:9001/3.0/lists/ant.example.com/config', - dict(info='testvalue'), + dict(info='multiline\ntest\nvalue'), 'PATCH') - self.assertEqual(self._mlist.info, 'testvalue') + self.assertEqual(self._mlist.info, 'multiline\ntest\nvalue') # Now empty it with transaction(): resource, response = call_api( -- cgit v1.3.1