diff --git a/sapl/test_crud.py b/sapl/test_crud.py index 5b152d10a..49f46effa 100644 --- a/sapl/test_crud.py +++ b/sapl/test_crud.py @@ -59,3 +59,13 @@ def test_flux_list_create_detail(app): # on detail page assert 'Registro criado com sucesso!' in res assert_h1(res, stub_name) + + +def test_flux_detail_update_detail(app): + + stub_name = 'Comissão Stub' + stub = mommy.make(Comissao, nome=stub_name) + res = app.get('/comissoes/%s' % stub.id) + assert_h1(res, stub_name) + assert not res.forms + res = res.click('Editar Comissão') diff --git a/templates/comissoes/comissao_detail.html b/templates/comissoes/comissao_detail.html index db63bc5a5..29a66c670 100644 --- a/templates/comissoes/comissao_detail.html +++ b/templates/comissoes/comissao_detail.html @@ -2,6 +2,14 @@ {% load i18n crispy_forms_tags %} {% block base_content %} + + {# FIXME is this the best markup to use? #} + + TODO ... {% endblock %}