|
|
|
@ -7,6 +7,7 @@ from sapl.parlamentares.models import Legislatura, Partido, SessaoLegislativa |
|
|
|
from sapl.sessao import forms |
|
|
|
from sapl.sessao.models import SessaoPlenaria, TipoSessaoPlenaria |
|
|
|
|
|
|
|
|
|
|
|
pytest.mark.django_db(transaction=False) |
|
|
|
def test_incluir_sessao_plenaria_submit(admin_client): |
|
|
|
legislatura = mommy.make(Legislatura) |
|
|
|
@ -25,8 +26,9 @@ def test_incluir_sessao_plenaria_submit(admin_client): |
|
|
|
|
|
|
|
assert response.status_code == 200 |
|
|
|
|
|
|
|
sessao = SessaoPlenaria.objects.first() |
|
|
|
assert sessao.tipo == tipo |
|
|
|
sessao_plenaria = SessaoPlenaria.objects.first() |
|
|
|
assert sessao_plenaria.tipo == tipo |
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db(transaction=False) |
|
|
|
def test_incluir_sessao_errors(admin_client): |
|
|
|
|