Re: [Mailman-Developers] Postorius test debugging problem : tests_forms.py

Feb. 28, 2015
4:22 a.m.
On 27 February 2015 at 20:39, Pranjal Yadav <godricglow@gmail.com> wrote:
The list that you pass in choices is a list of 'tuples' which has 2 elements in it. The first is the choice to be displayed in the 'dropdown' and second is its value.
So you have to do something like this:
self.domain_choices =
[('mailman.most-desirable.org','mailman.most-desirable.org')]
and then call the ListNew class like this:
form = ListNew(self.domain_choices, self.form_data)
Its not the correct way to run the individual test cases in django, it is little different from nose. You can run
$ tox -e py27-django1.7 -- postorius.test.test_forms:ListNewTest
-- thanks, Abhilash Raj
3672
Age (days ago)
3672
Last active (days ago)
0 comments
1 participants
participants (1)
-
Abhilash Raj