Add unit tests

This commit is contained in:
zandercymatics 2024-01-10 12:04:13 -07:00
parent cdf46044d7
commit 659fff322e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 18 additions and 14 deletions

View file

@ -2,7 +2,6 @@
import json
from django.test import TestCase, RequestFactory
from django.urls import reverse
from api.views import available
from registrar.forms.application_wizard import (
@ -92,7 +91,12 @@ class TestFormValidation(MockEppLib):
"Enter a domain using only letters, numbers, " "or hyphens (though we don't recommend using hyphens).",
),
# required
("", "Enter the .gov domain you want. Dont include “www” or “.gov.”"),
(
"",
"Enter the .gov domain you want. Dont include “www” or “.gov.”"
" For example, if you want www.city.gov, you would enter “city”"
" (without the quotes).",
),
# unavailable
(
"whitehouse.gov",
@ -143,8 +147,6 @@ class TestFormValidation(MockEppLib):
"underscores_forever",
"Enter a domain using only letters, numbers, " "or hyphens (though we don't recommend using hyphens).",
),
# required
("", "Enter the .gov domain you want. Dont include “www” or “.gov.”"),
# unavailable
(
"whitehouse.gov",