From 950e122beaab0e7f752f924f37b11c84279c2d78 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Tue, 8 Aug 2017 11:16:58 -0300 Subject: [PATCH] =?UTF-8?q?Retira=20campos=20desnecess=C3=A1rios=20em=20te?= =?UTF-8?q?ste=20de=20autoria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/tests/test_materia.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sapl/materia/tests/test_materia.py b/sapl/materia/tests/test_materia.py index fc160b952..5366959d2 100644 --- a/sapl/materia/tests/test_materia.py +++ b/sapl/materia/tests/test_materia.py @@ -138,9 +138,7 @@ def test_autoria_submit(admin_client): kwargs={'pk': materia_principal.pk}), {'autor': autor.pk, 'primeiro_autor': True, - 'materia_id': materia_principal.pk, - 'data_relativa': '', - 'salvar': 'salvar'}, + 'materia_id': materia_principal.pk, }, follow=True) assert response.status_code == 200 @@ -324,8 +322,7 @@ def test_form_errors_autoria(admin_client): response = admin_client.post(reverse('sapl.materia:autoria_create', kwargs={'pk': materia_principal.pk}), {'materia_id': materia_principal.pk, - 'autor_id': '', - 'salvar': 'salvar'}, + 'autor_id': '', }, follow=True) assert (response.context_data['form'].errors['autor'] ==