Beispiel #1
0
    def test_govuk_character_count_spellcheck_is_true(self, question):
        params = govuk_character_count(question)

        assert params["spellcheck"] is True
Beispiel #2
0
 def test_question_with_no_max_word_length_does_not_have_maxwords_in_params(self, question_without_word_count):
     assert "maxwords" not in govuk_character_count(question_without_word_count)
Beispiel #3
0
 def test_govuk_character_count(self, question, snapshot):
     assert govuk_character_count(question) == snapshot