tests: add check for displaying done forms
This commit is contained in:
parent
13d7e82feb
commit
40c3f328e6
|
@ -298,9 +298,18 @@ def test_current_forms_cell_render(context):
|
|||
result = cell.render(context)
|
||||
assert 'http://127.0.0.1:8999/form-title/1/' in result
|
||||
assert 'http://127.0.0.1:8999/form-title/22/' in result
|
||||
assert not 'http://127.0.0.1:8999/form-title/8/' in result
|
||||
assert 'http://127.0.0.2:8999/form-title/1/' in result
|
||||
assert 'http://127.0.0.2:8999/form-title/22/' in result
|
||||
|
||||
# done forms
|
||||
cell.current_forms = False
|
||||
cell.done_forms = True
|
||||
cell.save()
|
||||
result = cell.render(context)
|
||||
assert not 'http://127.0.0.1:8999/form-title/1/' in result
|
||||
assert 'http://127.0.0.1:8999/form-title/8/' in result
|
||||
|
||||
@wcsctl_present
|
||||
def test_current_forms_cell_render_single_site(context):
|
||||
page = Page(title='xxx', slug='test_current_forms_cell_render', template_name='standard')
|
||||
|
|
Loading…
Reference in New Issue