From 9ad9bdd9363dedf50ab3fbe70375bd817f92512b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 15:55:33 -0700 Subject: Implement post rate limits, move to signed cookies Also improve the test harness a little Fixes #112 --- tests/users/views/test_domains.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/users/views') 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) -- cgit v1.2.3