summaryrefslogtreecommitdiffstats
path: root/tests/users
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-15 15:55:33 -0700
committerAndrew Godwin2022-12-15 15:55:33 -0700
commit9ad9bdd9363dedf50ab3fbe70375bd817f92512b (patch)
tree01cfc99d4755e6f85c7e2a09f513c9bec4eedb65 /tests/users
parent612ab4bcdf127adcff58466e96e48d62b6036b15 (diff)
downloadtakahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.gz
takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.tar.bz2
takahe-9ad9bdd9363dedf50ab3fbe70375bd817f92512b.zip
Implement post rate limits, move to signed cookies
Also improve the test harness a little Fixes #112
Diffstat (limited to 'tests/users')
-rw-r--r--tests/users/views/test_domains.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/users/views/test_domains.py b/tests/users/views/test_domains.py
index 13d4b11..5752125 100644
--- a/tests/users/views/test_domains.py
+++ b/tests/users/views/test_domains.py
@@ -31,10 +31,16 @@ INVALID_DOMAINS = [
@pytest.mark.parametrize("domain", VALID_DOMAINS)
def test_domain_validation_accepts_valid_domains(domain):
+ """
+ Tests that the domain validator works in positive cases
+ """
DomainValidator()(domain)
@pytest.mark.parametrize("domain", INVALID_DOMAINS)
def test_domain_validation_raises_exception_for_invalid_domains(domain):
+ """
+ Tests that the domain validator works in negative cases
+ """
with pytest.raises(ValidationError):
DomainValidator()(domain)