tests.providers.test_lorem

Module Contents

Classes

TestLoremProvider

Test lorem provider methods

TestCsCz

Test cs_CZ lorem provider

TestAzAz

Test az_AZ lorem provider

TestFaIr

Test fa_IR lorem provider

TestBnBd

Test bn_BD lorem provider

TestDeDe

Test `de_DE` lorem provider

TestDeAt

Test `de_AT` lorem provider

TestNlBe

Test `nl_BE` lorem provider

class tests.providers.test_lorem.TestLoremProvider

Test lorem provider methods

custom_word_list = ['danish', 'cheesecake', 'sugar', 'lollipop', 'wafer', 'gummies', 'jelly', 'pie']
test_word_with_defaults(faker, num_samples)
test_word_with_custom_list(faker, num_samples)
test_words_with_zero_nb(faker, num_samples)
test_words_with_defaults(faker, num_samples)
test_words_with_custom_word_list(faker, num_samples)
test_words_with_unique_sampling(faker, num_samples)
test_sentence_no_words(faker, num_samples)
test_sentence_with_inexact_word_count(faker, num_samples)
test_sentence_with_exact_word_count(faker, num_samples)
test_sentence_with_custom_word_list(faker, num_samples)
test_sentences(faker, num_samples)
test_sentence_single_word(faker)
test_paragraph_no_sentences(faker, num_samples)
test_paragraph_with_inexact_sentence_count(faker, num_samples)
test_paragraph_with_exact_sentence_count(faker, num_samples)
test_paragraph_with_custom_word_list(faker, num_samples)
test_paragraphs(faker, num_samples)
test_text_with_less_than_four_characters(faker, num_samples)
test_text_with_valid_character_count(faker, num_samples, num_chars)
test_text_with_custom_word_list(faker, num_samples)
test_texts(faker, num_samples)
test_words_part_of_speech(faker, nb, part_of_speech)
test_words_invalid_part_of_speech(faker, nb, part_of_speech)
test_words_part_of_speech_ignored(faker, nb, part_of_speech)
class tests.providers.test_lorem.TestCsCz

Test cs_CZ lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)
class tests.providers.test_lorem.TestAzAz

Test az_AZ lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)
class tests.providers.test_lorem.TestFaIr

Test fa_IR lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)
class tests.providers.test_lorem.TestBnBd

Test bn_BD lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
class tests.providers.test_lorem.TestDeDe

Test `de_DE` lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)
class tests.providers.test_lorem.TestDeAt

Test `de_AT` lorem provider

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)
class tests.providers.test_lorem.TestNlBe

Test `nl_BE` lorem provider

Copied from the TestDeDe class, but with the word_list from the NlBeLoremProvider.

word_list
test_paragraph(faker, num_samples)
test_paragraphs(faker, num_samples)
test_sentence(faker, num_samples)
test_sentences(faker, num_samples)
test_text(faker, num_samples)
test_texts(faker, num_samples)
test_word(faker, num_samples)
test_words(faker, num_samples)