pjoshi has proposed merging lp:~prakhar126/postorius/postorius into
lp:postorius.
Requested reviews:
Mailman Coders (mailman-coders)
For more details, see:
https://code.launchpad.net/~prakhar126/postorius/postorius/+merge/252422
Adding test cases for creating new list.
--
Your team Mailman Coders is requested to review the proposed merge of
lp:~prakhar126/postorius/postorius into lp:postorius.
=== modified file 'src/postorius/templates/postorius/user_tasks.html'
--- src/postorius/templates/postorius/user_tasks.html 2014-10-15 20:59:52 +0000
+++ src/postorius/templates/postorius/user_tasks.html 2015-03-10 12:00:51 +0000
@@ -4,5 +4,7 @@
{% block main %}
<h1>{% trans "To Do" %}</h1>
- <p>{% trans "There are no pending tasks at the present time." %}</p>
+ {% for tasks in memberships %}
+ <p> {% trans tasks %}</p>
+ {% endfor %}
{% endblock main %}
=== modified file 'src/postorius/tests/test_forms.py'
--- src/postorius/tests/test_forms.py 2015-02-09 14:35:44 +0000
+++ src/postorius/tests/test_forms.py 2015-03-10 12:00:51 +0000
@@ -49,3 +49,26 @@
'contact_address': '[email protected]',
})
self.assertFalse(form.is_valid())
+
+class ListNewTest(unittest.TestCase):
+
+ def test_form_fields_list(self):
+ form = ListNew({
+ 'listname': 'xyz'
+ 'mail_host': 'mailman.most-desirable.org'
+ 'list_owner': '[email protected]'
+ 'advertise': 'abcd'
+ 'description': 'The Most Desirable organization'
+ })
+ self.assertTrue(form.is_valid)
+
+ def test_form_fields_list_invalid(self):
+ form = ListNew({
+ 'listname': ''xy#z'
+ 'mail_host': 'mailman.most-desirable.org'
+ 'list_owner': 'mailman.most-desirable.org'
+ 'advertise': 'abcd'
+ 'description': 'The Most Desirable organization'
+ })
+ self.assertFalse(form.is_valid)
+
\ No newline at end of file
_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders