update wcs tests (#10564)
This commit is contained in:
parent
2e1ed5a274
commit
d4033ffcd8
|
@ -252,8 +252,10 @@ def test_current_forms_cell_setup():
|
|||
cell = WcsCurrentFormsCell()
|
||||
form_class = cell.get_default_form_class()
|
||||
form = form_class()
|
||||
assert form.fields['wcs_site'].widget.choices == [
|
||||
('', 'All'), (u'default', u'test'), (u'other', u'test2')]
|
||||
choices = form.fields['wcs_site'].widget.choices
|
||||
assert ('', 'All') in choices
|
||||
assert (u'default', u'test') in choices
|
||||
assert (u'other', u'test2') in choices
|
||||
|
||||
try:
|
||||
# check there is not wcs_site field if there's a single one defined in
|
||||
|
|
Loading…
Reference in New Issue