tests.pytest.session_overrides.session_locale.test_autouse_faker_locale

TEST NOTES:

The following tests cover cases where a faker_session_locale fixture was defined by the user as well as a user-defined faker_locale autouse fixture. In this setup, the value of faker_session_locale will be ignored, since the plugin’s session level Faker instance will not be used. 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.session_overrides.session_locale.test_autouse_faker_locale._CHANGED_LOCALE = ['it_IT']
tests.pytest.session_overrides.session_locale.test_autouse_faker_locale.faker_locale()
tests.pytest.session_overrides.session_locale.test_autouse_faker_locale.faker_seed()
tests.pytest.session_overrides.session_locale.test_autouse_faker_locale.test_no_injection(_session_faker, faker)
tests.pytest.session_overrides.session_locale.test_autouse_faker_locale.test_inject_faker_seed(_session_faker, faker, faker_seed)