mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 14:02:15 +00:00
12 lines
330 B
Python
12 lines
330 B
Python
import pytest
|
|
|
|
from pytest_django.asserts import assertFormError, assertRedirects, assertContains, assertNotContains
|
|
|
|
pytestmark = pytest.mark.django_db
|
|
|
|
|
|
def test_(admin_client):
|
|
url = reverse('add_qualification')
|
|
response = admin_client.post(url)
|
|
assertFormError(response, 'form', 'name', 'This field is required.')
|