tests.pytest.test_autouse_faker_locale

TEST NOTES:

The following tests cover cases where a faker_session_locale fixture was not defined by the user, but an autouse faker_locale fixture was defined. In this setup, the plugin’s session level Faker instance will not be used, and each test will instead generate a new instance using the value of faker_locale. These new instances will be still seeded in accordance to the plugin’s seeding rules.

Module Contents

Functions

faker_locale()

faker_seed()

test_no_injection(_session_faker, faker)

test_inject_faker_seed(_session_faker, faker, faker_seed)

Attributes

_CHANGED_LOCALE

tests.pytest.test_autouse_faker_locale._CHANGED_LOCALE = ['it_IT']
tests.pytest.test_autouse_faker_locale.faker_locale()
tests.pytest.test_autouse_faker_locale.faker_seed()
tests.pytest.test_autouse_faker_locale.test_no_injection(_session_faker, faker)
tests.pytest.test_autouse_faker_locale.test_inject_faker_seed(_session_faker, faker, faker_seed)