Skip to content

back to OpenHands summary

OpenHands: mimesis

Pytest Summary for test tests

status count
passed 1127
failed 4047
error 771
total 5945
collected 5945

Failed pytests:

test_address.py::test_dd_to_dms[no-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[no-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pl-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[pl-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[ru-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[ru-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[zh-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[zh-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-ch-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[de-ch-fn_args1-110\xba25'27.505"W]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[hr-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[hr-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[en-ca-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[en-ca-fn_args1-110\xba25'27.505"W]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[is-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[is-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[cs-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[cs-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[tr-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[tr-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[da-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[da-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[fa-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[fa-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[uk-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[uk-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[nl-be-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[nl-be-fn_args1-110\xba25'27.505"W]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[nl-be-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[nl-be-fn_args0-86\xba45'40.698"S]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[hu-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[hu-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[kk-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[kk-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-at-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[de-at-fn_args1-110\xba25'27.505"W]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[es-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[es-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pt-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[pt-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[ko-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[ko-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[sv-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[sv-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[ko-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[ko-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[no-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[no-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[es-mx-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[es-mx-fn_args1-110\xba25'27.505"W]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[fr-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[fr-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-ch-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[de-ch-fn_args0-86\xba45'40.698"S]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[sv-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[sv-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[fa-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[fa-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[el-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[el-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[es-mx-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[es-mx-fn_args0-86\xba45'40.698"S]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[en-gb-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[en-gb-fn_args0-86\xba45'40.698"S]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[kk-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[kk-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pl-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[pl-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[et-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[et-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-at-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[de-at-fn_args0-86\xba45'40.698"S]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[nl-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[nl-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[fi-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[fi-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[nl-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[nl-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[ja-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[ja-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[en-gb-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[en-gb-fn_args1-110\xba25'27.505"W]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[el-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[el-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[ru-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[ru-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[sk-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[sk-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[da-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[da-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[de-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[hr-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[hr-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pt-br-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[pt-br-fn_args1-110\xba25'27.505"W]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[it-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[it-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[tr-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[tr-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[en-au-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[en-au-fn_args0-86\xba45'40.698"S]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[ja-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[ja-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[hu-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[hu-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pt-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[pt-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[en-ca-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[en-ca-fn_args0-86\xba45'40.698"S]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[fi-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[fi-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[sk-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[sk-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[fr-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[fr-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[zh-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[zh-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[it-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[it-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[et-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[et-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[is-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[is-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[pt-br-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[pt-br-fn_args0-86\xba45'40.698"S]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[en-au-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[en-au-fn_args1-110\xba25'27.505"W]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::test_dd_to_dms[cs-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[cs-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[es-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[es-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[uk-fn_args1-110\xba25'27.505"W]

test_address.py::test_dd_to_dms[uk-fn_args1-110\xba25'27.505"W]
address = 
fn_args = [-110.424307, 'lg'], dms = '110º25\'27.505"W'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '110º25\'27.505"W'
E        +  where None = (*[-110.424307, 'lg'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::test_dd_to_dms[de-fn_args0-86\xba45'40.698"S]

test_address.py::test_dd_to_dms[de-fn_args0-86\xba45'40.698"S]
address = 
fn_args = [-86.761305, 'lt'], dms = '86º45\'40.698"S'

    @pytest.mark.parametrize(
        "fn_args, dms",
        [
            ([-86.761305, "lt"], "86º45'40.698\"S"),
            ([-110.424307, "lg"], "110º25'27.505\"W"),
        ],
    )
    def test_dd_to_dms(address, fn_args, dms):
>       assert address._dd_to_dms(*fn_args) == dms
E       assert None == '86º45\'40.698"S'
E        +  where None = (*[-86.761305, 'lt'])
E        +    where  = ._dd_to_dms

tests/test_providers/test_address.py:273: AssertionError

test_address.py::TestAddress::test_state[pt-True-abbr]

test_address.py::TestAddress::test_state[pt-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['PT-01', 'PT-02', 'PT-03', 'PT-04', 'PT-05', 'PT-06', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['JP-01', 'JP-02', 'JP-03', 'JP-04', 'JP-05', 'JP-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[no-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[no-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NO-01', 'NO-02', 'NO-03', 'NO-04', 'NO-05', 'NO-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[no-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[no-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NO-01', 'NO-02', 'NO-03', 'NO-04', 'NO-05', 'NO-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[kk]

test_address.py::TestAddress::test_city[kk]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Абай', 'Алматы', 'Алуа', 'Алға', 'Арал', 'Арыс', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[sk-province]

test_address.py::TestAddress::test_state_aliases[sk-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Banskobystrický', 'Bratislavský', 'Košický', 'Nitriansky', 'Prešovský', 'Trenčiansky', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[de-at]

test_address.py::TestAddress::test_street_name[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['RU-AD', 'RU-AL', 'RU-ALT', 'RU-AMU', 'RU-ARK', 'RU-AST', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['HU-BA', 'HU-BE', 'HU-BK', 'HU-BU', 'HU-BZ', 'HU-CS', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[nl-be-True-abbr]

test_address.py::TestAddress::test_state[nl-be-True-abbr]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[de]

test_address.py::TestAddress::test_street_suffix[de]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Allee', 'Straße']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-region-True]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[kk]

test_address.py::TestAddress::test_street_suffix[kk]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['орамы', 'даңғылы', 'желекжолы', 'көшесі']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state[pl-False-name]

test_address.py::TestAddress::test_state[pl-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Dolnośląskie', 'Kujawsko-pomorskie', 'Lubelskie', 'Lubuskie', 'Mazowieckie', 'Małopolskie', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_zip_code[ja]

test_address.py::TestAddress::test_zip_code[ja]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[da-province]

test_address.py::TestAddress::test_state_aliases[da-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hovedstaden', 'Midtjylland', 'Nordjylland', 'Sjælland', 'Syddanmark']

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[ko]

test_address.py::TestAddress::test_street_suffix[ko]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['길', '내로', '대로', '로']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['TR-01', 'TR-02', 'TR-03', 'TR-04', 'TR-05', 'TR-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[nl-be]

test_address.py::TestAddress::test_country_for_current_locale[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['JP-01', 'JP-02', 'JP-03', 'JP-04', 'JP-05', 'JP-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country[is]

test_address.py::TestAddress::test_country[is]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Albanía', 'Alsír', 'Andorra', 'Angvilla', 'Angóla', ...]
E        +  where ['Afganistan', 'Albanía', 'Alsír', 'Andorra', 'Angvilla', 'Angóla', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_zip_code[nl-be]

test_address.py::TestAddress::test_zip_code[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[et-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[et-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['VA', 'VD', 'VÕ', 'IV', 'JG', 'LV', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[uk-province]

test_address.py::TestAddress::test_state_aliases[uk-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Одеська область', 'Дніпропетровська область', 'Чернігівська область', 'Харківська область', 'Житомирська область', 'Полтавська область', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_address[fr]

test_address.py::TestAddress::test_address[fr]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_city[es-mx]

test_address.py::TestAddress::test_city[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fr-region]

test_address.py::TestAddress::test_state_aliases[fr-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['서울', '부산', '대구', '인천', '광주', '대전', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[nl-region]

test_address.py::TestAddress::test_state_aliases[nl-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Groningen', 'Friesland', 'Drenthe', 'Overijssel', 'Flevoland', 'Gelderland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[is]

test_address.py::TestAddress::test_city[is]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Akranes', 'Akureyri', 'Bakkafjörður', 'Bakkagerði', 'Bifröst', 'Blönduós', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state[es-False-name]

test_address.py::TestAddress::test_state[es-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Andalucía', 'Aragón', 'Principiado de Asturias', 'Canarias', 'Cantabria', 'Castilla y León', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[ru-False-name]

test_address.py::TestAddress::test_state[ru-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Адыгея', 'Алтай', 'Башкортостан', 'Бурятия', 'Дагестан', 'Ингушетия', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[nl-prefecture]

test_address.py::TestAddress::test_state_aliases[nl-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Groningen', 'Friesland', 'Drenthe', 'Overijssel', 'Flevoland', 'Gelderland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[en-gb]

test_address.py::TestAddress::test_postal_code[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[tr-federal_subject]

test_address.py::TestAddress::test_state_aliases[tr-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Aksaray', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[hu-province]

test_address.py::TestAddress::test_state_aliases[hu-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baranya', 'Borsod-Abaúj-Zemplén', 'Bács-Kiskun', 'Békés', 'Capital City of Budapest', 'Csongrád', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[tr]

test_address.py::TestAddress::test_postal_code[tr]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FR-ARA', 'FR-BFC', 'FR-BRE', 'FR-CVL', 'FR-COR', 'FR-GES', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-prefecture-True]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[ru-True-abbr]

test_address.py::TestAddress::test_state[ru-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['RU-AD', 'RU-AL', 'RU-ALT', 'RU-AMU', 'RU-ARK', 'RU-AST', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_zip_code[no]

test_address.py::TestAddress::test_zip_code[no]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['Z', 'A', 'B', 'E', 'С', 'D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[zh-False-name]

test_address.py::TestAddress::test_state[zh-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['北京市', '天津市', '上海市', '重庆市', '河北省', '山西省', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[no-federal_subject]

test_address.py::TestAddress::test_state_aliases[no-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Akershus', 'Aust-Agder', 'Buskerud', 'Finnmark', 'Hedmark', 'Hordaland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country[hu]

test_address.py::TestAddress::test_country[hu]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganisztán', 'Albánia', 'Algéria', 'Amerikai', 'Amerikai', 'Amerikai', ...]
E        +  where ['Afganisztán', 'Albánia', 'Algéria', 'Amerikai', 'Amerikai', 'Amerikai', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_country[no]

test_address.py::TestAddress::test_country[no]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albania', 'Algerie', 'Amerikansk Samoa', 'Andorra', 'Angola', ...]
E        +  where ['Afghanistan', 'Albania', 'Algerie', 'Amerikansk Samoa', 'Andorra', 'Angola', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_continent[it]

test_address.py::TestAddress::test_continent[it]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Africa', 'Antartide', 'Europa', 'Asia', 'Nordamerica', 'Oceania', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases[da-region]

test_address.py::TestAddress::test_state_aliases[da-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hovedstaden', 'Midtjylland', 'Nordjylland', 'Sjælland', 'Syddanmark']

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[en-ca]

test_address.py::TestAddress::test_city[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FR-ARA', 'FR-BFC', 'FR-BRE', 'FR-CVL', 'FR-COR', 'FR-GES', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[de-federal_subject]

test_address.py::TestAddress::test_state_aliases[de-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baden-Württemberg', 'Bayern', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[is-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[is-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['IS-1', 'IS-2', 'IS-3', 'IS-4', 'IS-5', 'IS-6', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[nl-False-name]

test_address.py::TestAddress::test_state[nl-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Groningen', 'Friesland', 'Drenthe', 'Overijssel', 'Flevoland', 'Gelderland', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_address[hr]

test_address.py::TestAddress::test_address[hr]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country[nl]

test_address.py::TestAddress::test_country[nl]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albanië', 'Algerije', 'Amerikaans-Samoa', 'Amerikaanse Maagdeneilanden', 'Andorra', ...]
E        +  where ['Afghanistan', 'Albanië', 'Algerije', 'Amerikaans-Samoa', 'Amerikaanse Maagdeneilanden', 'Andorra', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_city[de-at]

test_address.py::TestAddress::test_city[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[it-province]

test_address.py::TestAddress::test_state_aliases[it-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[es-mx]

test_address.py::TestAddress::test_postal_code[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[ja-province]

test_address.py::TestAddress::test_state_aliases[ja-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北海道', '青森県', '岩手県', '宮城県', '秋田県', '山形県', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_address[ru]

test_address.py::TestAddress::test_address[ru]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state[es-mx-False-name]

test_address.py::TestAddress::test_state[es-mx-False-name]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[cs]

test_address.py::TestAddress::test_continent[cs]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Amerika', 'Antarktida', 'Asie', 'Austrálie', 'Evropa', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_continent[nl]

test_address.py::TestAddress::test_continent[nl]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarctica', 'Australië', 'Azië', 'Europa', 'Noord-Amerika', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_street_suffix[en-gb]

test_address.py::TestAddress::test_street_suffix[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[ko]

test_address.py::TestAddress::test_continent[ko]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['남극', '남아메리카', '북아메리카', '아시아', '아프리카', '오세아니아', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_postal_code[sv]

test_address.py::TestAddress::test_postal_code[sv]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^(s-|S-){0,1}[0-9]{3}\\s?[0-9]{2}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state[is-False-name]

test_address.py::TestAddress::test_state[is-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Austurland', 'Höfuðborgarsvæði', 'Norðurland eystra', 'Norðurland vestra', 'Suðurland', 'Suðurnes', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[is-region]

test_address.py::TestAddress::test_state_aliases[is-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Austurland', 'Höfuðborgarsvæði', 'Norðurland eystra', 'Norðurland vestra', 'Suðurland', 'Suðurnes', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[hr-True-abbr]

test_address.py::TestAddress::test_state[hr-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['BBŽ', 'BPŽ', 'DN', 'IS', 'KA', 'KZ', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_country[sv]

test_address.py::TestAddress::test_country[sv]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albanien', 'Algeriet', 'Amerikanska Jungfruöarna', 'Amerikanska Samoa', 'Andorra', ...]
E        +  where ['Afghanistan', 'Albanien', 'Algeriet', 'Amerikanska Jungfruöarna', 'Amerikanska Samoa', 'Andorra', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases[sv-province]

test_address.py::TestAddress::test_state_aliases[sv-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ångermanland', 'Blekinge', 'Bohuslän', 'Dalarna', 'Dalsland', 'Gotland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[da-federal_subject]

test_address.py::TestAddress::test_state_aliases[da-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hovedstaden', 'Midtjylland', 'Nordjylland', 'Sjælland', 'Syddanmark']

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[es-mx]

test_address.py::TestAddress::test_zip_code[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[no-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[no-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NO-01', 'NO-02', 'NO-03', 'NO-04', 'NO-05', 'NO-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[es-province]

test_address.py::TestAddress::test_state_aliases[es-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Andalucía', 'Aragón', 'Principiado de Asturias', 'Canarias', 'Cantabria', 'Castilla y León', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[en-au-True-abbr]

test_address.py::TestAddress::test_state[en-au-True-abbr]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[is]

test_address.py::TestAddress::test_address[is]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NL-DR', 'NL-FL', 'NL-FR', 'NL-GE', 'NL-GR', 'NL-LI', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country[kk]

test_address.py::TestAddress::test_country[kk]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Абхазия', 'Аландтар', 'Албания', 'Алжир', 'Ангилья', 'Ангола', ...]
E        +  where ['Абхазия', 'Аландтар', 'Албания', 'Алжир', 'Ангилья', 'Ангола', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases[ru-region]

test_address.py::TestAddress::test_state_aliases[ru-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Адыгея', 'Алтай', 'Башкортостан', 'Бурятия', 'Дагестан', 'Ингушетия', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[nl-be]

test_address.py::TestAddress::test_city[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[da]

test_address.py::TestAddress::test_address[da]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_postal_code[nl]

test_address.py::TestAddress::test_postal_code[nl]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[1-9][0-9]{3}\\s?[a-zA-Z]{2}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_street_name[cs]

test_address.py::TestAddress::test_street_name[cs]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['A. Bunzla', 'A. Jiráska', 'A. Kašpara', 'A. Sedláčka', 'Abig. Horákové', 'Abigail Horákové', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_zip_code[de]

test_address.py::TestAddress::test_zip_code[de]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SV-AH', 'SV-CA', 'SV-CH', 'SV-CU', 'SV-LI', 'SV-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[de-province]

test_address.py::TestAddress::test_state_aliases[de-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baden-Württemberg', 'Bayern', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[en-ca-True-abbr]

test_address.py::TestAddress::test_state[en-ca-True-abbr]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[de-ch]

test_address.py::TestAddress::test_zip_code[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[de-prefecture]

test_address.py::TestAddress::test_state_aliases[de-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baden-Württemberg', 'Bayern', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[de-at-federal_subject]

test_address.py::TestAddress::test_state_aliases[de-at-federal_subject]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[cs]

test_address.py::TestAddress::test_zip_code[cs]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[en-au-federal_subject]

test_address.py::TestAddress::test_state_aliases[en-au-federal_subject]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['JP-01', 'JP-02', 'JP-03', 'JP-04', 'JP-05', 'JP-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_postal_code[pt-br]

test_address.py::TestAddress::test_postal_code[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FR-ARA', 'FR-BFC', 'FR-BRE', 'FR-CVL', 'FR-COR', 'FR-GES', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[fi-prefecture]

test_address.py::TestAddress::test_state_aliases[fi-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ahvenanmaa', 'Etelä-Karjala', 'Etelä-Pohjanmaa', 'Etelä-Savo', 'Kainuu', 'Kanta-Häme', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[is]

test_address.py::TestAddress::test_postal_code[is]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{3}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_postal_code[sk]

test_address.py::TestAddress::test_postal_code[sk]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '\\d{3}[ ]?\\d{2}', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_continent[uk]

test_address.py::TestAddress::test_continent[uk]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Австралія', 'Антарктида', 'Африка', 'Євразія', 'Південна Америка', 'Північна Америка']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_postal_code[cs]

test_address.py::TestAddress::test_postal_code[cs]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '\\d{3}[ ]?\\d{2}', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_city[de]

test_address.py::TestAddress::test_city[de]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Aach', 'Aachen', 'Aalen', 'Abenberg', 'Abensberg', 'Achern', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_city[it]

test_address.py::TestAddress::test_city[it]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Acerra', 'Acireale', 'Afragola', 'Agrigento', 'Alessandria', 'Altamura', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[ko]

test_address.py::TestAddress::test_country_for_current_locale[ko]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases[zh-federal_subject]

test_address.py::TestAddress::test_state_aliases[zh-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北京市', '天津市', '上海市', '重庆市', '河北省', '山西省', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_str[en-au]

test_address.py::TestAddress::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[el]

test_address.py::TestAddress::test_street_suffix[el]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Λεωφόρος', 'Οδός', 'Πάρκο', 'Πλατεία']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[fr]

test_address.py::TestAddress::test_country_for_current_locale[fr]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_country_for_current_locale[de-at]

test_address.py::TestAddress::test_country_for_current_locale[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[it-prefecture]

test_address.py::TestAddress::test_state_aliases[it-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-region-True]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[zh]

test_address.py::TestAddress::test_postal_code[zh]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{6}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_country_for_current_locale[zh]

test_address.py::TestAddress::test_country_for_current_locale[zh]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_street_suffix[uk]

test_address.py::TestAddress::test_street_suffix[uk]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Аллея', 'вул.']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases[ru-province]

test_address.py::TestAddress::test_state_aliases[ru-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Адыгея', 'Алтай', 'Башкортостан', 'Бурятия', 'Дагестан', 'Ингушетия', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[sk-region]

test_address.py::TestAddress::test_state_aliases[sk-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Banskobystrický', 'Bratislavský', 'Košický', 'Nitriansky', 'Prešovský', 'Trenčiansky', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[pt]

test_address.py::TestAddress::test_zip_code[pt]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state[pt-br-False-name]

test_address.py::TestAddress::test_state[pt-br-False-name]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['HU-BA', 'HU-BE', 'HU-BK', 'HU-BU', 'HU-BZ', 'HU-CS', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[is-True-abbr]

test_address.py::TestAddress::test_state[is-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['IS-1', 'IS-2', 'IS-3', 'IS-4', 'IS-5', 'IS-6', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[kk-prefecture]

test_address.py::TestAddress::test_state_aliases[kk-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Астана', 'Алматы', 'Алматы облысы', 'Атырау облысы', 'Ақмола облысы', 'Ақтөбе облысы', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country[de]

test_address.py::TestAddress::test_country[de]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albanien', 'Algerien', 'Amerikanisch-Ozeanien', 'Amerikanisch-Samoa', 'Amerikanische Jungferninseln', ...]
E        +  where ['Afghanistan', 'Albanien', 'Algerien', 'Amerikanisch-Ozeanien', 'Amerikanisch-Samoa', 'Amerikanische Jungferninseln', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state[pt-False-name]

test_address.py::TestAddress::test_state[pt-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Aveiro', 'Beja', 'Braga', 'Bragança', 'Castelo Branco', 'Coimbra', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_city[ko]

test_address.py::TestAddress::test_city[ko]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['가평군', '강남구', '강동구', '강릉시', '강북구', '강서구', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state[ja-True-abbr]

test_address.py::TestAddress::test_state[ja-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['JP-01', 'JP-02', 'JP-03', 'JP-04', 'JP-05', 'JP-06', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[de-False-name]

test_address.py::TestAddress::test_state[de-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Baden-Württemberg', 'Bayern', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['CZ-JC', 'CZ-JM', 'CZ-KA', 'CZ-KR', 'CZ-LI', 'CZ-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_zip_code[en-ca]

test_address.py::TestAddress::test_zip_code[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['RU-AD', 'RU-AL', 'RU-ALT', 'RU-AMU', 'RU-ARK', 'RU-AST', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[de-ch]

test_address.py::TestAddress::test_street_name[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['京', '津', '沪', '渝', '冀', '晋', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[et]

test_address.py::TestAddress::test_street_name[et]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Aarde', 'Aasa', 'Aate', 'Abaja', 'Abaja põik', 'Abara', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases[es-mx-prefecture]

test_address.py::TestAddress::test_state_aliases[es-mx-prefecture]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[hu]

test_address.py::TestAddress::test_postal_code[hu]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{4}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['PT-01', 'PT-02', 'PT-03', 'PT-04', 'PT-05', 'PT-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[ru]

test_address.py::TestAddress::test_city[ru]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Абаза', 'Абакан', 'Абдулино', 'Абинск', 'Агидель', 'Агрыз', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[es-mx-province]

test_address.py::TestAddress::test_state_aliases[es-mx-province]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SK-BC', 'SK-BL', 'SK-KI', 'SK-NI', 'SK-PV', 'SK-TA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[hu]

test_address.py::TestAddress::test_city[hu]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Aba', 'Abaújszántó', 'Abony', 'Abádszalók', 'Adony', 'Ajak', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[kk-region]

test_address.py::TestAddress::test_state_aliases[kk-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Астана', 'Алматы', 'Алматы облысы', 'Атырау облысы', 'Ақмола облысы', 'Ақтөбе облысы', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-federal_subject-True]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[hu]

test_address.py::TestAddress::test_street_suffix[hu]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['köz', 'utca', 'út', 'útja']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-region-True]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[sk]

test_address.py::TestAddress::test_zip_code[sk]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[pt-province]

test_address.py::TestAddress::test_state_aliases[pt-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Aveiro', 'Beja', 'Braga', 'Bragança', 'Castelo Branco', 'Coimbra', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[en-au]

test_address.py::TestAddress::test_city[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[hr-federal_subject]

test_address.py::TestAddress::test_state_aliases[hr-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Bjelovarsko-bilogorska', 'Brodsko-posavska', 'Dubrovačko-neretvanska', 'Grad Zagreb', 'Istarska', 'Karlovačka', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[fa-federal_subject]

test_address.py::TestAddress::test_state_aliases[fa-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['آذربایجان شرقی', ' آذربایجان غربی', 'اردبیل', 'اصفهان', 'البرز', ' ایلام', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['CZ-JC', 'CZ-JM', 'CZ-KA', 'CZ-KR', 'CZ-LI', 'CZ-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-province-True]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_city[pl]

test_address.py::TestAddress::test_city[pl]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Aleksandrów Kujawski', 'Aleksandrów Łódzki', 'Alwernia', 'Andrychów', 'Annopol', 'Augustów', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_country[ru]

test_address.py::TestAddress::test_country[ru]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Австралия', 'Австрия', 'Азербайджан', 'Аландские о-ва', 'Албания', 'Алжир', ...]
E        +  where ['Австралия', 'Австрия', 'Азербайджан', 'Аландские о-ва', 'Албания', 'Алжир', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_country[en-ca]

test_address.py::TestAddress::test_country[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[en-gb]

test_address.py::TestAddress::test_continent[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-region-True]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fa-province]

test_address.py::TestAddress::test_state_aliases[fa-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['آذربایجان شرقی', ' آذربایجان غربی', 'اردبیل', 'اصفهان', 'البرز', ' ایلام', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[fa]

test_address.py::TestAddress::test_street_name[fa]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['خرمشهر', 'آیت\u200cاله کاشانی', 'فاطمی', 'قدس', 'سباری', 'مالک اشتر', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases[pt-br-prefecture]

test_address.py::TestAddress::test_state_aliases[pt-br-prefecture]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[pl]

test_address.py::TestAddress::test_postal_code[pl]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '\\d{2}-\\d{3}', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state[kk-True-abbr]

test_address.py::TestAddress::test_state[kk-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Z', 'A', 'B', 'E', 'С', 'D', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_street_suffix[is]

test_address.py::TestAddress::test_street_suffix[is]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['ás', 'bakki', 'barð', 'baugur', 'berg', 'borg', ...]

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country[nl-be]

test_address.py::TestAddress::test_country[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[es]

test_address.py::TestAddress::test_street_suffix[es]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Calle', 'Avenida']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_city[fi]

test_address.py::TestAddress::test_city[fi]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Akaa', 'Alajärvi', 'Alavus', 'Espoo', 'Forssa', 'Haapajärvi', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FI-01', 'FI-02', 'FI-03', 'FI-04', 'FI-05', 'FI-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[el-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[el-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['GR-A', 'GR-I', 'GR-G', 'GR-C', 'GR-F', 'GR-D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[fa-False-name]

test_address.py::TestAddress::test_state[fa-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['آذربایجان شرقی', ' آذربایجان غربی', 'اردبیل', 'اصفهان', 'البرز', ' ایلام', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_zip_code[pt-br]

test_address.py::TestAddress::test_zip_code[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[ja-prefecture]

test_address.py::TestAddress::test_state_aliases[ja-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北海道', '青森県', '岩手県', '宮城県', '秋田県', '山形県', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_str[en-ca]

test_address.py::TestAddress::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_city[sk]

test_address.py::TestAddress::test_city[sk]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Banská Bystrica', 'Banská Štiavnica', 'Bardejov', 'Bojnice', 'Bratislava', 'Brezno', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[ru-federal_subject]

test_address.py::TestAddress::test_state_aliases[ru-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Адыгея', 'Алтай', 'Башкортостан', 'Бурятия', 'Дагестан', 'Ингушетия', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[el-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[el-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['GR-A', 'GR-I', 'GR-G', 'GR-C', 'GR-F', 'GR-D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_code[CountryCode.A3-3]

test_address.py::TestAddress::test_country_code[CountryCode.A3-3]
self = 
_address = 
code = , length = 3

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
>           assert iso in COUNTRY_CODES[code.value]
E           AssertionError: assert None in ['AND', 'ARE', 'AFG', 'ATG', 'AIA', 'ALB', ...]

tests/test_providers/test_address.py:154: AssertionError

test_address.py::TestAddress::test_street_suffix[fi]

test_address.py::TestAddress::test_street_suffix[fi]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['katu']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[pt-br]

test_address.py::TestAddress::test_country_for_current_locale[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[ko]

test_address.py::TestAddress::test_zip_code[ko]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['TR-01', 'TR-02', 'TR-03', 'TR-04', 'TR-05', 'TR-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_continent[ja]

test_address.py::TestAddress::test_continent[ja]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['アジア', 'アフリカ', 'オーストラリア', 'ヨーロッパ', '北アメリカ', '南アメリカ', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['BBŽ', 'BPŽ', 'DN', 'IS', 'KA', 'KZ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[el]

test_address.py::TestAddress::test_country_for_current_locale[el]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-province-True]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fa-prefecture]

test_address.py::TestAddress::test_state_aliases[fa-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['آذربایجان شرقی', ' آذربایجان غربی', 'اردبیل', 'اصفهان', 'البرز', ' ایلام', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[nl-federal_subject]

test_address.py::TestAddress::test_state_aliases[nl-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Groningen', 'Friesland', 'Drenthe', 'Overijssel', 'Flevoland', 'Gelderland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[de-at-province]

test_address.py::TestAddress::test_state_aliases[de-at-province]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[et-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[et-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['VA', 'VD', 'VÕ', 'IV', 'JG', 'LV', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[cs-prefecture]

test_address.py::TestAddress::test_state_aliases[cs-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hlavní město', 'Jihomoravský', 'Jihočeský', 'Karlovarský', 'Kraj Vysočina', 'Královéhradecký', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[cs-federal_subject]

test_address.py::TestAddress::test_state_aliases[cs-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hlavní město', 'Jihomoravský', 'Jihočeský', 'Karlovarský', 'Kraj Vysočina', 'Královéhradecký', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[hu]

test_address.py::TestAddress::test_street_name[hu]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['25.', 'Abonyi lajos', 'Ady', 'Ady endre', 'Akácfa', 'Akácos', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_country[ko]

test_address.py::TestAddress::test_country[ko]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['가나', '가봉', '가이아나', '감비아', '과테말라', '그레나다', ...]
E        +  where ['가나', '가봉', '가이아나', '감비아', '과테말라', '그레나다', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_name[nl-be]

test_address.py::TestAddress::test_street_name[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['ES-AN', 'ES-AR', 'ES-AS', 'ES-CN', 'ES-CB', 'ES-CL', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[ru-prefecture]

test_address.py::TestAddress::test_state_aliases[ru-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Адыгея', 'Алтай', 'Башкортостан', 'Бурятия', 'Дагестан', 'Ингушетия', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[nl-True-abbr]

test_address.py::TestAddress::test_state[nl-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['NL-DR', 'NL-FL', 'NL-FR', 'NL-GE', 'NL-GR', 'NL-LI', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[de-True-abbr]

test_address.py::TestAddress::test_state[de-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['DE-BB', 'DE-BE', 'DE-BW', 'DE-BY', 'DE-HB', 'DE-HE', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-federal_subject-True]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SV-AH', 'SV-CA', 'SV-CH', 'SV-CU', 'SV-LI', 'SV-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_continent[pt]

test_address.py::TestAddress::test_continent[pt]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['América', 'Antártida', 'Europa', 'Oceania', 'África', 'Ásia']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[es]

test_address.py::TestAddress::test_country_for_current_locale[es]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_address[sk]

test_address.py::TestAddress::test_address[sk]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_address[ko]

test_address.py::TestAddress::test_address[ko]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_street_name[sk]

test_address.py::TestAddress::test_street_name[sk]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Adámiho ulica', 'Agátová ulica', 'Albrechtova ulica', 'Albánska ulica', 'Alejová ulica', 'Alešova ulica', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_street_suffix[pt]

test_address.py::TestAddress::test_street_suffix[pt]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Rua']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['UA-71', 'UA-74', 'UA-77', 'UA-12', 'UA-14', 'UA-26', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[tr-province]

test_address.py::TestAddress::test_state_aliases[tr-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Aksaray', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[en-gb]

test_address.py::TestAddress::test_city[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_for_current_locale[en-gb]

test_address.py::TestAddress::test_country_for_current_locale[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[nl]

test_address.py::TestAddress::test_address[nl]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country[de-ch]

test_address.py::TestAddress::test_country[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[es]

test_address.py::TestAddress::test_zip_code[es]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_street_name[kk]

test_address.py::TestAddress::test_street_name[kk]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['8 наурыз', 'Іле', 'Іле  жолы', 'Ілияс Есенберлин', 'Ілияс Жансүгірұлы', 'Абай', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_coordinates

test_address.py::TestAddress::test_coordinates
self = 
_address = 

    def test_coordinates(self, _address):
        result = _address.coordinates()
>       assert isinstance(result, dict)
E       assert False
E        +  where False = isinstance(None, dict)

tests/test_providers/test_address.py:52: AssertionError

test_address.py::TestAddress::test_street_name[no]

test_address.py::TestAddress::test_street_name[no]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Aagots', 'Aasmund Vinjes', 'Abbediengen', 'Abbediengveien', 'Abbedikollen', 'Abbedisvingen', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_continent[pt-br]

test_address.py::TestAddress::test_continent[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_name[uk]

test_address.py::TestAddress::test_street_name[uk]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Академіка Стародубова', 'Вереснева', 'Героїв Майдану', 'Десантників', 'Європейська', 'Єдності', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_street_name[it]

test_address.py::TestAddress::test_street_name[it]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Abano Terme', 'Abascanto', 'Abate Di Tivoli', 'Abate Ugone', 'Abbateggio', 'Abbiategrasso', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state[sk-True-abbr]

test_address.py::TestAddress::test_state[sk-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['SK-BC', 'SK-BL', 'SK-KI', 'SK-NI', 'SK-PV', 'SK-TA', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_continent[kk]

test_address.py::TestAddress::test_continent[kk]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Австралия және Мұхиттық аралдар', 'Азия', 'Америка', 'Антарктика', 'Африка', 'Еуропа']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_country[pl]

test_address.py::TestAddress::test_country[pl]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Albania', 'Algieria', 'Andora', 'Anglia', 'Angola', ...]
E        +  where ['Afganistan', 'Albania', 'Algieria', 'Andora', 'Anglia', 'Angola', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_address[it]

test_address.py::TestAddress::test_address[it]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_street_name[ru]

test_address.py::TestAddress::test_street_name[ru]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['1 Маевки', '1 Мая', '10-летия Октября', 'Абельмановская', 'Абельмановская Застава', 'Абрамцевская', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_zip_code[fa]

test_address.py::TestAddress::test_zip_code[fa]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[en-ca-federal_subject]

test_address.py::TestAddress::test_state_aliases[en-ca-federal_subject]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[de-ch-federal_subject]

test_address.py::TestAddress::test_state_aliases[de-ch-federal_subject]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['京', '津', '沪', '渝', '冀', '晋', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-federal_subject-True]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-region-True]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[no]

test_address.py::TestAddress::test_continent[no]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktika', 'Australia', 'Eurasia', 'Nord-Amerika', 'Sør-Amerika']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_country[pt-br]

test_address.py::TestAddress::test_country[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[nl-be-prefecture]

test_address.py::TestAddress::test_state_aliases[nl-be-prefecture]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pl-federal_subject]

test_address.py::TestAddress::test_state_aliases[pl-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Dolnośląskie', 'Kujawsko-pomorskie', 'Lubelskie', 'Lubuskie', 'Mazowieckie', 'Małopolskie', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[hu]

test_address.py::TestAddress::test_zip_code[hu]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[kk-province]

test_address.py::TestAddress::test_state_aliases[kk-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Астана', 'Алматы', 'Алматы облысы', 'Атырау облысы', 'Ақмола облысы', 'Ақтөбе облысы', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_longitude

test_address.py::TestAddress::test_longitude
self = 
_address = 

    def test_longitude(self, _address):
        result = _address.longitude()
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_address.py:43: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[pt]

test_address.py::TestAddress::test_country_for_current_locale[pt]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DE-BB', 'DE-BE', 'DE-BW', 'DE-BY', 'DE-HB', 'DE-HE', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[fa]

test_address.py::TestAddress::test_country_for_current_locale[fa]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state[de-at-True-abbr]

test_address.py::TestAddress::test_state[de-at-True-abbr]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fr-federal_subject]

test_address.py::TestAddress::test_state_aliases[fr-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[ko]

test_address.py::TestAddress::test_postal_code[ko]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[en-gb-region]

test_address.py::TestAddress::test_state_aliases[en-gb-region]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[en-gb]

test_address.py::TestAddress::test_zip_code[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[da]

test_address.py::TestAddress::test_zip_code[da]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[ja-region]

test_address.py::TestAddress::test_state_aliases[ja-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北海道', '青森県', '岩手県', '宮城県', '秋田県', '山形県', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[et]

test_address.py::TestAddress::test_city[et]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Tallinn', 'Tartu', 'Narva', 'Pärnu', 'Kohtla-Järve', 'Maardu', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_city[fr]

test_address.py::TestAddress::test_city[fr]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Paris', 'Marseille', 'Lyon', 'Toulouse', 'Nice', 'Nantes', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_address[tr]

test_address.py::TestAddress::test_address[tr]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[sk]

test_address.py::TestAddress::test_country_for_current_locale[sk]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['ES-AN', 'ES-AR', 'ES-AS', 'ES-CN', 'ES-CB', 'ES-CL', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['CZ-JC', 'CZ-JM', 'CZ-KA', 'CZ-KR', 'CZ-LI', 'CZ-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NL-DR', 'NL-FL', 'NL-FR', 'NL-GE', 'NL-GR', 'NL-LI', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[ko-federal_subject]

test_address.py::TestAddress::test_state_aliases[ko-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['서울특별시', '부산광역시', '대구광역시', '인천광역시', '광주광역시', '대전광역시', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[no-prefecture]

test_address.py::TestAddress::test_state_aliases[no-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Akershus', 'Aust-Agder', 'Buskerud', 'Finnmark', 'Hedmark', 'Hordaland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[de-at-region]

test_address.py::TestAddress::test_state_aliases[de-at-region]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[ru]

test_address.py::TestAddress::test_zip_code[ru]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[uk-region]

test_address.py::TestAddress::test_state_aliases[uk-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Одеська область', 'Дніпропетровська область', 'Чернігівська область', 'Харківська область', 'Житомирська область', 'Полтавська область', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[et]

test_address.py::TestAddress::test_zip_code[et]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['Z', 'A', 'B', 'E', 'С', 'D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_address[pt]

test_address.py::TestAddress::test_address[pt]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DE-BB', 'DE-BE', 'DE-BW', 'DE-BY', 'DE-HB', 'DE-HE', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[cs]

test_address.py::TestAddress::test_city[cs]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Abertamy', 'Adamov', 'Aš', 'Bakov nad Jizerou', 'Bavorov', 'Bechyně', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state[hr-False-name]

test_address.py::TestAddress::test_state[hr-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Bjelovarsko-bilogorska', 'Brodsko-posavska', 'Dubrovačko-neretvanska', 'Grad Zagreb', 'Istarska', 'Karlovačka', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['ES-AN', 'ES-AR', 'ES-AS', 'ES-CN', 'ES-CB', 'ES-CL', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['HU-BA', 'HU-BE', 'HU-BK', 'HU-BU', 'HU-BZ', 'HU-CS', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_continent[sk]

test_address.py::TestAddress::test_continent[sk]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktída', 'Austrália', 'Ázia', 'Európa', 'Južná Amerika', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_street_name[es]

test_address.py::TestAddress::test_street_name[es]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Alameda', 'Alejandro Barreiro Noya', 'Arévalo', 'Av Juventud', 'Av de Europa', 'Av de la Democracia', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state[da-True-abbr]

test_address.py::TestAddress::test_state[da-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['DK.HS', 'DK.MJ', 'DK.ND', 'DK.SD', 'DK.SL']

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_country[es]

test_address.py::TestAddress::test_country[es]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistán', 'Albania', 'Alemania', 'Andorra', 'Angola', 'Anguila', ...]
E        +  where ['Afganistán', 'Albania', 'Alemania', 'Andorra', 'Angola', 'Anguila', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_name[en-ca]

test_address.py::TestAddress::test_street_name[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[es-mx]

test_address.py::TestAddress::test_country[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[de-at]

test_address.py::TestAddress::test_continent[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[nl-be]

test_address.py::TestAddress::test_address[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fr-prefecture]

test_address.py::TestAddress::test_state_aliases[fr-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[no-region]

test_address.py::TestAddress::test_state_aliases[no-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Akershus', 'Aust-Agder', 'Buskerud', 'Finnmark', 'Hedmark', 'Hordaland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[es]

test_address.py::TestAddress::test_postal_code[es]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_street_suffix[sk]

test_address.py::TestAddress::test_street_suffix[sk]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['cesta', 'nábrežie', 'námestie', 'rad', 'trieda', 'ulica']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[da]

test_address.py::TestAddress::test_country_for_current_locale[da]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_city[tr]

test_address.py::TestAddress::test_city[tr]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Ağrı', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_address[cs]

test_address.py::TestAddress::test_address[cs]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_address[en-gb]

test_address.py::TestAddress::test_address[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DS', 'KP', 'LB', 'LD', 'LU', 'MA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[fi]

test_address.py::TestAddress::test_street_name[fi]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Esplanadi', 'Hämeenkatu', 'Hämeenpuisto', 'Rotuaari', 'Aleksanterinkatu', 'Bulevardi', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_street_name[pt-br]

test_address.py::TestAddress::test_street_name[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[no]

test_address.py::TestAddress::test_street_suffix[no]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['allé', 'vei', 'plass', 'gate']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country[ja]

test_address.py::TestAddress::test_country[ja]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['アフガニスタン', 'アルバニア', 'アルジェリア', 'アメリカ領サモア', 'アンドラ', 'アンゴラ', ...]
E        +  where ['アフガニスタン', 'アルバニア', 'アルジェリア', 'アメリカ領サモア', 'アンドラ', 'アンゴラ', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_postal_code[de-at]

test_address.py::TestAddress::test_postal_code[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[it]

test_address.py::TestAddress::test_postal_code[it]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[el-federal_subject]

test_address.py::TestAddress::test_state_aliases[el-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Στερεά Ελλάδα', 'Πελοπόννησος', 'Νησιά Ιονίου Πελάγους', 'Νησιά Αιγαίου Πελάγους', 'Μακεδονία', 'Κρήτη', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country[tr]

test_address.py::TestAddress::test_country[tr]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Arnavutluk', 'Cezayir', 'Andorra', 'Angola', 'Antigua ve Barbuda', ...]
E        +  where ['Afganistan', 'Arnavutluk', 'Cezayir', 'Andorra', 'Angola', 'Antigua ve Barbuda', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_city[da]

test_address.py::TestAddress::test_city[da]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Aabenraa', 'Aabybro', 'Aakirkeby', 'Aalborg', 'Aalestrup', 'Aars', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[sv-federal_subject]

test_address.py::TestAddress::test_state_aliases[sv-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ångermanland', 'Blekinge', 'Bohuslän', 'Dalarna', 'Dalsland', 'Gotland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[cs-region]

test_address.py::TestAddress::test_state_aliases[cs-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hlavní město', 'Jihomoravský', 'Jihočeský', 'Karlovarský', 'Kraj Vysočina', 'Královéhradecký', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[en-au]

test_address.py::TestAddress::test_country_for_current_locale[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_for_current_locale[cs]

test_address.py::TestAddress::test_country_for_current_locale[cs]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DS', 'KP', 'LB', 'LD', 'LU', 'MA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[el]

test_address.py::TestAddress::test_street_name[el]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['1η Πάροδος Αγίου Πολυκάρπου', '1η Ράχη Δ.', '2η Ράχη Δ.', '3η Ράχη Δ.', '3ης Σεπτεμβρίου', '3ης Σεπτεμβρίου 1843', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_country[en-au]

test_address.py::TestAddress::test_country[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[pl]

test_address.py::TestAddress::test_continent[pl]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afryka', 'Ameryka Południowa', 'Ameryka Północna', 'Antarktyda', 'Australia', 'Azja', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['BBŽ', 'BPŽ', 'DN', 'IS', 'KA', 'KZ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[el-region]

test_address.py::TestAddress::test_state_aliases[el-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Στερεά Ελλάδα', 'Πελοπόννησος', 'Νησιά Ιονίου Πελάγους', 'Νησιά Αιγαίου Πελάγους', 'Μακεδονία', 'Κρήτη', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SK-BC', 'SK-BL', 'SK-KI', 'SK-NI', 'SK-PV', 'SK-TA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SV-AH', 'SV-CA', 'SV-CH', 'SV-CU', 'SV-LI', 'SV-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_postal_code[pt]

test_address.py::TestAddress::test_postal_code[pt]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{4}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[zh-region]

test_address.py::TestAddress::test_state_aliases[zh-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北京市', '天津市', '上海市', '重庆市', '河北省', '山西省', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[fa-region]

test_address.py::TestAddress::test_state_aliases[fa-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['آذربایجان شرقی', ' آذربایجان غربی', 'اردبیل', 'اصفهان', 'البرز', ' ایلام', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[fr]

test_address.py::TestAddress::test_zip_code[fr]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[en-gb-province]

test_address.py::TestAddress::test_state_aliases[en-gb-province]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[sv-True-abbr]

test_address.py::TestAddress::test_state[sv-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['SV-AH', 'SV-CA', 'SV-CH', 'SV-CU', 'SV-LI', 'SV-MO', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_continent[fr]

test_address.py::TestAddress::test_continent[fr]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrique', 'Amérique du Nord', 'Amérique du Sud', 'Antarctique', 'Asie', 'Europe', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_postal_code[el]

test_address.py::TestAddress::test_postal_code[el]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[es-mx-federal_subject]

test_address.py::TestAddress::test_state_aliases[es-mx-federal_subject]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[cs-province]

test_address.py::TestAddress::test_state_aliases[cs-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hlavní město', 'Jihomoravský', 'Jihočeský', 'Karlovarský', 'Kraj Vysočina', 'Královéhradecký', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_continent[es-mx]

test_address.py::TestAddress::test_continent[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[nl-be-False-name]

test_address.py::TestAddress::test_state[nl-be-False-name]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pl-province]

test_address.py::TestAddress::test_state_aliases[pl-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Dolnośląskie', 'Kujawsko-pomorskie', 'Lubelskie', 'Lubuskie', 'Mazowieckie', 'Małopolskie', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[cs]

test_address.py::TestAddress::test_street_suffix[cs]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Alej', 'Bulvár', 'Ulice']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_str[es-mx]

test_address.py::TestAddress::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[zh]

test_address.py::TestAddress::test_zip_code[zh]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_address[kk]

test_address.py::TestAddress::test_address[kk]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state[it-True-abbr]

test_address.py::TestAddress::test_state[it-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['AG', 'AL', 'AN', 'AO', 'AP', 'AQ', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[fr-False-name]

test_address.py::TestAddress::test_state[fr-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_street_suffix[fa]

test_address.py::TestAddress::test_street_suffix[fa]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['کوچه', 'گذرگاه', 'خیابان', 'خلیج', 'تپه', 'بلوار', ...]

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[de]

test_address.py::TestAddress::test_country_for_current_locale[de]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-prefecture-True]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['UA-71', 'UA-74', 'UA-77', 'UA-12', 'UA-14', 'UA-26', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[fa]

test_address.py::TestAddress::test_city[fa]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['آیسک', 'آوج', 'آواجیق', 'آمل', 'آلونی', 'آلاشت', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state[uk-True-abbr]

test_address.py::TestAddress::test_state[uk-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['UA-71', 'UA-74', 'UA-77', 'UA-12', 'UA-14', 'UA-26', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_continent[en-ca]

test_address.py::TestAddress::test_continent[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[pl]

test_address.py::TestAddress::test_zip_code[pl]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DE-BB', 'DE-BE', 'DE-BW', 'DE-BY', 'DE-HB', 'DE-HE', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[de-at-False-name]

test_address.py::TestAddress::test_state[de-at-False-name]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pt-region]

test_address.py::TestAddress::test_state_aliases[pt-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Aveiro', 'Beja', 'Braga', 'Bragança', 'Castelo Branco', 'Coimbra', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['PT-01', 'PT-02', 'PT-03', 'PT-04', 'PT-05', 'PT-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_str[nl-be]

test_address.py::TestAddress::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[en-au]

test_address.py::TestAddress::test_continent[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[hr]

test_address.py::TestAddress::test_street_suffix[hr]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Avenija', 'Ulica']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country[pt]

test_address.py::TestAddress::test_country[pt]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afeganistão', 'Albânia', 'Alemanha', 'Andorra', 'Angola', 'Anguila', ...]
E        +  where ['Afeganistão', 'Albânia', 'Alemanha', 'Andorra', 'Angola', 'Anguila', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases[zh-prefecture]

test_address.py::TestAddress::test_state_aliases[zh-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北京市', '天津市', '上海市', '重庆市', '河北省', '山西省', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[is-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[is-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['IS-1', 'IS-2', 'IS-3', 'IS-4', 'IS-5', 'IS-6', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_address[et]

test_address.py::TestAddress::test_address[et]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_postal_code[en-ca]

test_address.py::TestAddress::test_postal_code[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[es-True-abbr]

test_address.py::TestAddress::test_state[es-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['ES-AN', 'ES-AR', 'ES-AS', 'ES-CN', 'ES-CB', 'ES-CL', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[kk-federal_subject]

test_address.py::TestAddress::test_state_aliases[kk-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Астана', 'Алматы', 'Алматы облысы', 'Атырау облысы', 'Ақмола облысы', 'Ақтөбе облысы', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[et-True-abbr]

test_address.py::TestAddress::test_state[et-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['VA', 'VD', 'VÕ', 'IV', 'JG', 'LV', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_address[fi]

test_address.py::TestAddress::test_address[fi]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_street_name[pl]

test_address.py::TestAddress::test_street_name[pl]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['1 Maja', '3 Maja', '5 Stycznia', '11 Listopada', '23 Lutego', '27 Grudnia', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[kk]

test_address.py::TestAddress::test_country_for_current_locale[kk]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['BBŽ', 'BPŽ', 'DN', 'IS', 'KA', 'KZ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_suffix[de-at]

test_address.py::TestAddress::test_street_suffix[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[sv]

test_address.py::TestAddress::test_continent[sv]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktis', 'Australien', 'Eurasien', 'Nordamerika', 'Sydamerika']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases[hu-region]

test_address.py::TestAddress::test_state_aliases[hu-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baranya', 'Borsod-Abaúj-Zemplén', 'Bács-Kiskun', 'Békés', 'Capital City of Budapest', 'Csongrád', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[ko-region]

test_address.py::TestAddress::test_state_aliases[ko-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['서울특별시', '부산광역시', '대구광역시', '인천광역시', '광주광역시', '대전광역시', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FI-01', 'FI-02', 'FI-03', 'FI-04', 'FI-05', 'FI-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[is-prefecture]

test_address.py::TestAddress::test_state_aliases[is-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Austurland', 'Höfuðborgarsvæði', 'Norðurland eystra', 'Norðurland vestra', 'Suðurland', 'Suðurnes', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[en-gb-True-abbr]

test_address.py::TestAddress::test_state[en-gb-True-abbr]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[sv-region]

test_address.py::TestAddress::test_state_aliases[sv-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ångermanland', 'Blekinge', 'Bohuslän', 'Dalarna', 'Dalsland', 'Gotland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[cs-False-name]

test_address.py::TestAddress::test_state[cs-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Hlavní město', 'Jihomoravský', 'Jihočeský', 'Karlovarský', 'Kraj Vysočina', 'Královéhradecký', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[hu-False-name]

test_address.py::TestAddress::test_state[hu-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Baranya', 'Borsod-Abaúj-Zemplén', 'Bács-Kiskun', 'Békés', 'Capital City of Budapest', 'Csongrád', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[sv]

test_address.py::TestAddress::test_country_for_current_locale[sv]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_country_for_current_locale[tr]

test_address.py::TestAddress::test_country_for_current_locale[tr]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases[en-gb-prefecture]

test_address.py::TestAddress::test_state_aliases[en-gb-prefecture]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[en-au-False-name]

test_address.py::TestAddress::test_state[en-au-False-name]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[fa]

test_address.py::TestAddress::test_postal_code[fa]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '\\d{5}-\\d{5}', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_address[hu]

test_address.py::TestAddress::test_address[hu]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_street_name[nl]

test_address.py::TestAddress::test_street_name[nl]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['A G Bellstraat', 'A gen Giezen', 'A.H.G. Fokkerstraat', 'Aakstraat', 'Aalbert Cuyplaan', 'Aan Cedron', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases[en-gb-federal_subject]

test_address.py::TestAddress::test_state_aliases[en-gb-federal_subject]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['서울', '부산', '대구', '인천', '광주', '대전', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_suffix[en-au]

test_address.py::TestAddress::test_street_suffix[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[is]

test_address.py::TestAddress::test_zip_code[is]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_city[hr]

test_address.py::TestAddress::test_city[hr]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Bakar', 'Beli Manastir', 'Belišće', 'Benkovac', 'Biograd na Moru', 'Bjelovar', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[es-prefecture]

test_address.py::TestAddress::test_state_aliases[es-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Andalucía', 'Aragón', 'Principiado de Asturias', 'Canarias', 'Cantabria', 'Castilla y León', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[no]

test_address.py::TestAddress::test_city[no]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Alta', 'Arendal', 'Askim', 'Bergen', 'Bodø', 'Brekstad', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_postal_code[nl-be]

test_address.py::TestAddress::test_postal_code[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-prefecture-True]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[fa]

test_address.py::TestAddress::test_continent[fa]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['آسیا', 'آفریقا', 'آمریکای جنوبی', 'آمریکای شمالی', 'اروپا', 'اقیانوسیه', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_continent[fi]

test_address.py::TestAddress::test_continent[fi]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Aasia', 'Afrikka', 'Australia', 'Etelä-Amerikka', 'Etelämanner', 'Eurooppa', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-province-True]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[hr]

test_address.py::TestAddress::test_postal_code[hr]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_country_for_current_locale[et]

test_address.py::TestAddress::test_country_for_current_locale[et]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_address[fa]

test_address.py::TestAddress::test_address[fa]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[pl]

test_address.py::TestAddress::test_country_for_current_locale[pl]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases[fi-federal_subject]

test_address.py::TestAddress::test_state_aliases[fi-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ahvenanmaa', 'Etelä-Karjala', 'Etelä-Pohjanmaa', 'Etelä-Savo', 'Kainuu', 'Kanta-Häme', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[fa-True-abbr]

test_address.py::TestAddress::test_state[fa-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-federal_subject-True]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[zh-province]

test_address.py::TestAddress::test_state_aliases[zh-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北京市', '天津市', '上海市', '重庆市', '河北省', '山西省', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_zip_code[el]

test_address.py::TestAddress::test_zip_code[el]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NL-DR', 'NL-FL', 'NL-FR', 'NL-GE', 'NL-GR', 'NL-LI', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[de-ch]

test_address.py::TestAddress::test_country_for_current_locale[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pt-federal_subject]

test_address.py::TestAddress::test_state_aliases[pt-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Aveiro', 'Beja', 'Braga', 'Bragança', 'Castelo Branco', 'Coimbra', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[en-au-prefecture]

test_address.py::TestAddress::test_state_aliases[en-au-prefecture]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[ru]

test_address.py::TestAddress::test_street_suffix[ru]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Аллея', 'ул.']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-prefecture-True]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[es]

test_address.py::TestAddress::test_continent[es]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['América', 'Antártida', 'Asia', 'Europa', 'Oceanía', 'África']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_city[el]

test_address.py::TestAddress::test_city[el]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Άγιος Νικόλαος', 'Άργος', 'Άρτα', 'Έδεσσα', 'Αίγιο', 'Αγρίνιο', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[fi-province]

test_address.py::TestAddress::test_state_aliases[fi-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ahvenanmaa', 'Etelä-Karjala', 'Etelä-Pohjanmaa', 'Etelä-Savo', 'Kainuu', 'Kanta-Häme', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[it-False-name]

test_address.py::TestAddress::test_state[it-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state[da-False-name]

test_address.py::TestAddress::test_state[da-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Hovedstaden', 'Midtjylland', 'Nordjylland', 'Sjælland', 'Syddanmark']

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ja-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['JP-01', 'JP-02', 'JP-03', 'JP-04', 'JP-05', 'JP-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[pt-br]

test_address.py::TestAddress::test_city[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_code[CountryCode.IOC-3]

test_address.py::TestAddress::test_country_code[CountryCode.IOC-3]
self = 
_address = 
code = , length = 3

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
>           assert iso in COUNTRY_CODES[code.value]
E           AssertionError: assert None in ['AFG', 'ALB', 'ALG', 'AND', 'ANG', 'ANT', ...]

tests/test_providers/test_address.py:154: AssertionError

test_address.py::TestAddress::test_state_aliases[sv-prefecture]

test_address.py::TestAddress::test_state_aliases[sv-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ångermanland', 'Blekinge', 'Bohuslän', 'Dalarna', 'Dalsland', 'Gotland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[pl-prefecture]

test_address.py::TestAddress::test_state_aliases[pl-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Dolnośląskie', 'Kujawsko-pomorskie', 'Lubelskie', 'Lubuskie', 'Mazowieckie', 'Małopolskie', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[da]

test_address.py::TestAddress::test_street_suffix[da]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Allé', 'Plads']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_address[ja]

test_address.py::TestAddress::test_address[ja]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-prefecture-True]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[sv]

test_address.py::TestAddress::test_zip_code[sv]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state[tr-False-name]

test_address.py::TestAddress::test_state[tr-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Aksaray', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_address[de]

test_address.py::TestAddress::test_address[de]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NL-DR', 'NL-FL', 'NL-FR', 'NL-GE', 'NL-GR', 'NL-LI', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country[cs]

test_address.py::TestAddress::test_country[cs]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghánistán', 'Albánie', 'Alžírsko', 'Americká Samoa', 'Americké Panenské ostrovy', 'Andorra', ...]
E        +  where ['Afghánistán', 'Albánie', 'Alžírsko', 'Americká Samoa', 'Americké Panenské ostrovy', 'Andorra', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases[et-province]

test_address.py::TestAddress::test_state_aliases[et-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Valga maakond', 'Viljandi maakond', 'Võru maakond', 'Ida-Viru maakond', 'Jõgeva maakond', 'Lääne-Viru maakond', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[da]

test_address.py::TestAddress::test_postal_code[da]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = 'DK-[0-9]{4}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['TR-01', 'TR-02', 'TR-03', 'TR-04', 'TR-05', 'TR-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[et-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[et-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['VA', 'VD', 'VÕ', 'IV', 'JG', 'LV', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[no-province]

test_address.py::TestAddress::test_state_aliases[no-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Akershus', 'Aust-Agder', 'Buskerud', 'Finnmark', 'Hedmark', 'Hordaland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[no-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[no-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['NO-01', 'NO-02', 'NO-03', 'NO-04', 'NO-05', 'NO-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_zip_code[uk]

test_address.py::TestAddress::test_zip_code[uk]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[de-ch-province]

test_address.py::TestAddress::test_state_aliases[de-ch-province]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-federal_subject-True]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[en-au]

test_address.py::TestAddress::test_address[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[da-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[da-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DK.HS', 'DK.MJ', 'DK.ND', 'DK.SD', 'DK.SL']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[fi]

test_address.py::TestAddress::test_country_for_current_locale[fi]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state[ja-False-name]

test_address.py::TestAddress::test_state[ja-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['北海道', '青森県', '岩手県', '宮城県', '秋田県', '山形県', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country[et]

test_address.py::TestAddress::test_country[et]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Albaania', 'Alžeeria', 'Ameerika Ühendriigid', 'Andorra', 'Angola', ...]
E        +  where ['Afganistan', 'Albaania', 'Alžeeria', 'Ameerika Ühendriigid', 'Andorra', 'Angola', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_suffix[nl]

test_address.py::TestAddress::test_street_suffix[nl]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['straat', 'steeg']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-federal_subject-True]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[tr]

test_address.py::TestAddress::test_zip_code[tr]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_street_suffix[it]

test_address.py::TestAddress::test_street_suffix[it]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Via', 'Viale', 'Via degli']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DE-BB', 'DE-BE', 'DE-BW', 'DE-BY', 'DE-HB', 'DE-HE', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_postal_code[ru]

test_address.py::TestAddress::test_postal_code[ru]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{6}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state[el-False-name]

test_address.py::TestAddress::test_state[el-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Στερεά Ελλάδα', 'Πελοπόννησος', 'Νησιά Ιονίου Πελάγους', 'Νησιά Αιγαίου Πελάγους', 'Μακεδονία', 'Κρήτη', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_continent[nl-be]

test_address.py::TestAddress::test_continent[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-gb-prefecture-True]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fr-province]

test_address.py::TestAddress::test_state_aliases[fr-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Auvergne-Rhône-Alpes', 'Bourgogne-Franche-Comté', 'Bretagne', 'Centre-Val de Loire', 'Corse', 'Grand Est', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[en-ca]

test_address.py::TestAddress::test_street_suffix[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_for_current_locale[hr]

test_address.py::TestAddress::test_country_for_current_locale[hr]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['서울', '부산', '대구', '인천', '광주', '대전', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[is-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[is-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['IS-1', 'IS-2', 'IS-3', 'IS-4', 'IS-5', 'IS-6', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_suffix[sv]

test_address.py::TestAddress::test_street_suffix[sv]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['allé', 'gatan', 'gata', 'gränd', 'Väg']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_city[zh]

test_address.py::TestAddress::test_city[zh]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['北京市 ', '天津市 ', '石家庄市', '唐山市', '秦皇岛市 ', '邯郸市', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_street_suffix[de-ch]

test_address.py::TestAddress::test_street_suffix[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[et-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[et-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['VA', 'VD', 'VÕ', 'IV', 'JG', 'LV', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[fr]

test_address.py::TestAddress::test_street_name[fr]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Abel Gance', 'Aida', 'Aime Benoit Seilliere', 'Aime Et Danielle Denou', 'Alain Fournier', 'Alberic Cailloux', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_street_suffix[et]

test_address.py::TestAddress::test_street_suffix[et]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['tänav', 'park', 'allee', 'maantee', 'põik']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_country_code[CountryCode.FIFA-3]

test_address.py::TestAddress::test_country_code[CountryCode.FIFA-3]
self = 
_address = 
code = , length = 3

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
>           assert iso in COUNTRY_CODES[code.value]
E           AssertionError: assert None in ['AFG', 'AIA', 'ALB', 'ALG', 'AND', 'ANG', ...]

tests/test_providers/test_address.py:154: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[it-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[it-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['AG', 'AL', 'AN', 'AO', 'AP', 'AQ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[en-ca-prefecture]

test_address.py::TestAddress::test_state_aliases[en-ca-prefecture]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[fr]

test_address.py::TestAddress::test_postal_code[fr]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[pt-prefecture]

test_address.py::TestAddress::test_state_aliases[pt-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Aveiro', 'Beja', 'Braga', 'Bragança', 'Castelo Branco', 'Coimbra', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[et]

test_address.py::TestAddress::test_postal_code[et]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[sk-prefecture]

test_address.py::TestAddress::test_state_aliases[sk-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Banskobystrický', 'Bratislavský', 'Košický', 'Nitriansky', 'Prešovský', 'Trenčiansky', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hr-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['BBŽ', 'BPŽ', 'DN', 'IS', 'KA', 'KZ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['京', '津', '沪', '渝', '冀', '晋', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[de-ch-prefecture]

test_address.py::TestAddress::test_state_aliases[de-ch-prefecture]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[de-ch]

test_address.py::TestAddress::test_postal_code[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[da-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[da-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DK.HS', 'DK.MJ', 'DK.ND', 'DK.SD', 'DK.SL']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[no-False-name]

test_address.py::TestAddress::test_state[no-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Akershus', 'Aust-Agder', 'Buskerud', 'Finnmark', 'Hedmark', 'Hordaland', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_address[uk]

test_address.py::TestAddress::test_address[uk]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[uk]

test_address.py::TestAddress::test_country_for_current_locale[uk]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_continent[hu]

test_address.py::TestAddress::test_continent[hu]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktisz', 'Ausztrália', 'Dél-Amerika', 'Európa', 'Ázsia', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases[tr-region]

test_address.py::TestAddress::test_state_aliases[tr-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Aksaray', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[is-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[is-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['IS-1', 'IS-2', 'IS-3', 'IS-4', 'IS-5', 'IS-6', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_zip_code[hr]

test_address.py::TestAddress::test_zip_code[hr]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state[et-False-name]

test_address.py::TestAddress::test_state[et-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Valga maakond', 'Viljandi maakond', 'Võru maakond', 'Ida-Viru maakond', 'Jõgeva maakond', 'Lääne-Viru maakond', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_address[no]

test_address.py::TestAddress::test_address[no]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_postal_code[uk]

test_address.py::TestAddress::test_postal_code[uk]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{6}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[uk-prefecture]

test_address.py::TestAddress::test_state_aliases[uk-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Одеська область', 'Дніпропетровська область', 'Чернігівська область', 'Харківська область', 'Житомирська область', 'Полтавська область', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-province-True]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pt-br-region]

test_address.py::TestAddress::test_state_aliases[pt-br-region]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[it]

test_address.py::TestAddress::test_zip_code[it]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[ja-federal_subject]

test_address.py::TestAddress::test_state_aliases[ja-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['北海道', '青森県', '岩手県', '宮城県', '秋田県', '山形県', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[it]

test_address.py::TestAddress::test_country_for_current_locale[it]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_zip_code[en-au]

test_address.py::TestAddress::test_zip_code[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-ch-federal_subject-True]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[kk]

test_address.py::TestAddress::test_postal_code[kk]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{6}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_country[fi]

test_address.py::TestAddress::test_country[fi]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Ahvenanmaa', 'Alankomaat', 'Albania', 'Algeria', 'Amerikan Samoa', ...]
E        +  where ['Afganistan', 'Ahvenanmaa', 'Alankomaat', 'Albania', 'Algeria', 'Amerikan Samoa', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[is]

test_address.py::TestAddress::test_country_for_current_locale[is]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state[ko-False-name]

test_address.py::TestAddress::test_state[ko-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['서울특별시', '부산광역시', '대구광역시', '인천광역시', '광주광역시', '대전광역시', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_latitude

test_address.py::TestAddress::test_latitude
self = 
_address = 

    def test_latitude(self, _address):
        result = _address.latitude()
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_address.py:34: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[nl]

test_address.py::TestAddress::test_country_for_current_locale[nl]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases[nl-province]

test_address.py::TestAddress::test_state_aliases[nl-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Groningen', 'Friesland', 'Drenthe', 'Overijssel', 'Flevoland', 'Gelderland', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[it-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[it-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['AG', 'AL', 'AN', 'AO', 'AP', 'AQ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_str[de-at]

test_address.py::TestAddress::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[en-au-province]

test_address.py::TestAddress::test_state_aliases[en-au-province]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[is-federal_subject]

test_address.py::TestAddress::test_state_aliases[is-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Austurland', 'Höfuðborgarsvæði', 'Norðurland eystra', 'Norðurland vestra', 'Suðurland', 'Suðurnes', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-province-True]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[el-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[el-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['GR-A', 'GR-I', 'GR-G', 'GR-C', 'GR-F', 'GR-D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FI-01', 'FI-02', 'FI-03', 'FI-04', 'FI-05', 'FI-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_zip_code[de-at]

test_address.py::TestAddress::test_zip_code[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_city[de-ch]

test_address.py::TestAddress::test_city[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[sv-False-name]

test_address.py::TestAddress::test_state[sv-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Ångermanland', 'Blekinge', 'Bohuslän', 'Dalarna', 'Dalsland', 'Gotland', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[it-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[it-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['AG', 'AL', 'AN', 'AO', 'AP', 'AQ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[de-region]

test_address.py::TestAddress::test_state_aliases[de-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baden-Württemberg', 'Bayern', 'Berlin', 'Brandenburg', 'Bremen', 'Hamburg', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[ja]

test_address.py::TestAddress::test_street_name[ja]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['内堀', '外堀', '明治', '山手', '中央', '浅草', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[en-ca]

test_address.py::TestAddress::test_country_for_current_locale[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_zip_code[fi]

test_address.py::TestAddress::test_zip_code[fi]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_continent[de]

test_address.py::TestAddress::test_continent[de]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktika', 'Asien', 'Australien', 'Europa', 'Nordamerika', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases[tr-prefecture]

test_address.py::TestAddress::test_state_aliases[tr-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Adana', 'Adıyaman', 'Afyonkarahisar', 'Aksaray', 'Amasya', 'Ankara', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country[uk]

test_address.py::TestAddress::test_country[uk]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       assert None in ["Об'єднані Арабські Емірати", 'Нігерія', 'Ефіопія', 'Гана', 'Алжир', 'Йорданія', ...]
E        +  where ["Об'єднані Арабські Емірати", 'Нігерія', 'Ефіопія', 'Гана', 'Алжир', 'Йорданія', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_number

test_address.py::TestAddress::test_street_number
self = 
_address = 

    def test_street_number(self, _address):
        result = _address.street_number()
>       assert re.match(r"[0-9]{1,5}$", result)

tests/test_providers/test_address.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{1,5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fi-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FI-01', 'FI-02', 'FI-03', 'FI-04', 'FI-05', 'FI-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_street_name[sv]

test_address.py::TestAddress::test_street_name[sv]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Abiskovägen', 'Abrahamsbergsvägen', 'Abramsäng', 'Adilsvägen', 'Adolf Rudbecks Väg', 'Adolfsbergsvägen', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[el-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[el-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['GR-A', 'GR-I', 'GR-G', 'GR-C', 'GR-F', 'GR-D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[ja]

test_address.py::TestAddress::test_city[ja]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['東京都', '横浜市', '大阪市', '名古屋市', '札幌市', '神戸市', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_country[hr]

test_address.py::TestAddress::test_country[hr]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Albanija', 'Alžir', 'Andora', 'Angola', 'Antigua i Barbuda', ...]
E        +  where ['Afganistan', 'Albanija', 'Alžir', 'Andora', 'Angola', 'Antigua i Barbuda', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_address[pl]

test_address.py::TestAddress::test_address[pl]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state[de-ch-False-name]

test_address.py::TestAddress::test_state[de-ch-False-name]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SK-BC', 'SK-BL', 'SK-KI', 'SK-NI', 'SK-PV', 'SK-TA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[ko-True-abbr]

test_address.py::TestAddress::test_state[ko-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['서울', '부산', '대구', '인천', '광주', '대전', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[hr-prefecture]

test_address.py::TestAddress::test_state_aliases[hr-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Bjelovarsko-bilogorska', 'Brodsko-posavska', 'Dubrovačko-neretvanska', 'Grad Zagreb', 'Istarska', 'Karlovačka', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[fr]

test_address.py::TestAddress::test_street_suffix[fr]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Allée', 'Avenue', 'Boulevard', 'Cour', 'Cours', 'Grand Rue', ...]

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_continent[hr]

test_address.py::TestAddress::test_continent[hr]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktika', 'Australija i Oceania', 'Azija', 'Europa', 'Južna Amerika', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state[fr-True-abbr]

test_address.py::TestAddress::test_state[fr-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['FR-ARA', 'FR-BFC', 'FR-BRE', 'FR-CVL', 'FR-COR', 'FR-GES', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[ru]

test_address.py::TestAddress::test_country_for_current_locale[ru]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-ca-region-True]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[ko-province]

test_address.py::TestAddress::test_state_aliases[ko-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['서울특별시', '부산광역시', '대구광역시', '인천광역시', '광주광역시', '대전광역시', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[de]

test_address.py::TestAddress::test_postal_code[de]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state[en-gb-False-name]

test_address.py::TestAddress::test_state[en-gb-False-name]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_calling_code

test_address.py::TestAddress::test_calling_code
self = 
_address = 

    def test_calling_code(self, _address):
        result = _address.calling_code()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_address.py:174: AssertionError

test_address.py::TestAddress::test_state[fi-False-name]

test_address.py::TestAddress::test_state[fi-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Ahvenanmaa', 'Etelä-Karjala', 'Etelä-Pohjanmaa', 'Etelä-Savo', 'Kainuu', 'Kanta-Häme', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['RU-AD', 'RU-AL', 'RU-ALT', 'RU-AMU', 'RU-ARK', 'RU-AST', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[it-region]

test_address.py::TestAddress::test_state_aliases[it-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[ja]

test_address.py::TestAddress::test_country_for_current_locale[ja]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state_aliases[hr-region]

test_address.py::TestAddress::test_state_aliases[hr-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Bjelovarsko-bilogorska', 'Brodsko-posavska', 'Dubrovačko-neretvanska', 'Grad Zagreb', 'Istarska', 'Karlovačka', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[es]

test_address.py::TestAddress::test_city[es]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['A Coruña', 'Alcalá de Henares', 'Alicante', 'Almería', 'Andalusia', 'Antequera', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state[uk-False-name]

test_address.py::TestAddress::test_state[uk-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Одеська область', 'Дніпропетровська область', 'Чернігівська область', 'Харківська область', 'Житомирська область', 'Полтавська область', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_street_name[hr]

test_address.py::TestAddress::test_street_name[hr]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Bakarska', 'Belostenčeva', 'Berislavićeva', 'Biokovska', 'Bogovićeva', 'Bokanjčeva', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_street_name[is]

test_address.py::TestAddress::test_street_name[is]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Aflagrandi', 'Aflakór', 'Aftanhæð', 'Akbraut', 'Akrakot', 'Akrakór', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases[pt-br-province]

test_address.py::TestAddress::test_state_aliases[pt-br-province]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[sk-federal_subject]

test_address.py::TestAddress::test_state_aliases[sk-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Banskobystrický', 'Bratislavský', 'Košický', 'Nitriansky', 'Prešovský', 'Trenčiansky', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_city[uk]

test_address.py::TestAddress::test_city[uk]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Бахчисарай', 'Білогірськ', 'Джанкой', 'Хрестівка', 'Курман', 'Яни Капу', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['PT-01', 'PT-02', 'PT-03', 'PT-04', 'PT-05', 'PT-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[hu-federal_subject]

test_address.py::TestAddress::test_state_aliases[hu-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baranya', 'Borsod-Abaúj-Zemplén', 'Bács-Kiskun', 'Békés', 'Capital City of Budapest', 'Csongrád', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country[en-gb]

test_address.py::TestAddress::test_country[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[nl-be]

test_address.py::TestAddress::test_street_suffix[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DS', 'KP', 'LB', 'LD', 'LU', 'MA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[et-region]

test_address.py::TestAddress::test_state_aliases[et-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Valga maakond', 'Viljandi maakond', 'Võru maakond', 'Ida-Viru maakond', 'Jõgeva maakond', 'Lääne-Viru maakond', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_address[es]

test_address.py::TestAddress::test_address[es]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_country[sk]

test_address.py::TestAddress::test_country[sk]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afganistan', 'Albánsko', 'Alžírsko', 'Andorra', 'Angola', 'Antigua a Barbuda', ...]
E        +  where ['Afganistan', 'Albánsko', 'Alžírsko', 'Andorra', 'Angola', 'Antigua a Barbuda', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_name[ko]

test_address.py::TestAddress::test_street_name[ko]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['3.1만세운동', '4.19', '40계단', '63', '8부두', '가달', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_country_code[CountryCode.A2-2]

test_address.py::TestAddress::test_country_code[CountryCode.A2-2]
self = 
_address = 
code = , length = 2

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
>           assert iso in COUNTRY_CODES[code.value]
E           AssertionError: assert None in ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', ...]

tests/test_providers/test_address.py:154: AssertionError

test_address.py::TestAddress::test_state[hu-True-abbr]

test_address.py::TestAddress::test_state[hu-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['HU-BA', 'HU-BE', 'HU-BK', 'HU-BU', 'HU-BZ', 'HU-CS', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[hu-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['HU-BA', 'HU-BE', 'HU-BK', 'HU-BU', 'HU-BZ', 'HU-CS', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['Z', 'A', 'B', 'E', 'С', 'D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_continent[zh]

test_address.py::TestAddress::test_continent[zh]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['非洲', '南极洲', '亚洲', '澳大利亚', '欧洲', '北美', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[da-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[da-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DK.HS', 'DK.MJ', 'DK.ND', 'DK.SD', 'DK.SL']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_emoji_flag

test_address.py::TestAddress::test_country_emoji_flag
self = 
_address = 

    def test_country_emoji_flag(self, _address):
        emoji_flag = _address.country_emoji_flag()
>       assert isinstance(emoji_flag, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:184: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-prefecture-True]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_code[None-length5]

test_address.py::TestAddress::test_country_code[None-length5]
self = 
_address = 
code = None, length = [2, 3]

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
            assert iso in COUNTRY_CODES[code.value]

>       assert len(iso) == length or len(iso) in length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_address.py:156: TypeError

test_address.py::TestAddress::test_state_aliases[el-prefecture]

test_address.py::TestAddress::test_state_aliases[el-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Στερεά Ελλάδα', 'Πελοπόννησος', 'Νησιά Ιονίου Πελάγους', 'Νησιά Αιγαίου Πελάγους', 'Μακεδονία', 'Κρήτη', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[en-ca-province]

test_address.py::TestAddress::test_state_aliases[en-ca-province]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[fr]

test_address.py::TestAddress::test_country[fr]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Afrique du Sud', 'Albanie', 'Algérie', 'Allemagne', 'Andorre', ...]
E        +  where ['Afghanistan', 'Afrique du Sud', 'Albanie', 'Algérie', 'Allemagne', 'Andorre', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['ES-AN', 'ES-AR', 'ES-AS', 'ES-CN', 'ES-CB', 'ES-CL', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_continent[is]

test_address.py::TestAddress::test_continent[is]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afríka', 'Asía', 'Evrópa', 'Eyjaálfa', 'Norður-Ameríka', 'Suður-Ameríka', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_city[pt]

test_address.py::TestAddress::test_city[pt]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Abrantes', 'Agualva-Cacém', 'Albufeira', 'Alcabideche', 'Alcobaça', 'Alcácer do Sal', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sv-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SV-AH', 'SV-CA', 'SV-CH', 'SV-CU', 'SV-LI', 'SV-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_country_code[CountryCode.NUMERIC-3]

test_address.py::TestAddress::test_country_code[CountryCode.NUMERIC-3]
self = 
_address = 
code = , length = 3

    @pytest.mark.parametrize(
        "code, length",
        [
            (CountryCode.A2, 2),
            (CountryCode.A3, 3),
            (CountryCode.NUMERIC, 3),
            (CountryCode.IOC, 3),
            (CountryCode.FIFA, 3),
            (None, [2, 3]),
        ],
    )
    def test_country_code(self, _address, code, length):
        iso = _address.country_code(code=code)

        if code is not None:
>           assert iso in COUNTRY_CODES[code.value]
E           AssertionError: assert None in ['020', '784', '004', '028', '660', '008', ...]

tests/test_providers/test_address.py:154: AssertionError

test_address.py::TestAddress::test_continent[tr]

test_address.py::TestAddress::test_continent[tr]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktika', 'Asya', 'Avrupa', 'Avustralya', 'Güney Amerika', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_state_aliases[es-mx-region]

test_address.py::TestAddress::test_state_aliases[es-mx-region]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[de-at-prefecture]

test_address.py::TestAddress::test_state_aliases[de-at-prefecture]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[zh]

test_address.py::TestAddress::test_address[zh]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state[pt-br-True-abbr]

test_address.py::TestAddress::test_state[pt-br-True-abbr]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[nl-be-region]

test_address.py::TestAddress::test_state_aliases[nl-be-region]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_str[pt-br]

test_address.py::TestAddress::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[es-mx-province-True]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[nl-be-province]

test_address.py::TestAddress::test_state_aliases[nl-be-province]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-province-True]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[pl]

test_address.py::TestAddress::test_street_suffix[pl]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['ul.', 'al.']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_postal_code[ja]

test_address.py::TestAddress::test_postal_code[ja]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{3}-[0-9]{4}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_state_aliases[et-federal_subject]

test_address.py::TestAddress::test_state_aliases[et-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Valga maakond', 'Viljandi maakond', 'Võru maakond', 'Ida-Viru maakond', 'Jõgeva maakond', 'Lääne-Viru maakond', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_postal_code[no]

test_address.py::TestAddress::test_postal_code[no]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
>           assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)

tests/test_providers/test_address.py:124: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{4}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test__get_fs[True]

test_address.py::TestAddress::test__get_fs[True]
self = 
_address = 
dms = True

    @pytest.mark.parametrize("dms", [True, False])
    def test__get_fs(self, _address, dms):
        latitude = _address._get_fs("lt", dms=dms)
>       assert latitude
E       assert None

tests/test_providers/test_address.py:28: AssertionError

test_address.py::TestAddress::test_state[en-ca-False-name]

test_address.py::TestAddress::test_state[en-ca-False-name]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-federal_subject-True]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_suffix[es-mx]

test_address.py::TestAddress::test_street_suffix[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[it]

test_address.py::TestAddress::test_country[it]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Angola', 'Anguilla', ...]
E        +  where ['Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Angola', 'Anguilla', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state[es-mx-True-abbr]

test_address.py::TestAddress::test_state[es-mx-True-abbr]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country_for_current_locale[no]

test_address.py::TestAddress::test_country_for_current_locale[no]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_country_for_current_locale[hu]

test_address.py::TestAddress::test_country_for_current_locale[hu]
self = 
address = 

    def test_country_for_current_locale(self, address):
        country = address.default_country()
>       assert country in address._extract(["country", "current_locale"])
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_address.py:137: TypeError

test_address.py::TestAddress::test_state[tr-True-abbr]

test_address.py::TestAddress::test_state[tr-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['TR-01', 'TR-02', 'TR-03', 'TR-04', 'TR-05', 'TR-06', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fa-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_city[nl]

test_address.py::TestAddress::test_city[nl]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Aagtdorp', 'Aalsmeer', 'Aalsmeerderbrug', 'Aartswoud', 'Abbekerk', 'Abbenes', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_continent[ru]

test_address.py::TestAddress::test_continent[ru]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Австралия и Океания', 'Азия', 'Америка', 'Антарктика', 'Африка', 'Европа']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_address[de-at]

test_address.py::TestAddress::test_address[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_str[en-gb]

test_address.py::TestAddress::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pl-region]

test_address.py::TestAddress::test_state_aliases[pl-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Dolnośląskie', 'Kujawsko-pomorskie', 'Lubelskie', 'Lubuskie', 'Mazowieckie', 'Małopolskie', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_address[es-mx]

test_address.py::TestAddress::test_address[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_postal_code[en-au]

test_address.py::TestAddress::test_postal_code[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[cs-True-abbr]

test_address.py::TestAddress::test_state[cs-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['CZ-JC', 'CZ-JM', 'CZ-KA', 'CZ-KR', 'CZ-LI', 'CZ-MO', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_str[de-ch]

test_address.py::TestAddress::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[nl-be-prefecture-True]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_name[de]

test_address.py::TestAddress::test_street_name[de]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['AEG-Siedlung Heimat', 'AEG-Straße', 'Aachener Straße', 'Aalemannufer', 'Aalesunder Straße', 'Aalstieg', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['UA-71', 'UA-74', 'UA-77', 'UA-12', 'UA-14', 'UA-26', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[zh-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['京', '津', '沪', '渝', '冀', '晋', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[kk-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['Z', 'A', 'B', 'E', 'С', 'D', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[no-True-abbr]

test_address.py::TestAddress::test_state[no-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['NO-01', 'NO-02', 'NO-03', 'NO-04', 'NO-05', 'NO-06', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_street_suffix[zh]

test_address.py::TestAddress::test_street_suffix[zh]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['街道', '街', '大街', '侧路', '条', '二条', ...]

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[de-at-region-True]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[el]

test_address.py::TestAddress::test_country[el]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Biélorussie', 'Chypre', 'Άγια Ελένη', 'Άγιος Βαρθολομαίος', 'Άγιος Βικέντιος και Γρεναδίνες', 'Άγιος Πέτρος και Μικελόν', ...]
E        +  where ['Biélorussie', 'Chypre', 'Άγια Ελένη', 'Άγιος Βαρθολομαίος', 'Άγιος Βικέντιος και Γρεναδίνες', 'Άγιος Πέτρος και Μικελόν', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[da-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[da-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DK.HS', 'DK.MJ', 'DK.ND', 'DK.SD', 'DK.SL']

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_zip_code[nl]

test_address.py::TestAddress::test_zip_code[nl]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases[hu-prefecture]

test_address.py::TestAddress::test_state_aliases[hu-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Baranya', 'Borsod-Abaúj-Zemplén', 'Bács-Kiskun', 'Békés', 'Capital City of Budapest', 'Csongrád', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[it-federal_subject]

test_address.py::TestAddress::test_state_aliases[it-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Agrigento', 'Alessandria', 'Ancona', 'Aosta', 'Arezzo', 'Ascoli Piceno', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state[kk-False-name]

test_address.py::TestAddress::test_state[kk-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Астана', 'Алматы', 'Алматы облысы', 'Атырау облысы', 'Ақмола облысы', 'Ақтөбе облысы', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[en-ca-region]

test_address.py::TestAddress::test_state_aliases[en-ca-region]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[da]

test_address.py::TestAddress::test_country[da]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['Afghanistan', 'Albanien', 'Algeriet', 'Amerikansk', 'Amerikanske', 'Andorra', ...]
E        +  where ['Afghanistan', 'Albanien', 'Algeriet', 'Amerikansk', 'Amerikanske', 'Andorra', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_street_suffix[pt-br]

test_address.py::TestAddress::test_street_suffix[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_continent[el]

test_address.py::TestAddress::test_continent[el]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Ανταρκτική', 'Ασία', 'Αφρική', 'Βόρεια Αμερική', 'Ευρώπη', 'Νότια Αμερική', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_postal_code[fi]

test_address.py::TestAddress::test_postal_code[fi]
self = 
address = 

    def test_postal_code(self, address):
        result = address.postal_code()
        current_locale = address.get_current_locale()

        if current_locale in patterns.POSTAL_CODE_REGEX:
            assert re.match(patterns.POSTAL_CODE_REGEX[current_locale], result)
        else:
>           assert re.match(patterns.POSTAL_CODE_REGEX["default"], result)

tests/test_providers/test_address.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[0-9]{5}$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_address.py::TestAddress::test_country[zh]

test_address.py::TestAddress::test_country[zh]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['阿尔及利亚', '安哥拉', '贝宁', '博茨瓦纳', '英属印度洋领地', '布基纳法索', ...]
E        +  where ['阿尔及利亚', '安哥拉', '贝宁', '博茨瓦纳', '英属印度洋领地', '布基纳法索', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_continent[de-ch]

test_address.py::TestAddress::test_continent[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[pt-br-federal_subject]

test_address.py::TestAddress::test_state_aliases[pt-br-federal_subject]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[da-prefecture]

test_address.py::TestAddress::test_state_aliases[da-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Hovedstaden', 'Midtjylland', 'Nordjylland', 'Sjælland', 'Syddanmark']

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[es-mx]

test_address.py::TestAddress::test_street_name[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[fi-region]

test_address.py::TestAddress::test_state_aliases[fi-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Ahvenanmaa', 'Etelä-Karjala', 'Etelä-Pohjanmaa', 'Etelä-Savo', 'Kainuu', 'Kanta-Häme', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases[hr-province]

test_address.py::TestAddress::test_state_aliases[hr-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Bjelovarsko-bilogorska', 'Brodsko-posavska', 'Dubrovačko-neretvanska', 'Grad Zagreb', 'Istarska', 'Karlovačka', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[pt]

test_address.py::TestAddress::test_street_name[pt]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['1 Bairro Belém', '1Ί De Dezembro', '2 Bairro Belém', '3', '3 Bairro Belém', '4 Bairro Belém', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-br-province-True]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[de-at]

test_address.py::TestAddress::test_country[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[pt-br]

test_address.py::TestAddress::test_address[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[fr-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['FR-ARA', 'FR-BFC', 'FR-BRE', 'FR-CVL', 'FR-COR', 'FR-GES', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test__get_fs[False]

test_address.py::TestAddress::test__get_fs[False]
self = 
_address = 
dms = False

    @pytest.mark.parametrize("dms", [True, False])
    def test__get_fs(self, _address, dms):
        latitude = _address._get_fs("lt", dms=dms)
>       assert latitude
E       assert None

tests/test_providers/test_address.py:28: AssertionError

test_address.py::TestAddress::test_state[sk-False-name]

test_address.py::TestAddress::test_state[sk-False-name]
self = 
address = 
abbr = False, key = 'name'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['Banskobystrický', 'Bratislavský', 'Košický', 'Nitriansky', 'Prešovský', 'Trenčiansky', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases[de-ch-region]

test_address.py::TestAddress::test_state_aliases[de-ch-region]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[de-ch]

test_address.py::TestAddress::test_address[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state[fi-True-abbr]

test_address.py::TestAddress::test_state[fi-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['FI-01', 'FI-02', 'FI-03', 'FI-04', 'FI-05', 'FI-06', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[tr-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['TR-01', 'TR-02', 'TR-03', 'TR-04', 'TR-05', 'TR-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[zh-True-abbr]

test_address.py::TestAddress::test_state[zh-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['京', '津', '沪', '渝', '冀', '晋', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_zip_code[kk]

test_address.py::TestAddress::test_zip_code[kk]
self = 
address = 

    def test_zip_code(self, address):
>       assert address.zip_code()
E       assert None
E        +  where None = zip_code()
E        +    where zip_code = .zip_code

tests/test_providers/test_address.py:129: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-federal_subject-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pl-federal_subject-True]
self = 
address = 
alias = 'federal_subject', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['DS', 'KP', 'LB', 'LD', 'LU', 'MA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[is-province]

test_address.py::TestAddress::test_state_aliases[is-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Austurland', 'Höfuðborgarsvæði', 'Norðurland eystra', 'Norðurland vestra', 'Suðurland', 'Suðurnes', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[uk-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['UA-71', 'UA-74', 'UA-77', 'UA-12', 'UA-14', 'UA-26', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_address[sv]

test_address.py::TestAddress::test_address[sv]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[en-au-region-True]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_street_name[tr]

test_address.py::TestAddress::test_street_name[tr]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['Aba', 'Abak', 'Abaka', 'Abakan', 'Abakay', 'Abar', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases[nl-be-federal_subject]

test_address.py::TestAddress::test_state_aliases[nl-be-federal_subject]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[en-ca]

test_address.py::TestAddress::test_address[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_city[sv]

test_address.py::TestAddress::test_city[sv]
self = 
address = 

    def test_city(self, address):
        result = address.city()
>       assert result in address._dataset["city"]
E       AssertionError: assert None in ['Abbekås', 'Abborrberget', 'Agunnaryd', 'Alberga', 'Alby', 'Alfta', ...]

tests/test_providers/test_address.py:163: AssertionError

test_address.py::TestAddress::test_state_aliases[el-province]

test_address.py::TestAddress::test_state_aliases[el-province]
self = 
address = 
alias = 'province'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Στερεά Ελλάδα', 'Πελοπόννησος', 'Νησιά Ιονίου Πελάγους', 'Νησιά Αιγαίου Πελάγους', 'Μακεδονία', 'Κρήτη', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_suffix[tr]

test_address.py::TestAddress::test_street_suffix[tr]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['Caddesi', 'Sokağı']

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_street_suffix[ja]

test_address.py::TestAddress::test_street_suffix[ja]
self = 
address = 

    def test_street_suffix(self, address):
        result = address.street_suffix()
>       assert result in address._dataset["street"]["suffix"]
E       AssertionError: assert None in ['通り', '街道', '道', '道路', '環状', 'バイパス', ...]

tests/test_providers/test_address.py:74: AssertionError

test_address.py::TestAddress::test_state_aliases[ko-prefecture]

test_address.py::TestAddress::test_state_aliases[ko-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['서울특별시', '부산광역시', '대구광역시', '인천광역시', '광주광역시', '대전광역시', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_country_for_current_locale[es-mx]

test_address.py::TestAddress::test_country_for_current_locale[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[pt-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['PT-01', 'PT-02', 'PT-03', 'PT-04', 'PT-05', 'PT-06', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[en-au-region]

test_address.py::TestAddress::test_state_aliases[en-au-region]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases[es-federal_subject]

test_address.py::TestAddress::test_state_aliases[es-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Andalucía', 'Aragón', 'Principiado de Asturias', 'Canarias', 'Cantabria', 'Castilla y León', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_street_name[en-gb]

test_address.py::TestAddress::test_street_name[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_country[fa]

test_address.py::TestAddress::test_country[fa]
self = 
address = 

    def test_country(self, address):
        country = address.country()
>       assert country in address._extract(["country", "name"])
E       AssertionError: assert None in ['آذربایجان', 'آرژانتین', 'آفریقای جنوبی', 'آفریقای مرکزی', 'آلبانی', 'آلمان', ...]
E        +  where ['آذربایجان', 'آرژانتین', 'آفریقای جنوبی', 'آفریقای مرکزی', 'آلبانی', 'آلمان', ...] = _extract(['country', 'name'])
E        +    where _extract = ._extract

tests/test_providers/test_address.py:133: AssertionError

test_address.py::TestAddress::test_state_aliases[et-prefecture]

test_address.py::TestAddress::test_state_aliases[et-prefecture]
self = 
address = 
alias = 'prefecture'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Valga maakond', 'Viljandi maakond', 'Võru maakond', 'Ida-Viru maakond', 'Jõgeva maakond', 'Lääne-Viru maakond', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-region-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ru-region-True]
self = 
address = 
alias = 'region', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['RU-AD', 'RU-AL', 'RU-ALT', 'RU-AMU', 'RU-ARK', 'RU-AST', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[es-region]

test_address.py::TestAddress::test_state_aliases[es-region]
self = 
address = 
alias = 'region'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Andalucía', 'Aragón', 'Principiado de Asturias', 'Canarias', 'Cantabria', 'Castilla y León', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[it-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[it-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['AG', 'AL', 'AN', 'AO', 'AP', 'AQ', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[de-ch-True-abbr]

test_address.py::TestAddress::test_state[de-ch-True-abbr]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_address[el]

test_address.py::TestAddress::test_address[el]
self = 
address = 

    def test_address(self, address):
        result = address.address()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_address.py:78: AssertionError

test_address.py::TestAddress::test_continent[da]

test_address.py::TestAddress::test_continent[da]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Afrika', 'Antarktis', 'Asien', 'Europa', 'Nordamerika', 'Oceanien', ...]

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_street_name[en-au]

test_address.py::TestAddress::test_street_name[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def address(request):
>       return mimesis.Address(request.param)

tests/conftest.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[ko-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['서울', '부산', '대구', '인천', '광주', '대전', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state_aliases[uk-federal_subject]

test_address.py::TestAddress::test_state_aliases[uk-federal_subject]
self = 
address = 
alias = 'federal_subject'

    @pytest.mark.parametrize(
        "alias",
        [
            "province",
            "region",
            "federal_subject",
            "prefecture",
        ],
    )
    def test_state_aliases(self, address, alias):
        result = getattr(address, alias)()
>       assert result in address._dataset["state"]["name"]
E       AssertionError: assert None in ['Одеська область', 'Дніпропетровська область', 'Чернігівська область', 'Харківська область', 'Житомирська область', 'Полтавська область', ...]

tests/test_providers/test_address.py:117: AssertionError

test_address.py::TestAddress::test_continent[et]

test_address.py::TestAddress::test_continent[et]
self = 
address = 

    def test_continent(self, address):
        result = address.continent()
>       assert result in address._dataset["continent"]
E       AssertionError: assert None in ['Aafrika', 'Antarktis', 'Austraalia', 'Euraasia', 'Lõuna-Ameerika', 'Põhja-Ameerika']

tests/test_providers/test_address.py:167: AssertionError

test_address.py::TestAddress::test_street_name[da]

test_address.py::TestAddress::test_street_name[da]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['A R Friis Vej', 'A.C. Meyers Vænge', 'A.F. Beyers Vej', 'A.F. Kriegers Vej', 'A.H. Vedels Plads', 'A.L. Drewsens Vej', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state[el-True-abbr]

test_address.py::TestAddress::test_state[el-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['GR-A', 'GR-I', 'GR-G', 'GR-C', 'GR-F', 'GR-D', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-province-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[cs-province-True]
self = 
address = 
alias = 'province', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['CZ-JC', 'CZ-JM', 'CZ-KA', 'CZ-KR', 'CZ-LI', 'CZ-MO', ...]

tests/test_providers/test_address.py:104: AssertionError

test_address.py::TestAddress::test_state[pl-True-abbr]

test_address.py::TestAddress::test_state[pl-True-abbr]
self = 
address = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "name"),
            (True, "abbr"),
        ],
    )
    def test_state(self, address, abbr, key):
        result = address.state(abbr=abbr)
>       assert result in address._dataset["state"][key]
E       AssertionError: assert None in ['DS', 'KP', 'LB', 'LD', 'LU', 'MA', ...]

tests/test_providers/test_address.py:90: AssertionError

test_address.py::TestAddress::test_street_name[zh]

test_address.py::TestAddress::test_street_name[zh]
self = 
address = 

    def test_street_name(self, address):
        result = address.street_name()
>       assert result in address._dataset["street"]["name"]
E       AssertionError: assert None in ['上海', '大智', '一元', '车站', '四唯', '永清', ...]

tests/test_providers/test_address.py:70: AssertionError

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-prefecture-True]

test_address.py::TestAddress::test_state_aliases_abbreviated[sk-prefecture-True]
self = 
address = 
alias = 'prefecture', abbr = True

    @pytest.mark.parametrize(
        "alias, abbr",
        [
            ("province", True),
            ("region", True),
            ("federal_subject", True),
            ("prefecture", True),
        ],
    )
    def test_state_aliases_abbreviated(self, address, alias, abbr):
        method = getattr(address, alias)
        result = method(abbr=abbr)
>       assert result in address._dataset["state"]["abbr"]
E       AssertionError: assert None in ['SK-BC', 'SK-BL', 'SK-KI', 'SK-NI', 'SK-PV', 'SK-TA', ...]

tests/test_providers/test_address.py:104: AssertionError

test_payment.py::TestPayment::test_credit_card_network

test_payment.py::TestPayment::test_credit_card_network
self = 
payment = 

    def test_credit_card_network(self, payment):
        result = payment.credit_card_network()
>       assert result in CREDIT_CARD_NETWORKS
E       AssertionError: assert None in ['Visa', 'MasterCard', 'Chase', 'American Express', 'Discover']

tests/test_providers/test_payment.py:84: AssertionError

test_payment.py::TestPayment::test_credit_card_owner[Gender.MALE]

test_payment.py::TestPayment::test_credit_card_owner[Gender.MALE]
self = 
payment = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.MALE,
            Gender.FEMALE,
        ],
    )
    def test_credit_card_owner(self, payment, gender):
        result = payment.credit_card_owner(gender=gender)
>       assert isinstance(result, dict)
E       assert False
E        +  where False = isinstance(None, dict)

tests/test_providers/test_payment.py:77: AssertionError

test_payment.py::TestPayment::test_expiration_date

test_payment.py::TestPayment::test_expiration_date
self = 
payment = 

    def test_expiration_date(self, payment):
        result = payment.credit_card_expiration_date(minimum=16, maximum=25)

>       year = result.split("/")[1]
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_payment.py:54: AttributeError

test_payment.py::TestPayment::test_paypal

test_payment.py::TestPayment::test_paypal
self = 
payment = 

    def test_paypal(self, payment):
        result = payment.paypal()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_payment.py:66: AssertionError

test_payment.py::TestPayment::test_str

test_payment.py::TestPayment::test_str
self = 
payment = 

    def test_str(self, payment):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(payment))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_payment.py:19: AssertionError

test_payment.py::TestPayment::test_bitcoin

test_payment.py::TestPayment::test_bitcoin
self = 
payment = 

    def test_bitcoin(self, payment):
        result = payment.bitcoin_address()
>       assert result[0] in ["1", "3"]
E       TypeError: 'NoneType' object is not subscriptable

tests/test_providers/test_payment.py:23: TypeError

test_payment.py::TestPayment::test_credit_card_number[CardType.VISA]

test_payment.py::TestPayment::test_credit_card_number[CardType.VISA]
self = 
payment = 
card_type = 

    @pytest.mark.parametrize(
        "card_type",
        [
            CardType.VISA,
            CardType.MASTER_CARD,
            CardType.AMERICAN_EXPRESS,
        ],
    )
    def test_credit_card_number(self, payment, card_type):
        result = payment.credit_card_number(card_type=card_type)
>       assert re.match(patterns.CREDIT_CARD_REGEX, result)

tests/test_providers/test_payment.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[\\d]+((-|\\s)?[\\d]+)+', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_payment.py::TestPayment::test_ethereum_address

test_payment.py::TestPayment::test_ethereum_address
self = 
payment = 

    def test_ethereum_address(self, payment):
        pattern = r"^0x([a-zA-Z0-9]{40})$"
        address = payment.ethereum_address()
>       assert re.match(pattern, address)

tests/test_providers/test_payment.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^0x([a-zA-Z0-9]{40})$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_payment.py::TestPayment::test_credit_card_number[CardType.MASTER_CARD]

test_payment.py::TestPayment::test_credit_card_number[CardType.MASTER_CARD]
self = 
payment = 
card_type = 

    @pytest.mark.parametrize(
        "card_type",
        [
            CardType.VISA,
            CardType.MASTER_CARD,
            CardType.AMERICAN_EXPRESS,
        ],
    )
    def test_credit_card_number(self, payment, card_type):
        result = payment.credit_card_number(card_type=card_type)
>       assert re.match(patterns.CREDIT_CARD_REGEX, result)

tests/test_providers/test_payment.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[\\d]+((-|\\s)?[\\d]+)+', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_payment.py::TestPayment::test_cid

test_payment.py::TestPayment::test_cid
self = 
payment = 

    def test_cid(self, payment):
        result = payment.cid()

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_payment.py:61: AssertionError

test_payment.py::TestPayment::test_cvv

test_payment.py::TestPayment::test_cvv
self = 
payment = 

    def test_cvv(self, payment):
        result = payment.cvv()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_payment.py:33: AssertionError

test_payment.py::TestPayment::test_credit_card_owner[Gender.FEMALE]

test_payment.py::TestPayment::test_credit_card_owner[Gender.FEMALE]
self = 
payment = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.MALE,
            Gender.FEMALE,
        ],
    )
    def test_credit_card_owner(self, payment, gender):
        result = payment.credit_card_owner(gender=gender)
>       assert isinstance(result, dict)
E       assert False
E        +  where False = isinstance(None, dict)

tests/test_providers/test_payment.py:77: AssertionError

test_payment.py::TestPayment::test_credit_card_number[CardType.AMERICAN_EXPRESS]

test_payment.py::TestPayment::test_credit_card_number[CardType.AMERICAN_EXPRESS]
self = 
payment = 
card_type = 

    @pytest.mark.parametrize(
        "card_type",
        [
            CardType.VISA,
            CardType.MASTER_CARD,
            CardType.AMERICAN_EXPRESS,
        ],
    )
    def test_credit_card_number(self, payment, card_type):
        result = payment.credit_card_number(card_type=card_type)
>       assert re.match(patterns.CREDIT_CARD_REGEX, result)

tests/test_providers/test_payment.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '[\\d]+((-|\\s)?[\\d]+)+', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_random.py::test_uniform[6]

test_random.py::test_uniform[6]
random = , precision = 6

    @pytest.mark.parametrize("precision", [4, 6, 8])
    def test_uniform(random, precision):
        result = random.uniform(2.3, 10.5, precision)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_random.py:46: AssertionError

test_random.py::test_generate_string[U-10]

test_random.py::test_generate_string[U-10]
random = , str_seq = 'U'
length = 10

    @pytest.mark.parametrize(
        "str_seq, length",
        [
            ("U", 10),
            ("A", 20),
        ],
    )
    def test_generate_string(random, str_seq, length):
        result = random._generate_string(str_seq, length)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_random.py:40: TypeError

test_random.py::test_generate_string_by_mask_with_same_placeholders[??-FF-??-?-?]

test_random.py::test_generate_string_by_mask_with_same_placeholders[??-FF-??-?-?]
random = , mask = '??-FF-??'
digit = '?', char = '?'

    @pytest.mark.parametrize(
        "mask, digit, char",
        [
            ("??-FF-??", "?", "?"),
            ("@@-FF-@@", "@", "@"),
        ],
    )
    def test_generate_string_by_mask_with_same_placeholders(random, mask, digit, char):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_random.py:77: Failed

test_random.py::test_get_random_item

test_random.py::test_get_random_item
random = 

    def test_get_random_item(random):
        result = random.choice_enum_item(Gender)
>       assert result in Gender

tests/test_random.py:96: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , obj = None

    def __contains__(cls, obj):
        if not isinstance(obj, Enum):
            import warnings
            warnings.warn(
                    "in 3.12 __contains__ will no longer raise TypeError, but will return True if\n"
                    "obj is a member or a member's value",
                    DeprecationWarning,
                    stacklevel=2,
                    )
>           raise TypeError(
                "unsupported operand type(s) for 'in': '%s' and '%s'" % (
                    type(obj).__qualname__, cls.__class__.__qualname__))
E           TypeError: unsupported operand type(s) for 'in': 'NoneType' and 'EnumMeta'

/usr/lib/python3.10/enum.py:405: TypeError

test_random.py::test_generate_string_by_mask_with_seed[255-B670]

test_random.py::test_generate_string_by_mask_with_seed[255-B670]
random = , seed = 255
expected = 'B670'

    @pytest.mark.parametrize(
        "seed, expected",
        [
            (32, "C239"),
            (0xFF, "B670"),
            ("👽", "B806"),
        ],
    )
    def test_generate_string_by_mask_with_seed(random, seed, expected):
        random.seed(seed)
>       assert random.generate_string_by_mask() == expected
E       AssertionError: assert None == 'B670'
E        +  where None = generate_string_by_mask()
E        +    where generate_string_by_mask = .generate_string_by_mask

tests/test_random.py:91: AssertionError

test_random.py::test_custom_code[##-FA-@@-#-@]

test_random.py::test_custom_code[##-FA-@@-#-@]
random = , mask = '##-FA-@@'
digit = '#', char = '@'

    @pytest.mark.parametrize(
        "mask, digit, char",
        [
            ("##-FA-@@", "#", "@"),
            ("**-AF-$$", "*", "$"),
            ("**-š好-$$", "*", "$"),
        ],
    )
    def test_custom_code(random, mask, digit, char):
        result = random.generate_string_by_mask(mask=mask, char=char, digit=digit)
>       digit, middle, char = result.split("-")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_random.py:62: AttributeError

test_random.py::test_custom_code[*-\u0161\u597d-$$--$]

test_random.py::test_custom_code[**-\u0161\u597d-$$-*-$]
random = , mask = '**-š好-$$'
digit = '*', char = '$'

    @pytest.mark.parametrize(
        "mask, digit, char",
        [
            ("##-FA-@@", "#", "@"),
            ("**-AF-$$", "*", "$"),
            ("**-š好-$$", "*", "$"),
        ],
    )
    def test_custom_code(random, mask, digit, char):
        result = random.generate_string_by_mask(mask=mask, char=char, digit=digit)
>       digit, middle, char = result.split("-")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_random.py:62: AttributeError

test_random.py::test_uniform[8]

test_random.py::test_uniform[8]
random = , precision = 8

    @pytest.mark.parametrize("precision", [4, 6, 8])
    def test_uniform(random, precision):
        result = random.uniform(2.3, 10.5, precision)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_random.py:46: AssertionError

test_random.py::test_weighted_choice_with_empty_dict

test_random.py::test_weighted_choice_with_empty_dict
random = 

    def test_weighted_choice_with_empty_dict(random):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_random.py:120: Failed

test_random.py::test_randints[5-1-20]

test_random.py::test_randints[5-1-20]
random = , n = 5, a = 1, b = 20

    @pytest.mark.parametrize(
        "n, a, b",
        [
            (3, 1, 20),
            (5, 1, 20),
            (10, 1, 20),
        ],
    )
    def test_randints(random, n, a, b):
        result = random.randints(n, a, b)
>       assert len(result) == n
E       TypeError: object of type 'NoneType' has no len()

tests/test_random.py:22: TypeError

test_random.py::test_generate_string_by_mask_with_seed[32-C239]

test_random.py::test_generate_string_by_mask_with_seed[32-C239]
random = , seed = 32
expected = 'C239'

    @pytest.mark.parametrize(
        "seed, expected",
        [
            (32, "C239"),
            (0xFF, "B670"),
            ("👽", "B806"),
        ],
    )
    def test_generate_string_by_mask_with_seed(random, seed, expected):
        random.seed(seed)
>       assert random.generate_string_by_mask() == expected
E       AssertionError: assert None == 'C239'
E        +  where None = generate_string_by_mask()
E        +    where generate_string_by_mask = .generate_string_by_mask

tests/test_random.py:91: AssertionError

test_random.py::test_generate_string[A-20]

test_random.py::test_generate_string[A-20]
random = , str_seq = 'A'
length = 20

    @pytest.mark.parametrize(
        "str_seq, length",
        [
            ("U", 10),
            ("A", 20),
        ],
    )
    def test_generate_string(random, str_seq, length):
        result = random._generate_string(str_seq, length)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_random.py:40: TypeError

test_random.py::test_randints[3-1-20]

test_random.py::test_randints[3-1-20]
random = , n = 3, a = 1, b = 20

    @pytest.mark.parametrize(
        "n, a, b",
        [
            (3, 1, 20),
            (5, 1, 20),
            (10, 1, 20),
        ],
    )
    def test_randints(random, n, a, b):
        result = random.randints(n, a, b)
>       assert len(result) == n
E       TypeError: object of type 'NoneType' has no len()

tests/test_random.py:22: TypeError

test_random.py::test_generate_string_by_mask_with_same_placeholders[@@-FF-@@-@-@]

test_random.py::test_generate_string_by_mask_with_same_placeholders[@@-FF-@@-@-@]
random = , mask = '@@-FF-@@'
digit = '@', char = '@'

    @pytest.mark.parametrize(
        "mask, digit, char",
        [
            ("??-FF-??", "?", "?"),
            ("@@-FF-@@", "@", "@"),
        ],
    )
    def test_generate_string_by_mask_with_same_placeholders(random, mask, digit, char):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_random.py:77: Failed

test_random.py::test_generate_string_by_mask_with_seed[\U0001f47d-B806]

test_random.py::test_generate_string_by_mask_with_seed[\U0001f47d-B806]
random = , seed = '👽'
expected = 'B806'

    @pytest.mark.parametrize(
        "seed, expected",
        [
            (32, "C239"),
            (0xFF, "B670"),
            ("👽", "B806"),
        ],
    )
    def test_generate_string_by_mask_with_seed(random, seed, expected):
        random.seed(seed)
>       assert random.generate_string_by_mask() == expected
E       AssertionError: assert None == 'B806'
E        +  where None = generate_string_by_mask()
E        +    where generate_string_by_mask = .generate_string_by_mask

tests/test_random.py:91: AssertionError

test_random.py::test_weighted_choice

test_random.py::test_weighted_choice
random = 

    def test_weighted_choice(random):
        result = [
            random.weighted_choice(
                choices={
                    Gender.MALE: 0.1,
                    Gender.FEMALE: 0.9,
                },
            )
            for _ in range(100)
        ]

        assert result.count(Gender.MALE) < 20
>       assert result.count(Gender.FEMALE) > 80
E       AssertionError: assert 0 > 80
E        +  where 0 = ()
E        +    where  = [None, None, None, None, None, None, ...].count
E        +    and    = Gender.FEMALE

tests/test_random.py:116: AssertionError

test_random.py::test_uniform[4]

test_random.py::test_uniform[4]
random = , precision = 4

    @pytest.mark.parametrize("precision", [4, 6, 8])
    def test_uniform(random, precision):
        result = random.uniform(2.3, 10.5, precision)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_random.py:46: AssertionError

test_random.py::test_randints[10-1-20]

test_random.py::test_randints[10-1-20]
random = , n = 10, a = 1, b = 20

    @pytest.mark.parametrize(
        "n, a, b",
        [
            (3, 1, 20),
            (5, 1, 20),
            (10, 1, 20),
        ],
    )
    def test_randints(random, n, a, b):
        result = random.randints(n, a, b)
>       assert len(result) == n
E       TypeError: object of type 'NoneType' has no len()

tests/test_random.py:22: TypeError

test_random.py::test_randints_value_error

test_random.py::test_randints_value_error
random = 

    def test_randints_value_error(random):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_random.py:27: Failed

test_random.py::test_custom_code[*-AF-$$--$]

test_random.py::test_custom_code[**-AF-$$-*-$]
random = , mask = '**-AF-$$'
digit = '*', char = '$'

    @pytest.mark.parametrize(
        "mask, digit, char",
        [
            ("##-FA-@@", "#", "@"),
            ("**-AF-$$", "*", "$"),
            ("**-š好-$$", "*", "$"),
        ],
    )
    def test_custom_code(random, mask, digit, char):
        result = random.generate_string_by_mask(mask=mask, char=char, digit=digit)
>       digit, middle, char = result.split("-")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_random.py:62: AttributeError

test_usa_spec.py::test_ssn

test_usa_spec.py::test_ssn
@pytest.fixture
    def usa():
>       return USASpecProvider()

tests/test_builtins/test_usa_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/en.py:12: in __init__
    super().__init__(locale=Locale.EN, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('en', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_usa_spec.py::test_usps_tracking_number[usps-24]

test_usa_spec.py::test_usps_tracking_number[usps-24]
@pytest.fixture
    def usa():
>       return USASpecProvider()

tests/test_builtins/test_usa_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/en.py:12: in __init__
    super().__init__(locale=Locale.EN, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('en', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_usa_spec.py::test_usps_tracking_number[ups-18]

test_usa_spec.py::test_usps_tracking_number[ups-18]
@pytest.fixture
    def usa():
>       return USASpecProvider()

tests/test_builtins/test_usa_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/en.py:12: in __init__
    super().__init__(locale=Locale.EN, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('en', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_usa_spec.py::test_usps_tracking_number[fedex-18]

test_usa_spec.py::test_usps_tracking_number[fedex-18]
@pytest.fixture
    def usa():
>       return USASpecProvider()

tests/test_builtins/test_usa_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/en.py:12: in __init__
    super().__init__(locale=Locale.EN, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('en', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_generic.py::TestSeededGeneric::test_generic_cryptographic

test_generic.py::TestSeededGeneric::test_generic_cryptographic
self = 
g1 = 
g2 = 

    def test_generic_cryptographic(self, g1, g2):
>       assert g1.cryptographic.uuid() != g2.cryptographic.uuid()
E       assert None != None
E        +  where None = uuid()
E        +    where uuid = .uuid
E        +      where  = .cryptographic
E        +  and   None = uuid()
E        +    where uuid = .uuid
E        +      where  = .cryptographic

tests/test_providers/test_generic.py:162: AssertionError

test_generic.py::TestGeneric::test_base_code[no]

test_generic.py::TestGeneric::test_base_code[no]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_finance[fi]

test_generic.py::TestGeneric::test_base_finance[fi]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_finance[de-ch]

test_generic.py::TestGeneric::test_base_finance[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[it]

test_generic.py::TestGeneric::test_add_providers[it]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[ja]

test_generic.py::TestGeneric::test_base_finance[ja]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-gb]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-gb]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_food[uk]

test_generic.py::TestGeneric::test_base_food[uk]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[hr]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[hr]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_payment[zh]

test_generic.py::TestGeneric::test_base_payment[zh]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_text[de-at]

test_generic.py::TestGeneric::test_base_text[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[es]

test_generic.py::TestGeneric::test_add_providers[es]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_food[ko]

test_generic.py::TestGeneric::test_base_food[ko]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[sv]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[sv]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_text[no]

test_generic.py::TestGeneric::test_base_text[no]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[en-gb]

test_generic.py::TestGeneric::test_base_text[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[es-mx]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[es-mx]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_binary_file[no]

test_generic.py::TestGeneric::test_base_binary_file[no]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_food[fa]

test_generic.py::TestGeneric::test_base_food[fa]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_provider[sk]

test_generic.py::TestGeneric::test_add_provider[sk]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_text[kk]

test_generic.py::TestGeneric::test_base_text[kk]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[da]

test_generic.py::TestGeneric::test_base_person[da]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_payment[pt-br]

test_generic.py::TestGeneric::test_base_payment[pt-br]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[no]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[no]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_text[zh]

test_generic.py::TestGeneric::test_base_text[zh]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_code[en-ca]

test_generic.py::TestGeneric::test_base_code[en-ca]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_food[pt-br]

test_generic.py::TestGeneric::test_base_food[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[et]

test_generic.py::TestGeneric::test_base_payment[et]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[da]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[da]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_address[pt-br]

test_generic.py::TestGeneric::test_base_address[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[zh]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[zh]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_code[pt]

test_generic.py::TestGeneric::test_base_code[pt]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers[fa]

test_generic.py::TestGeneric::test_add_providers[fa]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[no]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[no]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[hu]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[hu]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_food[cs]

test_generic.py::TestGeneric::test_base_food[cs]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[fr]

test_generic.py::TestGeneric::test_base_binary_file[fr]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_payment[cs]

test_generic.py::TestGeneric::test_base_payment[cs]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[uk]

test_generic.py::TestGeneric::test_base_finance[uk]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_provider[da]

test_generic.py::TestGeneric::test_add_provider[da]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[fi]

test_generic.py::TestGeneric::test_base_payment[fi]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_code[ja]

test_generic.py::TestGeneric::test_base_code[ja]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers[is]

test_generic.py::TestGeneric::test_add_providers[is]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_binary_file[it]

test_generic.py::TestGeneric::test_base_binary_file[it]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pl]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pl]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_person[nl]

test_generic.py::TestGeneric::test_base_person[nl]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_code[de-at]

test_generic.py::TestGeneric::test_base_code[de-at]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers[de]

test_generic.py::TestGeneric::test_add_providers[de]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[en-ca]

test_generic.py::TestGeneric::test_base_address[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[sv]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[sv]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_person[cs]

test_generic.py::TestGeneric::test_base_person[cs]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fr]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fr]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fi]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fi]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_person[en-ca]

test_generic.py::TestGeneric::test_base_person[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[uk]

test_generic.py::TestGeneric::test_base_payment[uk]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_code[es-mx]

test_generic.py::TestGeneric::test_base_code[es-mx]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_reseed[de-at]

test_generic.py::TestGeneric::test_reseed[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[no]

test_generic.py::TestGeneric::test_base_finance[no]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_payment[sv]

test_generic.py::TestGeneric::test_base_payment[sv]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_person[es]

test_generic.py::TestGeneric::test_base_person[es]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_code[et]

test_generic.py::TestGeneric::test_base_code[et]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_food[tr]

test_generic.py::TestGeneric::test_base_food[tr]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_address[no]

test_generic.py::TestGeneric::test_base_address[no]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_payment[da]

test_generic.py::TestGeneric::test_base_payment[da]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_address[de-at]

test_generic.py::TestGeneric::test_base_address[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[es]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[es]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_binary_file[kk]

test_generic.py::TestGeneric::test_base_binary_file[kk]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[cs]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[cs]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_providers[hu]

test_generic.py::TestGeneric::test_add_providers[hu]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[is]

test_generic.py::TestGeneric::test_base_person[is]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_address[is]

test_generic.py::TestGeneric::test_base_address[is]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers[ja]

test_generic.py::TestGeneric::test_add_providers[ja]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider[sv]

test_generic.py::TestGeneric::test_add_provider[sv]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_food[nl-be]

test_generic.py::TestGeneric::test_base_food[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[ko]

test_generic.py::TestGeneric::test_add_providers[ko]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pt-br]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pt-br]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_text[is]

test_generic.py::TestGeneric::test_base_text[is]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[en-au]

test_generic.py::TestGeneric::test_base_person[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-au]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-au]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_text[pl]

test_generic.py::TestGeneric::test_base_text[pl]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[ru]

test_generic.py::TestGeneric::test_base_text[ru]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[sv]

test_generic.py::TestGeneric::test_base_person[sv]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_address[es-mx]

test_generic.py::TestGeneric::test_base_address[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[pt]

test_generic.py::TestGeneric::test_base_payment[pt]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[cs]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[cs]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de-ch]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de-ch]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[is]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[is]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[hu]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[hu]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_code[hr]

test_generic.py::TestGeneric::test_base_code[hr]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pl]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pl]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_address[nl-be]

test_generic.py::TestGeneric::test_base_address[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[ko]

test_generic.py::TestGeneric::test_base_payment[ko]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_person[en-gb]

test_generic.py::TestGeneric::test_base_person[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[et]

test_generic.py::TestGeneric::test_base_finance[et]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers[uk]

test_generic.py::TestGeneric::test_add_providers[uk]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[hr]

test_generic.py::TestGeneric::test_base_payment[hr]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[hr]

test_generic.py::TestGeneric::test_base_finance[hr]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers[nl]

test_generic.py::TestGeneric::test_add_providers[nl]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[hu]

test_generic.py::TestGeneric::test_base_address[hu]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers[en-ca]

test_generic.py::TestGeneric::test_add_providers[en-ca]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[it]

test_generic.py::TestGeneric::test_base_address[it]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_person[el]

test_generic.py::TestGeneric::test_base_person[el]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[en-gb]

test_generic.py::TestGeneric::test_add_provider[en-gb]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[hu]

test_generic.py::TestGeneric::test_base_person[hu]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_address[fi]

test_generic.py::TestGeneric::test_base_address[fi]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[uk]

test_generic.py::TestGeneric::test_base_binary_file[uk]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ru]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ru]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_code[fr]

test_generic.py::TestGeneric::test_base_code[fr]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_address[fa]

test_generic.py::TestGeneric::test_base_address[fa]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_provider[ko]

test_generic.py::TestGeneric::test_add_provider[ko]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[ru]

test_generic.py::TestGeneric::test_base_person[ru]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[uk]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[uk]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers[sv]

test_generic.py::TestGeneric::test_add_providers[sv]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_text[pt]

test_generic.py::TestGeneric::test_base_text[pt]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_code[da]

test_generic.py::TestGeneric::test_base_code[da]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_address[cs]

test_generic.py::TestGeneric::test_base_address[cs]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ko]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ko]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_reseed[nl-be]

test_generic.py::TestGeneric::test_reseed[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[en-gb]

test_generic.py::TestGeneric::test_base_finance[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider[el]

test_generic.py::TestGeneric::test_add_provider[el]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider[en-au]

test_generic.py::TestGeneric::test_add_provider[en-au]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[et]

test_generic.py::TestGeneric::test_base_address[et]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_code[cs]

test_generic.py::TestGeneric::test_base_code[cs]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_text[fr]

test_generic.py::TestGeneric::test_base_text[fr]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[de]

test_generic.py::TestGeneric::test_base_binary_file[de]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_providers[no]

test_generic.py::TestGeneric::test_add_providers[no]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_binary_file[pl]

test_generic.py::TestGeneric::test_base_binary_file[pl]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_address[de]

test_generic.py::TestGeneric::test_base_address[de]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ja]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ja]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-gb]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-gb]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_person[tr]

test_generic.py::TestGeneric::test_base_person[tr]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_code[tr]

test_generic.py::TestGeneric::test_base_code[tr]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[nl-be]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[nl-be]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_finance[da]

test_generic.py::TestGeneric::test_base_finance[da]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_code[hu]

test_generic.py::TestGeneric::test_base_code[hu]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[es]

test_generic.py::TestGeneric::test_base_binary_file[es]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_food[no]

test_generic.py::TestGeneric::test_base_food[no]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fa]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fa]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_payment[no]

test_generic.py::TestGeneric::test_base_payment[no]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_food[is]

test_generic.py::TestGeneric::test_base_food[is]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[sk]

test_generic.py::TestGeneric::test_base_binary_file[sk]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[tr]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[tr]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-au]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-au]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_food[nl]

test_generic.py::TestGeneric::test_base_food[nl]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_finance[it]

test_generic.py::TestGeneric::test_base_finance[it]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fr]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fr]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_person[no]

test_generic.py::TestGeneric::test_base_person[no]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_person[sk]

test_generic.py::TestGeneric::test_base_person[sk]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[pt]

test_generic.py::TestGeneric::test_base_binary_file[pt]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_text[it]

test_generic.py::TestGeneric::test_base_text[it]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[ja]

test_generic.py::TestGeneric::test_base_person[ja]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_payment[de]

test_generic.py::TestGeneric::test_base_payment[de]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_food[da]

test_generic.py::TestGeneric::test_base_food[da]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_providers[hr]

test_generic.py::TestGeneric::test_add_providers[hr]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_text[es-mx]

test_generic.py::TestGeneric::test_base_text[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_food[et]

test_generic.py::TestGeneric::test_base_food[et]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_address[da]

test_generic.py::TestGeneric::test_base_address[da]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_food[el]

test_generic.py::TestGeneric::test_base_food[el]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_finance[kk]

test_generic.py::TestGeneric::test_base_finance[kk]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_person[fi]

test_generic.py::TestGeneric::test_base_person[fi]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[hu]

test_generic.py::TestGeneric::test_add_provider[hu]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[de-at]

test_generic.py::TestGeneric::test_base_person[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_food[ru]

test_generic.py::TestGeneric::test_base_food[ru]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_provider[nl-be]

test_generic.py::TestGeneric::test_add_provider[nl-be]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[kk]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[kk]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_person[it]

test_generic.py::TestGeneric::test_base_person[it]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pt-br]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pt-br]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-ca]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[en-ca]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_code[is]

test_generic.py::TestGeneric::test_base_code[is]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_finance[en-ca]

test_generic.py::TestGeneric::test_base_finance[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_text[hr]

test_generic.py::TestGeneric::test_base_text[hr]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_food[de-at]

test_generic.py::TestGeneric::test_base_food[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[de-at]

test_generic.py::TestGeneric::test_base_finance[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[en-gb]

test_generic.py::TestGeneric::test_base_payment[en-gb]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_providers[sk]

test_generic.py::TestGeneric::test_add_providers[sk]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[fi]

test_generic.py::TestGeneric::test_base_code[fi]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_payment[ru]

test_generic.py::TestGeneric::test_base_payment[ru]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_code[fa]

test_generic.py::TestGeneric::test_base_code[fa]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[pt-br]

test_generic.py::TestGeneric::test_base_binary_file[pt-br]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_code[en-au]

test_generic.py::TestGeneric::test_base_code[en-au]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers[en-au]

test_generic.py::TestGeneric::test_add_providers[en-au]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_text[et]

test_generic.py::TestGeneric::test_base_text[et]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[pl]

test_generic.py::TestGeneric::test_base_person[pl]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[hu]

test_generic.py::TestGeneric::test_base_binary_file[hu]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_finance[en-au]

test_generic.py::TestGeneric::test_base_finance[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[el]

test_generic.py::TestGeneric::test_base_payment[el]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_text[pt-br]

test_generic.py::TestGeneric::test_base_text[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[ru]

test_generic.py::TestGeneric::test_base_finance[ru]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[en-au]

test_generic.py::TestGeneric::test_base_binary_file[en-au]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_finance[nl-be]

test_generic.py::TestGeneric::test_base_finance[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ko]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ko]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_binary_file[nl]

test_generic.py::TestGeneric::test_base_binary_file[nl]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_payment[kk]

test_generic.py::TestGeneric::test_base_payment[kk]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_payment[pl]

test_generic.py::TestGeneric::test_base_payment[pl]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[tr]

test_generic.py::TestGeneric::test_base_finance[tr]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_code[ru]

test_generic.py::TestGeneric::test_base_code[ru]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[da]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[da]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers[kk]

test_generic.py::TestGeneric::test_add_providers[kk]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_reseed[en-au]

test_generic.py::TestGeneric::test_reseed[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pt]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[pt]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[nl-be]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[nl-be]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_text[fa]

test_generic.py::TestGeneric::test_base_text[fa]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_add_provider[fi]

test_generic.py::TestGeneric::test_add_provider[fi]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[hu]

test_generic.py::TestGeneric::test_base_finance[hu]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_address[ko]

test_generic.py::TestGeneric::test_base_address[ko]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_person[pt]

test_generic.py::TestGeneric::test_base_person[pt]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_providers[fi]

test_generic.py::TestGeneric::test_add_providers[fi]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[de]

test_generic.py::TestGeneric::test_base_code[de]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[nl-be]

test_generic.py::TestGeneric::test_base_binary_file[nl-be]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[es]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[es]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_payment[en-ca]

test_generic.py::TestGeneric::test_base_payment[en-ca]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_text[en-au]

test_generic.py::TestGeneric::test_base_text[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_text[de-ch]

test_generic.py::TestGeneric::test_base_text[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider[kk]

test_generic.py::TestGeneric::test_add_provider[kk]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[et]

test_generic.py::TestGeneric::test_base_person[et]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[en-gb]

test_generic.py::TestGeneric::test_base_binary_file[en-gb]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_finance[pt-br]

test_generic.py::TestGeneric::test_base_finance[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de-at]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[de-at]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider[fa]

test_generic.py::TestGeneric::test_add_provider[fa]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_food[de-ch]

test_generic.py::TestGeneric::test_base_food[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_person[fa]

test_generic.py::TestGeneric::test_base_person[fa]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_finance[fa]

test_generic.py::TestGeneric::test_base_finance[fa]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_text[nl]

test_generic.py::TestGeneric::test_base_text[nl]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_food[es-mx]

test_generic.py::TestGeneric::test_base_food[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[es-mx]

test_generic.py::TestGeneric::test_add_providers[es-mx]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[zh]

test_generic.py::TestGeneric::test_base_code[zh]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[et]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[et]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_code[nl-be]

test_generic.py::TestGeneric::test_base_code[nl-be]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_text[cs]

test_generic.py::TestGeneric::test_base_text[cs]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_person[de-ch]

test_generic.py::TestGeneric::test_base_person[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[cs]

test_generic.py::TestGeneric::test_add_providers[cs]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_reseed[de-ch]

test_generic.py::TestGeneric::test_reseed[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_address[sv]

test_generic.py::TestGeneric::test_base_address[sv]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers[pl]

test_generic.py::TestGeneric::test_add_providers[pl]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[sv]

test_generic.py::TestGeneric::test_base_finance[sv]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_text[nl-be]

test_generic.py::TestGeneric::test_base_text[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider[tr]

test_generic.py::TestGeneric::test_add_provider[tr]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[sk]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[sk]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_binary_file[ru]

test_generic.py::TestGeneric::test_base_binary_file[ru]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[sk]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[sk]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider[nl]

test_generic.py::TestGeneric::test_add_provider[nl]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[nl]

test_generic.py::TestGeneric::test_base_payment[nl]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_payment[hu]

test_generic.py::TestGeneric::test_base_payment[hu]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[de]

test_generic.py::TestGeneric::test_base_finance[de]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_code[it]

test_generic.py::TestGeneric::test_base_code[it]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[tr]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[tr]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[it]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[it]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_address[pl]

test_generic.py::TestGeneric::test_base_address[pl]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_food[pl]

test_generic.py::TestGeneric::test_base_food[pl]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_payment[it]

test_generic.py::TestGeneric::test_base_payment[it]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fa]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[fa]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[et]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[et]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_person[uk]

test_generic.py::TestGeneric::test_base_person[uk]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_providers[fr]

test_generic.py::TestGeneric::test_add_providers[fr]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers[ru]

test_generic.py::TestGeneric::test_add_providers[ru]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[uk]

test_generic.py::TestGeneric::test_base_code[uk]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fi]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[fi]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_code[sk]

test_generic.py::TestGeneric::test_base_code[sk]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de-at]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de-at]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_food[hu]

test_generic.py::TestGeneric::test_base_food[hu]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_text[uk]

test_generic.py::TestGeneric::test_base_text[uk]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_code[sv]

test_generic.py::TestGeneric::test_base_code[sv]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_person[fr]

test_generic.py::TestGeneric::test_base_person[fr]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[ja]

test_generic.py::TestGeneric::test_add_provider[ja]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[nl-be]

test_generic.py::TestGeneric::test_base_payment[nl-be]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_food[hr]

test_generic.py::TestGeneric::test_base_food[hr]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[tr]

test_generic.py::TestGeneric::test_base_binary_file[tr]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider[it]

test_generic.py::TestGeneric::test_add_provider[it]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[cs]

test_generic.py::TestGeneric::test_base_finance[cs]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_provider[de-ch]

test_generic.py::TestGeneric::test_add_provider[de-ch]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[is]

test_generic.py::TestGeneric::test_base_finance[is]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_text[fi]

test_generic.py::TestGeneric::test_base_text[fi]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_food[kk]

test_generic.py::TestGeneric::test_base_food[kk]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[en-ca]

test_generic.py::TestGeneric::test_base_binary_file[en-ca]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_reseed[en-ca]

test_generic.py::TestGeneric::test_reseed[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_food[en-ca]

test_generic.py::TestGeneric::test_base_food[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_address[tr]

test_generic.py::TestGeneric::test_base_address[tr]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[de-ch]

test_generic.py::TestGeneric::test_base_binary_file[de-ch]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_providers[de-ch]

test_generic.py::TestGeneric::test_add_providers[de-ch]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[es-mx]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[es-mx]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider[de]

test_generic.py::TestGeneric::test_add_provider[de]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[el]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[el]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_finance[sk]

test_generic.py::TestGeneric::test_base_finance[sk]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[is]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[is]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_binary_file[sv]

test_generic.py::TestGeneric::test_base_binary_file[sv]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_food[ja]

test_generic.py::TestGeneric::test_base_food[ja]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_payment[fa]

test_generic.py::TestGeneric::test_base_payment[fa]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[pt]

test_generic.py::TestGeneric::test_base_finance[pt]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_code[kk]

test_generic.py::TestGeneric::test_base_code[kk]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[is]

test_generic.py::TestGeneric::test_base_binary_file[is]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_person[es-mx]

test_generic.py::TestGeneric::test_base_person[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_food[fr]

test_generic.py::TestGeneric::test_base_food[fr]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[ja]

test_generic.py::TestGeneric::test_base_binary_file[ja]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_address[el]

test_generic.py::TestGeneric::test_base_address[el]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[fa]

test_generic.py::TestGeneric::test_base_binary_file[fa]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_food[sk]

test_generic.py::TestGeneric::test_base_food[sk]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[uk]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[uk]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_person[zh]

test_generic.py::TestGeneric::test_base_person[zh]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[cs]

test_generic.py::TestGeneric::test_add_provider[cs]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_text[de]

test_generic.py::TestGeneric::test_base_text[de]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[es]

test_generic.py::TestGeneric::test_base_text[es]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[sk]

test_generic.py::TestGeneric::test_base_text[sk]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_address[nl]

test_generic.py::TestGeneric::test_base_address[nl]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_text[ja]

test_generic.py::TestGeneric::test_base_text[ja]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[hu]

test_generic.py::TestGeneric::test_base_text[hu]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_add_provider[zh]

test_generic.py::TestGeneric::test_add_provider[zh]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider[is]

test_generic.py::TestGeneric::test_add_provider[is]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ru]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[ru]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_base_binary_file[el]

test_generic.py::TestGeneric::test_base_binary_file[el]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_payment[es]

test_generic.py::TestGeneric::test_base_payment[es]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[hr]

test_generic.py::TestGeneric::test_base_binary_file[hr]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_person[kk]

test_generic.py::TestGeneric::test_base_person[kk]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[fr]

test_generic.py::TestGeneric::test_add_provider[fr]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[hr]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[hr]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_person[nl-be]

test_generic.py::TestGeneric::test_base_person[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_food[pt]

test_generic.py::TestGeneric::test_base_food[pt]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_food[fi]

test_generic.py::TestGeneric::test_base_food[fi]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_add_providers[de-at]

test_generic.py::TestGeneric::test_add_providers[de-at]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_binary_file[da]

test_generic.py::TestGeneric::test_base_binary_file[da]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_add_provider[ru]

test_generic.py::TestGeneric::test_add_provider[ru]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_binary_file[de-at]

test_generic.py::TestGeneric::test_base_binary_file[de-at]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_finance[ko]

test_generic.py::TestGeneric::test_base_finance[ko]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de-ch]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[de-ch]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_reseed[es-mx]

test_generic.py::TestGeneric::test_reseed[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_finance[es-mx]

test_generic.py::TestGeneric::test_base_finance[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_finance(self, generic):
>       result = generic.finance.currency_symbol()

tests/test_providers/test_generic.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[da]

test_generic.py::TestGeneric::test_add_providers[da]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_food[es]

test_generic.py::TestGeneric::test_base_food[es]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_food[sv]

test_generic.py::TestGeneric::test_base_food[sv]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_finance[fr]

test_generic.py::TestGeneric::test_base_finance[fr]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[fi]

test_generic.py::TestGeneric::test_base_binary_file[fi]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_food[en-au]

test_generic.py::TestGeneric::test_base_food[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_providers[pt-br]

test_generic.py::TestGeneric::test_add_providers[pt-br]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider[no]

test_generic.py::TestGeneric::test_add_provider[no]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[kk]

test_generic.py::TestGeneric::test_base_address[kk]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_address[sk]

test_generic.py::TestGeneric::test_base_address[sk]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers[et]

test_generic.py::TestGeneric::test_add_providers[et]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_food[en-gb]

test_generic.py::TestGeneric::test_base_food[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_food(self, generic):
>       result = generic.food.fruit()

tests/test_providers/test_generic.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_code[nl]

test_generic.py::TestGeneric::test_base_code[nl]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers[nl-be]

test_generic.py::TestGeneric::test_add_providers[nl-be]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_binary_file[ko]

test_generic.py::TestGeneric::test_base_binary_file[ko]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_payment[sk]

test_generic.py::TestGeneric::test_base_payment[sk]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_finance[zh]

test_generic.py::TestGeneric::test_base_finance[zh]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_person[pt-br]

test_generic.py::TestGeneric::test_base_person[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_person(self, generic):
>       result = generic.person.username()

tests/test_providers/test_generic.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_code[ko]

test_generic.py::TestGeneric::test_base_code[ko]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider[pt]

test_generic.py::TestGeneric::test_add_provider[pt]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_finance[el]

test_generic.py::TestGeneric::test_base_finance[el]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_food[de]

test_generic.py::TestGeneric::test_base_food[de]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_address[uk]

test_generic.py::TestGeneric::test_base_address[uk]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_text[tr]

test_generic.py::TestGeneric::test_base_text[tr]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_code[el]

test_generic.py::TestGeneric::test_base_code[el]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider[et]

test_generic.py::TestGeneric::test_add_provider[et]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider[pt-br]

test_generic.py::TestGeneric::test_add_provider[pt-br]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[tr]

test_generic.py::TestGeneric::test_base_payment[tr]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_address[es]

test_generic.py::TestGeneric::test_base_address[es]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_address[zh]

test_generic.py::TestGeneric::test_base_address[zh]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_finance[pl]

test_generic.py::TestGeneric::test_base_finance[pl]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_providers[zh]

test_generic.py::TestGeneric::test_add_providers[zh]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_reseed[pt-br]

test_generic.py::TestGeneric::test_reseed[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[ja]

test_generic.py::TestGeneric::test_base_payment[ja]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_food[zh]

test_generic.py::TestGeneric::test_base_food[zh]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_code[en-gb]

test_generic.py::TestGeneric::test_base_code[en-gb]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_address[ru]

test_generic.py::TestGeneric::test_base_address[ru]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_food[it]

test_generic.py::TestGeneric::test_base_food[it]
self = 
generic = 

    def test_base_food(self, generic):
        result = generic.food.fruit()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:38: AssertionError

test_generic.py::TestGeneric::test_base_payment[en-au]

test_generic.py::TestGeneric::test_base_payment[en-au]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[el]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[el]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers[pt]

test_generic.py::TestGeneric::test_add_providers[pt]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_providers[en-gb]

test_generic.py::TestGeneric::test_add_providers[en-gb]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[ko]

test_generic.py::TestGeneric::test_base_person[ko]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_address[pt]

test_generic.py::TestGeneric::test_base_address[pt]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[nl]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[nl]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_add_provider[es-mx]

test_generic.py::TestGeneric::test_add_provider[es-mx]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[nl]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[nl]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_providers[tr]

test_generic.py::TestGeneric::test_add_providers[tr]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[pl]

test_generic.py::TestGeneric::test_base_code[pl]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[it]

test_generic.py::TestGeneric::test_add_providers_generic_to_generic[it]
self = 
generic = 

    def test_add_providers_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:112: Failed

test_generic.py::TestGeneric::test_reseed[en-gb]

test_generic.py::TestGeneric::test_reseed[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_reseed(self, generic):
        generic.reseed(0xFFF)
        number_1 = generic.random.uniform(0, 1000)
>       address_1 = generic.address.address()

tests/test_providers/test_generic.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider[uk]

test_generic.py::TestGeneric::test_add_provider[uk]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_address[de-ch]

test_generic.py::TestGeneric::test_base_address[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_payment[is]

test_generic.py::TestGeneric::test_base_payment[is]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_text[ko]

test_generic.py::TestGeneric::test_base_text[ko]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_text[sv]

test_generic.py::TestGeneric::test_base_text[sv]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-ca]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[en-ca]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_binary_file[cs]

test_generic.py::TestGeneric::test_base_binary_file[cs]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_person[hr]

test_generic.py::TestGeneric::test_base_person[hr]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_add_provider[hr]

test_generic.py::TestGeneric::test_add_provider[hr]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pt]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[pt]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ja]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[ja]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_address[en-gb]

test_generic.py::TestGeneric::test_base_address[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_binary_file[et]

test_generic.py::TestGeneric::test_base_binary_file[et]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_address[hr]

test_generic.py::TestGeneric::test_base_address[hr]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_address[ja]

test_generic.py::TestGeneric::test_base_address[ja]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_text[en-ca]

test_generic.py::TestGeneric::test_base_text[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_text(self, generic):
>       result = generic.text.words()

tests/test_providers/test_generic.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_add_provider[de-at]

test_generic.py::TestGeneric::test_add_provider[de-at]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[zh]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[zh]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_generic.py::TestGeneric::test_base_code[es]

test_generic.py::TestGeneric::test_base_code[es]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_add_provider[pl]

test_generic.py::TestGeneric::test_add_provider[pl]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_code[de-ch]

test_generic.py::TestGeneric::test_base_code[de-ch]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_text[da]

test_generic.py::TestGeneric::test_base_text[da]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_base_finance[nl]

test_generic.py::TestGeneric::test_base_finance[nl]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_add_provider[es]

test_generic.py::TestGeneric::test_add_provider[es]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_payment[fr]

test_generic.py::TestGeneric::test_base_payment[fr]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_payment[es-mx]

test_generic.py::TestGeneric::test_base_payment[es-mx]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_payment[de-ch]

test_generic.py::TestGeneric::test_base_payment[de-ch]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_add_provider[en-ca]

test_generic.py::TestGeneric::test_add_provider[en-ca]
self = 
generic = 

    def test_add_provider(self, generic):
        class CustomProvider(BaseProvider):
            def __init__(self, seed, a, b, c):
                super().__init__(seed=seed)
                self.a = a
                self.b = b
                self.c = c

            class Meta:
                name = "custom_provider"

        generic.add_provider(CustomProvider, a="a", b="b", c="c", seed=0xFFF)

        # See https://github.com/lk-geimfari/mimesis/issues/1172
>       assert generic.custom_provider.seed != 0xFFF

tests/test_providers/test_generic.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'custom_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_custom_provider'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_base_person[de]

test_generic.py::TestGeneric::test_base_person[de]
self = 
generic = 

    def test_base_person(self, generic):
        result = generic.person.username()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:22: AssertionError

test_generic.py::TestGeneric::test_base_payment[de-at]

test_generic.py::TestGeneric::test_base_payment[de-at]
self = 
generic = 

    def test_base_payment(self, generic):
        result = generic.payment.bitcoin_address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:30: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[es-mx]

test_generic.py::TestGeneric::test_base_binary_file[es-mx]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_address[en-au]

test_generic.py::TestGeneric::test_base_address[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

self = 
generic = 

    def test_base_address(self, generic):
>       result = generic.address.address()

tests/test_providers/test_generic.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/generic.py:39: in __getattr__
    self.__dict__[attrname] = attribute(self.locale, self.seed)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_generic.py::TestGeneric::test_base_code[pt-br]

test_generic.py::TestGeneric::test_base_code[pt-br]
self = 
generic = 

    def test_base_code(self, generic):
        result = generic.code.isbn()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:46: AssertionError

test_generic.py::TestGeneric::test_base_binary_file[zh]

test_generic.py::TestGeneric::test_base_binary_file[zh]
self = 
generic = 

    def test_base_binary_file(self, generic):
        result = generic.binaryfile.video()
>       assert isinstance(result, bytes)
E       assert False
E        +  where False = isinstance(None, bytes)

tests/test_providers/test_generic.py:50: AssertionError

test_generic.py::TestGeneric::test_base_address[fr]

test_generic.py::TestGeneric::test_base_address[fr]
self = 
generic = 

    def test_base_address(self, generic):
        result = generic.address.address()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:34: AssertionError

test_generic.py::TestGeneric::test_base_finance[es]

test_generic.py::TestGeneric::test_base_finance[es]
self = 
generic = 

    def test_base_finance(self, generic):
        result = generic.finance.currency_symbol()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:42: AssertionError

test_generic.py::TestGeneric::test_base_text[el]

test_generic.py::TestGeneric::test_base_text[el]
self = 
generic = 

    def test_base_text(self, generic):
        result = generic.text.words()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_generic.py:26: AssertionError

test_generic.py::TestGeneric::test_add_providers[el]

test_generic.py::TestGeneric::test_add_providers[el]
self = 
generic = 

    def test_add_providers(self, generic):
        class Provider1(BaseProvider):
            @staticmethod
            def one():
                return 1

        class Provider2(BaseProvider):
            class Meta:
                name = "custom_provider"

            @staticmethod
            def two():
                return 2

        class Provider3(BaseProvider):
            @staticmethod
            def three():
                return 3

        class Provider4:
            @staticmethod
            def empty():
                ...

        class Provider5(BaseProvider):
            @staticmethod
            def five():
                return 5

        generic.add_providers(Provider1, Provider2, Provider3)
>       assert generic.provider1.one() == 1

tests/test_providers/test_generic.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'provider1'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_provider1'

mimesis/providers/generic.py:37: AttributeError

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[kk]

test_generic.py::TestGeneric::test_add_provider_generic_to_generic[kk]
self = 
generic = 

    def test_add_provider_generic_to_generic(self, generic):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_generic.py:108: Failed

test_internet.py::TestInternet::test_query_string[15-5-10]

test_internet.py::TestInternet::test_query_string[15-5-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_dsn[DSNType.POSTGRES]

test_internet.py::TestInternet::test_dsn[DSNType.POSTGRES]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_http_status_message

test_internet.py::TestInternet::test_http_status_message
self = 
net = 

    def test_http_status_message(self, net):
        result = net.http_status_message()
>       assert result in datasets.HTTP_STATUS_MSGS
E       AssertionError: assert None in ['100 Continue', '101 Switching Protocols', '102 Processing', '103 Early Hints', '200 OK', '201 Created', ...]
E        +  where ['100 Continue', '101 Switching Protocols', '102 Processing', '103 Early Hints', '200 OK', '201 Created', ...] = datasets.HTTP_STATUS_MSGS

tests/test_providers/test_internet.py:255: AssertionError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-1-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-1-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_hostname[subdomains0]

test_internet.py::TestInternet::test_hostname[subdomains0]
self = 
net = 
subdomains = []

    @pytest.mark.parametrize(
        "subdomains",
        [
            [],
            ["app", "core", "api"],
            ["dev", "prod", "test"],
            ["admin", "smtp", "pop3"],
        ],
    )
    def test_hostname(self, net, subdomains):
        hostname = net.hostname(subdomains=subdomains)
>       subdomain, *_ = hostname.split(".", 1)
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:50: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-7-10]

test_internet.py::TestInternet::test_query_parameters[5-7-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[15-9-10]

test_internet.py::TestInternet::test_query_string[15-9-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-8-10]

test_internet.py::TestInternet::test_query_parameters[5-8-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[10-2-10]

test_internet.py::TestInternet::test_query_string[10-2-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-4-10]

test_internet.py::TestInternet::test_query_parameters[5-4-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_top_level_domain[TLDType.GEOTLD]

test_internet.py::TestInternet::test_top_level_domain[TLDType.GEOTLD]
self = 
net = 
domain_type = 

    @pytest.mark.parametrize(
        "domain_type",
        [
            TLDType.CCTLD,
            TLDType.GTLD,
            TLDType.GEOTLD,
            TLDType.UTLD,
            TLDType.STLD,
        ],
    )
    def test_top_level_domain(self, net, domain_type):
        res_a = net.top_level_domain(tld_type=domain_type)
        res_b = net.tld(tld_type=domain_type)
>       assert res_a in datasets.TLD[domain_type.value]
E       AssertionError: assert None in ['.abudhabi', '.africa', '.africa', '.alsace', '.amsterdam', '.aquitaine', ...]

tests/test_providers/test_internet.py:270: AssertionError

test_internet.py::TestInternet::test_query_string[10-4-10]

test_internet.py::TestInternet::test_query_string[10-4-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[15-10-10]

test_internet.py::TestInternet::test_query_string[15-10-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_hostname[subdomains3]

test_internet.py::TestInternet::test_hostname[subdomains3]
self = 
net = 
subdomains = ['admin', 'smtp', 'pop3']

    @pytest.mark.parametrize(
        "subdomains",
        [
            [],
            ["app", "core", "api"],
            ["dev", "prod", "test"],
            ["admin", "smtp", "pop3"],
        ],
    )
    def test_hostname(self, net, subdomains):
        hostname = net.hostname(subdomains=subdomains)
>       subdomain, *_ = hostname.split(".", 1)
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:50: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-5-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-5-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_ip_v4_object

test_internet.py::TestInternet::test_ip_v4_object
self = 
net = 

    def test_ip_v4_object(self, net):
        ip = net.ip_v4_object()
>       assert ip.version == 4
E       AttributeError: 'NoneType' object has no attribute 'version'

tests/test_providers/test_internet.py:185: AttributeError

test_internet.py::TestInternet::test_query_string[10-9-10]

test_internet.py::TestInternet::test_query_string[10-9-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_url[URLScheme.WS]

test_internet.py::TestInternet::test_url[URLScheme.WS]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_query_parameters[15-2-10]

test_internet.py::TestInternet::test_query_parameters[15-2-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[15-3-10]

test_internet.py::TestInternet::test_query_parameters[15-3-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[15-2-10]

test_internet.py::TestInternet::test_query_string[15-2-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[10-8-10]

test_internet.py::TestInternet::test_query_parameters[10-8-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_content_type[MimeType.AUDIO]

test_internet.py::TestInternet::test_content_type[MimeType.AUDIO]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['audio/1d-interleaved-parityfec', 'audio/32kadpcm', 'audio/3gpp', 'audio/3gpp2', 'audio/ac3', 'audio/AMR', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-6-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-6-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_stock_image_url[800-800-None]

test_internet.py::TestInternet::test_stock_image_url[800-800-None]
self = 
net = , w = 800
h = 800, keywords = None

    @pytest.mark.parametrize(
        "w, h, keywords",
        [
            (900, 900, ["octopus", "mimicry"]),
            (800, 800, {"octopus", "mimicry"}),
            (800, 800, None),
        ],
    )
    def test_stock_image_url(self, net, w, h, keywords):
        result = net.stock_image_url(
            width=w,
            height=h,
            keywords=keywords,
        )
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_internet.py:179: AssertionError

test_internet.py::TestInternet::test_public_dns

test_internet.py::TestInternet::test_public_dns
self = 
net = 

    def test_public_dns(self, net):
>       assert net.public_dns() in datasets.PUBLIC_DNS
E       AssertionError: assert None in ['1.0.0.1', '1.1.1.1', '149.112.112.112', '185.228.168.9', '185.228.169.9', '208.67.220.220', ...]
E        +  where None = public_dns()
E        +    where public_dns = .public_dns
E        +  and   ['1.0.0.1', '1.1.1.1', '149.112.112.112', '185.228.168.9', '185.228.169.9', '208.67.220.220', ...] = datasets.PUBLIC_DNS

tests/test_providers/test_internet.py:293: AssertionError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-4-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-4-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_http_method

test_internet.py::TestInternet::test_http_method
self = 
net = 

    def test_http_method(self, net):
        result = net.http_method()
>       assert result in datasets.HTTP_METHODS
E       AssertionError: assert None in ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS', ...]
E        +  where ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS', ...] = datasets.HTTP_METHODS

tests/test_providers/test_internet.py:228: AssertionError

test_internet.py::TestInternet::test_hostname[subdomains2]

test_internet.py::TestInternet::test_hostname[subdomains2]
self = 
net = 
subdomains = ['dev', 'prod', 'test']

    @pytest.mark.parametrize(
        "subdomains",
        [
            [],
            ["app", "core", "api"],
            ["dev", "prod", "test"],
            ["admin", "smtp", "pop3"],
        ],
    )
    def test_hostname(self, net, subdomains):
        hostname = net.hostname(subdomains=subdomains)
>       subdomain, *_ = hostname.split(".", 1)
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:50: AttributeError

test_internet.py::TestInternet::test_content_type[MimeType.APPLICATION]

test_internet.py::TestInternet::test_content_type[MimeType.APPLICATION]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['application/1d-interleaved-parityfec', 'application/3gpdash-qoe-report+xml', 'application/3gpp-ims+xml', 'application/A2L', 'application/activemessage', 'application/alto-costmap+json', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_top_level_domain[TLDType.STLD]

test_internet.py::TestInternet::test_top_level_domain[TLDType.STLD]
self = 
net = 
domain_type = 

    @pytest.mark.parametrize(
        "domain_type",
        [
            TLDType.CCTLD,
            TLDType.GTLD,
            TLDType.GEOTLD,
            TLDType.UTLD,
            TLDType.STLD,
        ],
    )
    def test_top_level_domain(self, net, domain_type):
        res_a = net.top_level_domain(tld_type=domain_type)
        res_b = net.tld(tld_type=domain_type)
>       assert res_a in datasets.TLD[domain_type.value]
E       AssertionError: assert None in ['.aero', '.asia', '.cat', '.coop', '.edu', '.gov', ...]

tests/test_providers/test_internet.py:270: AssertionError

test_internet.py::TestInternet::test_query_string[10-10-10]

test_internet.py::TestInternet::test_query_string[10-10-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-9-10]

test_internet.py::TestInternet::test_query_parameters[5-9-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_ip_v4

test_internet.py::TestInternet::test_ip_v4
self = 
net = 

    def test_ip_v4(
        self,
        net,
    ):
>       assert re.match(patterns.IP_V4_REGEX, net.ip_v4())

tests/test_providers/test_internet.py:194: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$', string = None
flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_internet.py::TestInternet::test_query_parameters[10-3-10]

test_internet.py::TestInternet::test_query_parameters[10-3-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_url_with_port[PortRange.ALL]

test_internet.py::TestInternet::test_url_with_port[PortRange.ALL]
self = 
net = 
port = 

    @pytest.mark.parametrize(
        "port",
        (
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ),
    )
    def test_url_with_port(self, net, port):
        url = net.url(port_range=port)
>       port_val = int(url.split(":")[-1].replace("/", ""))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:81: AttributeError

test_internet.py::TestInternet::test_ip_v6_object

test_internet.py::TestInternet::test_ip_v6_object
self = 
net = 

    def test_ip_v6_object(self, net):
        ip = net.ip_v6_object()
>       assert ip.version == 6
E       AttributeError: 'NoneType' object has no attribute 'version'

tests/test_providers/test_internet.py:213: AttributeError

test_internet.py::TestInternet::test_url[URLScheme.FTP]

test_internet.py::TestInternet::test_url[URLScheme.FTP]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_port[PortRange.ALL-excepted0]

test_internet.py::TestInternet::test_port[PortRange.ALL-excepted0]
self = 
net = 
port_range = , excepted = (1, 65535)

    @pytest.mark.parametrize(
        "port_range, excepted",
        [
            (PortRange.ALL, (1, 65535)),
            (PortRange.EPHEMERAL, (49152, 65535)),
            (PortRange.REGISTERED, (1024, 49151)),
        ],
    )
    def test_port(self, net, port_range, excepted):
        result = net.port(port_range=port_range)
>       assert (result >= excepted[0]) and (result <= excepted[1])
E       TypeError: '>=' not supported between instances of 'NoneType' and 'int'

tests/test_providers/test_internet.py:287: TypeError

test_internet.py::TestInternet::test_query_string[5-5-10]

test_internet.py::TestInternet::test_query_string[5-5-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[10-2-10]

test_internet.py::TestInternet::test_query_parameters[10-2-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_hostname[subdomains1]

test_internet.py::TestInternet::test_hostname[subdomains1]
self = 
net = 
subdomains = ['app', 'core', 'api']

    @pytest.mark.parametrize(
        "subdomains",
        [
            [],
            ["app", "core", "api"],
            ["dev", "prod", "test"],
            ["admin", "smtp", "pop3"],
        ],
    )
    def test_hostname(self, net, subdomains):
        hostname = net.hostname(subdomains=subdomains)
>       subdomain, *_ = hostname.split(".", 1)
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:50: AttributeError

test_internet.py::TestInternet::test_dsn[DSNType.REDIS]

test_internet.py::TestInternet::test_dsn[DSNType.REDIS]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_query_parameters[15-5-10]

test_internet.py::TestInternet::test_query_parameters[15-5-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_port[PortRange.REGISTERED-excepted2]

test_internet.py::TestInternet::test_port[PortRange.REGISTERED-excepted2]
self = 
net = 
port_range = , excepted = (1024, 49151)

    @pytest.mark.parametrize(
        "port_range, excepted",
        [
            (PortRange.ALL, (1, 65535)),
            (PortRange.EPHEMERAL, (49152, 65535)),
            (PortRange.REGISTERED, (1024, 49151)),
        ],
    )
    def test_port(self, net, port_range, excepted):
        result = net.port(port_range=port_range)
>       assert (result >= excepted[0]) and (result <= excepted[1])
E       TypeError: '>=' not supported between instances of 'NoneType' and 'int'

tests/test_providers/test_internet.py:287: TypeError

test_internet.py::TestInternet::test_port[PortRange.EPHEMERAL-excepted1]

test_internet.py::TestInternet::test_port[PortRange.EPHEMERAL-excepted1]
self = 
net = 
port_range = , excepted = (49152, 65535)

    @pytest.mark.parametrize(
        "port_range, excepted",
        [
            (PortRange.ALL, (1, 65535)),
            (PortRange.EPHEMERAL, (49152, 65535)),
            (PortRange.REGISTERED, (1024, 49151)),
        ],
    )
    def test_port(self, net, port_range, excepted):
        result = net.port(port_range=port_range)
>       assert (result >= excepted[0]) and (result <= excepted[1])
E       TypeError: '>=' not supported between instances of 'NoneType' and 'int'

tests/test_providers/test_internet.py:287: TypeError

test_internet.py::TestInternet::test_default

test_internet.py::TestInternet::test_default
self = 
net = 

    def test_default(self, net):
        uri = net.uri()
>       assert uri.startswith(URLScheme.HTTPS.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:87: AttributeError

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.ALL]

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.ALL]
self = 
net = 
port_range = 

    @pytest.mark.parametrize(
        "port_range",
        [
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ],
    )
    def test_ip_v4_with_port(self, net, port_range):
        ip = net.ip_v4_with_port(port_range)
>       port = int(ip.split(":")[-1])
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:207: AttributeError

test_internet.py::TestInternet::test_query_string[10-1-10]

test_internet.py::TestInternet::test_query_string[10-1-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-3-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-3-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.WELL_KNOWN]

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.WELL_KNOWN]
self = 
net = 
port_range = 

    @pytest.mark.parametrize(
        "port_range",
        [
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ],
    )
    def test_ip_v4_with_port(self, net, port_range):
        ip = net.ip_v4_with_port(port_range)
>       port = int(ip.split(":")[-1])
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:207: AttributeError

test_internet.py::TestInternet::test_query_parameters[10-6-10]

test_internet.py::TestInternet::test_query_parameters[10-6-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_content_type_wrong_arg

test_internet.py::TestInternet::test_content_type_wrong_arg
self = 
net = 

    def test_content_type_wrong_arg(self, net):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:246: Failed

test_internet.py::TestInternet::test_top_level_domain[TLDType.GTLD]

test_internet.py::TestInternet::test_top_level_domain[TLDType.GTLD]
self = 
net = 
domain_type = 

    @pytest.mark.parametrize(
        "domain_type",
        [
            TLDType.CCTLD,
            TLDType.GTLD,
            TLDType.GEOTLD,
            TLDType.UTLD,
            TLDType.STLD,
        ],
    )
    def test_top_level_domain(self, net, domain_type):
        res_a = net.top_level_domain(tld_type=domain_type)
        res_b = net.tld(tld_type=domain_type)
>       assert res_a in datasets.TLD[domain_type.value]
E       AssertionError: assert None in ['.academy', '.accountant', '.accountants', '.actor', '.ads', '.adult', ...]

tests/test_providers/test_internet.py:270: AssertionError

test_internet.py::TestInternet::test_url[URLScheme.WSS]

test_internet.py::TestInternet::test_url[URLScheme.WSS]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_query_string[5-1-10]

test_internet.py::TestInternet::test_query_string[5-1-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[15-1-10]

test_internet.py::TestInternet::test_query_string[15-1-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[10-1-10]

test_internet.py::TestInternet::test_query_parameters[10-1-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[15-4-10]

test_internet.py::TestInternet::test_query_string[15-4-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-1-10]

test_internet.py::TestInternet::test_query_parameters[5-1-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_slug

test_internet.py::TestInternet::test_slug
self = 
net = 

    def test_slug(self, net):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:140: Failed

test_internet.py::TestInternet::test_content_type[MimeType.TEXT]

test_internet.py::TestInternet::test_content_type[MimeType.TEXT]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['text/1d-interleaved-parityfec', 'text/cache-manifest', 'text/calendar', 'text/css', 'text/csv', 'text/csv-schema', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_dsn[DSNType.COUCHBASE]

test_internet.py::TestInternet::test_dsn[DSNType.COUCHBASE]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_top_level_domain_unsupported

test_internet.py::TestInternet::test_top_level_domain_unsupported
self = 
net = 

    def test_top_level_domain_unsupported(self, net):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:274: Failed

test_internet.py::TestInternet::test_query_parameters_raise_error_on_invalid_length

test_internet.py::TestInternet::test_query_parameters_raise_error_on_invalid_length
self = 
net = 

    def test_query_parameters_raise_error_on_invalid_length(self, net):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:132: Failed

test_internet.py::TestInternet::test_query_parameters[10-9-10]

test_internet.py::TestInternet::test_query_parameters[10-9-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[10-10-10]

test_internet.py::TestInternet::test_query_parameters[10-10-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_stock_image_url[800-800-keywords1]

test_internet.py::TestInternet::test_stock_image_url[800-800-keywords1]
self = 
net = , w = 800
h = 800, keywords = {'mimicry', 'octopus'}

    @pytest.mark.parametrize(
        "w, h, keywords",
        [
            (900, 900, ["octopus", "mimicry"]),
            (800, 800, {"octopus", "mimicry"}),
            (800, 800, None),
        ],
    )
    def test_stock_image_url(self, net, w, h, keywords):
        result = net.stock_image_url(
            width=w,
            height=h,
            keywords=keywords,
        )
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_internet.py:179: AssertionError

test_internet.py::TestInternet::test_query_parameters[15-10-10]

test_internet.py::TestInternet::test_query_parameters[15-10-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[10-4-10]

test_internet.py::TestInternet::test_query_parameters[10-4-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[10-5-10]

test_internet.py::TestInternet::test_query_parameters[10-5-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_user_agent

test_internet.py::TestInternet::test_user_agent
self = 
net = 

    def test_user_agent(self, net):
        result = net.user_agent()
>       assert result in datasets.USER_AGENTS
E       AssertionError: assert None in ['Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4...QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.96 Mobile Safari/537.36', ...]
E        +  where ['Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4...QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.96 Mobile Safari/537.36', ...] = datasets.USER_AGENTS

tests/test_providers/test_internet.py:163: AssertionError

test_internet.py::TestInternet::test_query_parameters[10-7-10]

test_internet.py::TestInternet::test_query_parameters[10-7-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[10-5-10]

test_internet.py::TestInternet::test_query_string[10-5-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[15-1-10]

test_internet.py::TestInternet::test_query_parameters[15-1-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string_with_length_of_none

test_internet.py::TestInternet::test_query_string_with_length_of_none
self = 
net = 

    def test_query_string_with_length_of_none(self, net):
>       query_params_count = len(net.query_string().split("&"))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:123: AttributeError

test_internet.py::TestInternet::test_mac_address

test_internet.py::TestInternet::test_mac_address
self = 
net = 

    def test_mac_address(self, net):
        mac = net.mac_address()
>       assert re.match(patterns.MAC_ADDRESS_REGEX, mac)

tests/test_providers/test_internet.py:224: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_internet.py::TestInternet::test_content_type[MimeType.IMAGE]

test_internet.py::TestInternet::test_content_type[MimeType.IMAGE]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['image/cgm', 'image/example', 'image/fits', 'image/g3fax', 'image/gif', 'image/ief', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_query_parameters_with_length_of_none

test_internet.py::TestInternet::test_query_parameters_with_length_of_none
self = 
net = 

    def test_query_parameters_with_length_of_none(self, net):
>       query_params_count = len(net.query_parameters())
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:136: TypeError

test_internet.py::TestInternet::test_dsn[DSNType.MEMCACHED]

test_internet.py::TestInternet::test_dsn[DSNType.MEMCACHED]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_query_string_raise_error_on_invalid_length

test_internet.py::TestInternet::test_query_string_raise_error_on_invalid_length
self = 
net = 

    def test_query_string_raise_error_on_invalid_length(self, net):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:119: Failed

test_internet.py::TestInternet::test_url[URLScheme.SFTP]

test_internet.py::TestInternet::test_url[URLScheme.SFTP]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_http_response_headers

test_internet.py::TestInternet::test_http_response_headers
self = 
net = 

    def test_http_response_headers(self, net):
        result = net.http_response_headers()
>       assert isinstance(result, dict)
E       assert False
E        +  where False = isinstance(None, dict)

tests/test_providers/test_internet.py:297: AssertionError

test_internet.py::TestInternet::test_url[URLScheme.HTTP]

test_internet.py::TestInternet::test_url[URLScheme.HTTP]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_url[URLScheme.HTTPS]

test_internet.py::TestInternet::test_url[URLScheme.HTTPS]
self = 
net = 
scheme = 

    @pytest.mark.parametrize(
        "scheme",
        (
            URLScheme.HTTP,
            URLScheme.HTTPS,
            URLScheme.FTP,
            URLScheme.SFTP,
            URLScheme.WS,
            URLScheme.WSS,
        ),
    )
    def test_url(self, net, scheme):
        result = net.url(scheme=scheme)
>       assert result.startswith(scheme.value)
E       AttributeError: 'NoneType' object has no attribute 'startswith'

tests/test_providers/test_internet.py:68: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-2-10]

test_internet.py::TestInternet::test_query_parameters[5-2-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[5-2-10]

test_internet.py::TestInternet::test_query_string[5-2-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[15-8-10]

test_internet.py::TestInternet::test_query_string[15-8-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_content_type[MimeType.MESSAGE]

test_internet.py::TestInternet::test_content_type[MimeType.MESSAGE]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['message/CPIM', 'message/delivery-status', 'message/disposition-notification', 'message/example', 'message/external-body', 'message/feedback-report', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_query_parameters[15-4-10]

test_internet.py::TestInternet::test_query_parameters[15-4-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-7-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-7-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_dsn[DSNType.RABBITMQ]

test_internet.py::TestInternet::test_dsn[DSNType.RABBITMQ]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-3-10]

test_internet.py::TestInternet::test_query_parameters[5-3-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[5-5-10]

test_internet.py::TestInternet::test_query_parameters[5-5-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_http_status_code

test_internet.py::TestInternet::test_http_status_code
self = 
net = 

    def test_http_status_code(self, net):
        result = net.http_status_code()
>       assert (int(result) >= 100) and (int(result) <= 511)
E       TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

tests/test_providers/test_internet.py:251: TypeError

test_internet.py::TestInternet::test_query_string[10-3-10]

test_internet.py::TestInternet::test_query_string[10-3-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[5-3-10]

test_internet.py::TestInternet::test_query_string[5-3-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_ip_v6

test_internet.py::TestInternet::test_ip_v6
self = 
net = 

    def test_ip_v6(self, net):
        ip = net.ip_v6()
>       assert re.match(patterns.IP_V6_REGEX, ip)

tests/test_providers/test_internet.py:220: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-...)|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))'
string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_internet.py::TestInternet::test_query_parameters[15-6-10]

test_internet.py::TestInternet::test_query_parameters[15-6-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[5-6-10]

test_internet.py::TestInternet::test_query_string[5-6-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-8-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-8-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_dsn[DSNType.MONGODB]

test_internet.py::TestInternet::test_dsn[DSNType.MONGODB]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_query_string[10-8-10]

test_internet.py::TestInternet::test_query_string[10-8-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[15-7-10]

test_internet.py::TestInternet::test_query_string[15-7-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_top_level_domain[TLDType.UTLD]

test_internet.py::TestInternet::test_top_level_domain[TLDType.UTLD]
self = 
net = 
domain_type = 

    @pytest.mark.parametrize(
        "domain_type",
        [
            TLDType.CCTLD,
            TLDType.GTLD,
            TLDType.GEOTLD,
            TLDType.UTLD,
            TLDType.STLD,
        ],
    )
    def test_top_level_domain(self, net, domain_type):
        res_a = net.top_level_domain(tld_type=domain_type)
        res_b = net.tld(tld_type=domain_type)
>       assert res_a in datasets.TLD[domain_type.value]
E       AssertionError: assert None in ['.com', '.org', '.net', '.biz', '.info', '.name']

tests/test_providers/test_internet.py:270: AssertionError

test_internet.py::TestInternet::test_url_with_port[PortRange.EPHEMERAL]

test_internet.py::TestInternet::test_url_with_port[PortRange.EPHEMERAL]
self = 
net = 
port = 

    @pytest.mark.parametrize(
        "port",
        (
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ),
    )
    def test_url_with_port(self, net, port):
        url = net.url(port_range=port)
>       port_val = int(url.split(":")[-1].replace("/", ""))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:81: AttributeError

test_internet.py::TestInternet::test_url_with_port[PortRange.WELL_KNOWN]

test_internet.py::TestInternet::test_url_with_port[PortRange.WELL_KNOWN]
self = 
net = 
port = 

    @pytest.mark.parametrize(
        "port",
        (
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ),
    )
    def test_url_with_port(self, net, port):
        url = net.url(port_range=port)
>       port_val = int(url.split(":")[-1].replace("/", ""))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:81: AttributeError

test_internet.py::TestInternet::test_dsn[DSNType.MYSQL]

test_internet.py::TestInternet::test_dsn[DSNType.MYSQL]
self = 
net = 
dsn_type = 

    @pytest.mark.parametrize(
        "dsn_type",
        [
            DSNType.POSTGRES,
            DSNType.MYSQL,
            DSNType.MONGODB,
            DSNType.REDIS,
            DSNType.COUCHBASE,
            DSNType.MEMCACHED,
            DSNType.RABBITMQ,
        ],
    )
    def test_dsn(self, net, dsn_type):
        scheme, port = dsn_type.value
>       assert net.dsn(dsn_type=dsn_type).endswith(f":{port}")
E       AttributeError: 'NoneType' object has no attribute 'endswith'

tests/test_providers/test_internet.py:36: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-2-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-2-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_content_type[MimeType.VIDEO]

test_internet.py::TestInternet::test_content_type[MimeType.VIDEO]
self = 
net = 
mime_type = 

    @pytest.mark.parametrize(
        "mime_type",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_content_type(self, net, mime_type):
        ct = net.content_type(mime_type=mime_type)
>       assert ct in datasets.MIME_TYPES[mime_type.value]
E       AssertionError: assert None in ['video/1d-interleaved-parityfec', 'video/3gpp', 'video/3gpp-tt', 'video/3gpp2', 'video/BMPEG', 'video/BT656', ...]

tests/test_providers/test_internet.py:243: AssertionError

test_internet.py::TestInternet::test_query_parameters[15-9-10]

test_internet.py::TestInternet::test_query_parameters[15-9-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_http_request_headers

test_internet.py::TestInternet::test_http_request_headers
self = 
net = 

    def test_http_request_headers(self, net):
        result = net.http_request_headers()
>       assert isinstance(result, dict)
E       assert False
E        +  where False = isinstance(None, dict)

tests/test_providers/test_internet.py:302: AssertionError

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.EPHEMERAL]

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.EPHEMERAL]
self = 
net = 
port_range = 

    @pytest.mark.parametrize(
        "port_range",
        [
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ],
    )
    def test_ip_v4_with_port(self, net, port_range):
        ip = net.ip_v4_with_port(port_range)
>       port = int(ip.split(":")[-1])
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:207: AttributeError

test_internet.py::TestInternet::test_query_string[15-6-10]

test_internet.py::TestInternet::test_query_string[15-6-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.REGISTERED]

test_internet.py::TestInternet::test_ip_v4_with_port[PortRange.REGISTERED]
self = 
net = 
port_range = 

    @pytest.mark.parametrize(
        "port_range",
        [
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ],
    )
    def test_ip_v4_with_port(self, net, port_range):
        ip = net.ip_v4_with_port(port_range)
>       port = int(ip.split(":")[-1])
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:207: AttributeError

test_internet.py::TestInternet::test_query_string[5-9-10]

test_internet.py::TestInternet::test_query_string[5-9-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_stock_image_url[900-900-keywords0]

test_internet.py::TestInternet::test_stock_image_url[900-900-keywords0]
self = 
net = , w = 900
h = 900, keywords = ['octopus', 'mimicry']

    @pytest.mark.parametrize(
        "w, h, keywords",
        [
            (900, 900, ["octopus", "mimicry"]),
            (800, 800, {"octopus", "mimicry"}),
            (800, 800, None),
        ],
    )
    def test_stock_image_url(self, net, w, h, keywords):
        result = net.stock_image_url(
            width=w,
            height=h,
            keywords=keywords,
        )
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_internet.py:179: AssertionError

test_internet.py::TestInternet::test_top_level_domain[TLDType.CCTLD]

test_internet.py::TestInternet::test_top_level_domain[TLDType.CCTLD]
self = 
net = 
domain_type = 

    @pytest.mark.parametrize(
        "domain_type",
        [
            TLDType.CCTLD,
            TLDType.GTLD,
            TLDType.GEOTLD,
            TLDType.UTLD,
            TLDType.STLD,
        ],
    )
    def test_top_level_domain(self, net, domain_type):
        res_a = net.top_level_domain(tld_type=domain_type)
        res_b = net.tld(tld_type=domain_type)
>       assert res_a in datasets.TLD[domain_type.value]
E       AssertionError: assert None in ['.ac', '.ad', '.ae', '.af', '.ag', '.ai', ...]

tests/test_providers/test_internet.py:270: AssertionError

test_internet.py::TestInternet::test_url_with_port[PortRange.REGISTERED]

test_internet.py::TestInternet::test_url_with_port[PortRange.REGISTERED]
self = 
net = 
port = 

    @pytest.mark.parametrize(
        "port",
        (
            PortRange.ALL,
            PortRange.WELL_KNOWN,
            PortRange.EPHEMERAL,
            PortRange.REGISTERED,
        ),
    )
    def test_url_with_port(self, net, port):
        url = net.url(port_range=port)
>       port_val = int(url.split(":")[-1].replace("/", ""))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:81: AttributeError

test_internet.py::TestInternet::test_query_parameters[15-7-10]

test_internet.py::TestInternet::test_query_parameters[15-7-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[15-8-10]

test_internet.py::TestInternet::test_query_parameters[15-8-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_parameters[5-6-10]

test_internet.py::TestInternet::test_query_parameters[5-6-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[10-7-10]

test_internet.py::TestInternet::test_query_string[10-7-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-10-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-10-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-9-10]

test_internet.py::TestInternet::test_uri_with_parameters[URLScheme.HTTPS-TLDType.GTLD-subdomains0-5-9-10]
self = 
net = 
scheme = , tld_type = 
subdomains = ['core', 'app', 'test', 'dev'], query_params_count = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize(
        "scheme, tld_type, subdomains, query_params_count",
        [
            (
                URLScheme.HTTPS,
                TLDType.GTLD,
                ["core", "app", "test", "dev"],
                5,
            ),
        ],
    )
    def test_uri_with_parameters(
        self, net, scheme, tld_type, subdomains, query_params_count
    ):
        uri = net.uri(
            scheme=scheme,
            tld_type=tld_type,
            subdomains=subdomains,
            query_params_count=query_params_count,
        )
>       assert uri.split(":")[0].strip() == scheme.value
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:110: AttributeError

test_internet.py::TestInternet::test_query_string[15-3-10]

test_internet.py::TestInternet::test_query_string[15-3-10]
self = 
net = 
length = 15

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[5-7-10]

test_internet.py::TestInternet::test_query_string[5-7-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_str

test_internet.py::TestInternet::test_str
self = 
net = 

    def test_str(self, net):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(net))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_internet.py:20: AssertionError

test_internet.py::TestInternet::test_query_string[5-10-10]

test_internet.py::TestInternet::test_query_string[5-10-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_parameters[5-10-10]

test_internet.py::TestInternet::test_query_parameters[5-10-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_parameters(self, net, length):
>       assert len(net.query_parameters(length)) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_internet.py:129: TypeError

test_internet.py::TestInternet::test_query_string[5-4-10]

test_internet.py::TestInternet::test_query_string[5-4-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_query_string[5-8-10]

test_internet.py::TestInternet::test_query_string[5-8-10]
self = 
net = , length = 5

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestInternet::test_path

test_internet.py::TestInternet::test_path
self = 
net = 

    def test_path(self, net):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_internet.py:151: Failed

test_internet.py::TestInternet::test_query_string[10-6-10]

test_internet.py::TestInternet::test_query_string[10-6-10]
self = 
net = 
length = 10

    @pytest.mark.repeat(10)
    @pytest.mark.parametrize("length", [5, 10, 15])
    def test_query_string(self, net, length):
>       assert len(net.query_string(length).split("&")) == length
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_internet.py:116: AttributeError

test_internet.py::TestSeededInternet::test_http_response_headers

test_internet.py::TestSeededInternet::test_http_response_headers
self = 
i1 = 
i2 = 

    def test_http_response_headers(self, i1, i2):
        r1 = i1.http_response_headers()
        r2 = i2.http_response_headers()

>       for key, val in r1.items():
E       AttributeError: 'NoneType' object has no attribute 'items'

tests/test_providers/test_internet.py:326: AttributeError

test_internet.py::TestSeededInternet::test_http_request_headers

test_internet.py::TestSeededInternet::test_http_request_headers
self = 
i1 = 
i2 = 

    def test_http_request_headers(self, i1, i2):
        r1 = i1.http_request_headers()
        r2 = i2.http_request_headers()

>       for key, val in r1.items():
E       AttributeError: 'NoneType' object has no attribute 'items'

tests/test_providers/test_internet.py:319: AttributeError

test_keys.py::test_romanize_cyrillic_string[Locale.UK-\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u043c\u043e\u0432\u0430!-Ukrayins\u2019ka mova!]

test_keys.py::test_romanize_cyrillic_string[Locale.UK-\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 \u043c\u043e\u0432\u0430!-Ukrayins\u2019ka mova!]
locale = , string = 'Українська мова!'
expected = 'Ukrayins’ka mova!'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u0427\u0442\u043e-\u0442\u043e \u0442\u0430\u043c_4352-!@-Chto-to tam_4352-!@]

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u0427\u0442\u043e-\u0442\u043e \u0442\u0430\u043c_4352-!@-Chto-to tam_4352-!@]
locale = , string = 'Что-то там_4352-!@'
expected = 'Chto-to tam_4352-!@'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u0410 \u0411 \u0412 \u0413 \u0414 \u0415 \u0401 \u0416 \u0417 \u0418 \u0419 \u041a \u041b \u041c \u041d \u041e \u041f \u0420 \u0421 \u0422 \u0423 \u0424 \u0425 \u0426 \u0427 \u0428 \u0429 \u042a \u042b \u042c \u042d \u042e \u042f \u0430 \u0431 \u0432 \u0433 \u0434 \u0435 \u0451 \u0436 \u0437 \u0438 \u0439 \u043a \u043b \u043c \u043d \u043e \u043f \u0440 \u0441 \u0442 \u0443 \u0444 \u0445 \u0446 \u0447 \u0448 \u0449 \u044a \u044b \u044c \u044d \u044e \u044f-A B V G D E Yo Zh Z I Ye K L M N O P R S T U F Kh Ts Ch Sh Shch Y E Yu Ja a b v g d e yo zh z i ye k l m n o p r s t u f kh ts ch sh shch y e yu ja]

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u0410 \u0411 \u0412 \u0413 \u0414 \u0415 \u0401 \u0416 \u0417 \u0418 \u0419 \u041a \u041b \u041c \u041d \u041e \u041f \u0420 \u0421 \u0422 \u0423 \u0424 \u0425 \u0426 \u0427 \u0428 \u0429 \u042a \u042b \u042c \u042d \u042e \u042f \u0430 \u0431 \u0432 \u0433 \u0434 \u0435 \u0451 \u0436 \u0437 \u0438 \u0439 \u043a \u043b \u043c \u043d \u043e \u043f \u0440 \u0441 \u0442 \u0443 \u0444 \u0445 \u0446 \u0447 \u0448 \u0449 \u044a \u044b \u044c \u044d \u044e \u044f-A B V G D E Yo Zh Z I Ye K L M N O P R S T U F Kh Ts Ch Sh Shch  Y  E Yu Ja a b v g d e yo zh z i ye k l m n o p r s t u f kh ts ch sh shch  y  e yu ja]
locale = 
string = 'А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я'
expected = 'A B V G D E Yo Zh Z I Ye K L M N O P R S T U F Kh Ts Ch Sh Shch  Y  E Yu Ja a b v g d e yo zh z i ye k l m n o p r s t u f kh ts ch sh shch  y  e yu ja'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_maybe

test_keys.py::test_maybe
def test_maybe():
        key = maybe(None, probability=1)
>       assert key("foo", random) is None
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:32: TypeError

test_keys.py::test_romanize_cyrillic_string[Locale.KK-Python - \u0435\u04a3 \u0436\u0430\u049b\u0441\u044b \u0431\u0430\u0493\u0434\u0430\u0440\u043b\u0430\u043c\u0430\u043b\u0430\u0443 \u0442\u0456\u043b\u0456!-Python - e\xf1 zhaqsy ba\u011fdarlamalau tili!]

test_keys.py::test_romanize_cyrillic_string[Locale.KK-Python - \u0435\u04a3 \u0436\u0430\u049b\u0441\u044b \u0431\u0430\u0493\u0434\u0430\u0440\u043b\u0430\u043c\u0430\u043b\u0430\u0443 \u0442\u0456\u043b\u0456!-Python - e\xf1 zhaqsy ba\u011fdarlamalau tili!]
locale = , string = 'Python - ең жақсы бағдарламалау тілі!'
expected = 'Python - eñ zhaqsy bağdarlamalau tili!'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u041b\u0438\u043a\u0438\u0434 \u0413\u0435\u0438\u043c\u0444\u0430\u0440\u0438-Likid Geimfari]

test_keys.py::test_romanize_cyrillic_string[Locale.RU-\u041b\u0438\u043a\u0438\u0434 \u0413\u0435\u0438\u043c\u0444\u0430\u0440\u0438-Likid Geimfari]
locale = , string = 'Ликид Геимфари'
expected = 'Likid Geimfari'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_romanize_invalid_locale

test_keys.py::test_romanize_invalid_locale
def test_romanize_invalid_locale():
>       with pytest.raises(LocaleError):
E       Failed: DID NOT RAISE 

tests/test_keys.py:47: Failed

test_keys.py::test_romanize_cyrillic_string[Locale.UK-\u0429\u043e\u0441\u044c \u0442\u0430\u043c_4352-!@-Shchos\u2019 tam_4352-!@]

test_keys.py::test_romanize_cyrillic_string[Locale.UK-\u0429\u043e\u0441\u044c \u0442\u0430\u043c_4352-!@-Shchos\u2019 tam_4352-!@]
locale = , string = 'Щось там_4352-!@'
expected = 'Shchos’ tam_4352-!@'

    @pytest.mark.parametrize(
        "locale, string, expected",
        ROMANIZE_INPUT_PARAMETERS,
    )
    def test_romanize_cyrillic_string(locale, string, expected):
>       assert romanize(locale)(string) == expected
E       TypeError: 'NoneType' object is not callable

tests/test_keys.py:43: TypeError

test_keys.py::test_romanize_unsupported_locale

test_keys.py::test_romanize_unsupported_locale
def test_romanize_unsupported_locale():
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_keys.py:52: Failed

test_code.py::TestCode::test_isbn[Locale.NL_BE-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.NL_BE-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.NO-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.NO-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.SK-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.SK-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.KO-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.KO-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.PT-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.PT-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_ean_non_enum

test_code.py::TestCode::test_ean_non_enum
self = 
code = 

    def test_ean_non_enum(self, code):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_code.py:34: Failed

test_code.py::TestCode::test_imei

test_code.py::TestCode::test_imei
self = 
code = 

    def test_imei(self, code):
        result = code.imei()
>       assert len(result) <= 15
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_code.py:39: TypeError

test_code.py::TestCode::test_isbn[Locale.PT_BR-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.PT_BR-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EL-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.EL-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.HR-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.HR-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.SV-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.SV-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.HU-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.HU-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DA-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.DA-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.KK-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.KK-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.JA-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.JA-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.EN-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.TR-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.TR-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.TR-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.TR-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_ean[EANFormat.EAN13-13]

test_code.py::TestCode::test_ean[EANFormat.EAN13-13]
self = 
code = 
fmt = , length = 13

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (EANFormat.EAN8, 8),
            (EANFormat.EAN13, 13),
        ],
    )
    def test_ean(self, code, fmt, length):
        result = code.ean(fmt=fmt)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_code.py:31: TypeError

test_code.py::TestCode::test_isbn[Locale.PL-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.PL-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.IS-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.IS-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE_CH-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.DE_CH-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.UK-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.UK-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN_GB-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.EN_GB-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.RU-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.RU-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.DE-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.PT-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.PT-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.RU-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.RU-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ES_MX-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.ES_MX-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ET-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.ET-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.KK-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.KK-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.CS-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.CS-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.IT-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.IT-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.PT_BR-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.PT_BR-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE_CH-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.DE_CH-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.IS-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.IS-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ES-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.ES-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_issn

test_code.py::TestCode::test_issn
self = 
code = 

    def test_issn(self, code):
        result = code.issn()
>       assert len(result) == 9
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_code.py:47: TypeError

test_code.py::TestCode::test_isbn[Locale.FR-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.FR-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.HU-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.HU-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.IT-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.IT-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_pin

test_code.py::TestCode::test_pin
self = 
code = 

    def test_pin(self, code):
        result = code.pin()
>       assert len(result) == 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_code.py:43: TypeError

test_code.py::TestCode::test_isbn[Locale.EN_CA-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.EN_CA-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_str

test_code.py::TestCode::test_str
self = 
code = 

    def test_str(self, code):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(code))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_code.py:20: AssertionError

test_code.py::TestCode::test_isbn[Locale.FA-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.FA-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ZH-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.ZH-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.KO-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.KO-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN_AU-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.EN_AU-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.FI-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.FI-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.PL-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.PL-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ZH-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.ZH-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.EN-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.NO-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.NO-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_locale_code

test_code.py::TestCode::test_locale_code
self = 
code = 

    def test_locale_code(self, code):
        result = code.locale_code()
>       assert result in LOCALE_CODES
E       AssertionError: assert None in ['af', 'ar-ae', 'ar-bh', 'ar-dz', 'ar-eg', 'ar-iq', ...]

tests/test_providers/test_code.py:51: AssertionError

test_code.py::TestCode::test_isbn[Locale.DA-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.DA-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE_AT-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.DE_AT-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN_GB-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.EN_GB-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN_AU-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.EN_AU-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.UK-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.UK-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EN_CA-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.EN_CA-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.DE-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.FI-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.FI-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ET-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.ET-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.SV-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.SV-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.FA-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.FA-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.FR-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.FR-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.HR-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.HR-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.EL-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.EL-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.NL_BE-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.NL_BE-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_ean[EANFormat.EAN8-8]

test_code.py::TestCode::test_ean[EANFormat.EAN8-8]
self = 
code = 
fmt = , length = 8

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (EANFormat.EAN8, 8),
            (EANFormat.EAN13, 13),
        ],
    )
    def test_ean(self, code, fmt, length):
        result = code.ean(fmt=fmt)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_code.py:31: TypeError

test_code.py::TestCode::test_isbn[Locale.NL-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.NL-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn_non_enum

test_code.py::TestCode::test_isbn_non_enum
self = 
code = 

    def test_isbn_non_enum(self, code):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_code.py:70: Failed

test_code.py::TestCode::test_isbn[Locale.NL-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.NL-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.JA-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.JA-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.CS-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.CS-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ES-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.ES-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.ES_MX-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.ES_MX-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.SK-ISBNFormat.ISBN10-10]

test_code.py::TestCode::test_isbn[Locale.SK-ISBNFormat.ISBN10-10]
self = 
code = 
fmt = , length = 10, locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_code.py::TestCode::test_isbn[Locale.DE_AT-ISBNFormat.ISBN13-13]

test_code.py::TestCode::test_isbn[Locale.DE_AT-ISBNFormat.ISBN13-13]
self = 
code = 
fmt = , length = 13
locale = 

    @pytest.mark.parametrize(
        "fmt, length",
        [
            (ISBNFormat.ISBN10, 10),
            (ISBNFormat.ISBN13, 13),
        ],
    )
    @pytest.mark.parametrize(
        "locale",
        list(Locale),
    )
    def test_isbn(self, code, fmt, length, locale):
        result = code.isbn(fmt=fmt, locale=locale)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_code.py:66: AssertionError

test_hardware.py::TestHardware::test_cpu_codename

test_hardware.py::TestHardware::test_cpu_codename
self = 
hard = 

    def test_cpu_codename(self, hard):
        result = hard.cpu_codename()
>       assert result in CPU_CODENAMES
E       assert None in ['Ivytown', 'Haswell', 'Fortville', "Devil's Canyon", 'Valley Island', 'Broadwell', ...]

tests/test_providers/test_hardware.py:54: AssertionError

test_hardware.py::TestHardware::test_ram_type

test_hardware.py::TestHardware::test_ram_type
self = 
hard = 

    def test_ram_type(self, hard):
        result = hard.ram_type()
>       assert result in RAM_TYPES
E       AssertionError: assert None in ['SDRAM', 'DDR', 'DDR2', 'DDR3', 'DDR4', 'DDR5']

tests/test_providers/test_hardware.py:58: AssertionError

test_hardware.py::TestHardware::test_ssd_or_hdd

test_hardware.py::TestHardware::test_ssd_or_hdd
self = 
hard = 

    def test_ssd_or_hdd(self, hard):
        result = hard.ssd_or_hdd()
>       assert result in HDD_SSD
E       AssertionError: assert None in ['Western Digital 64GB SSD', 'Western Digital 128GB SSD', 'Western Digital 256GB SDD', 'Western Digital 512GB SSD', 'Western Digital 1TB SSD', 'Western Digital 2TB SSD', ...]

tests/test_providers/test_hardware.py:66: AssertionError

test_hardware.py::TestHardware::test_manufacturer

test_hardware.py::TestHardware::test_manufacturer
self = 
hard = 

    def test_manufacturer(self, hard):
        result = hard.manufacturer()
>       assert result in MANUFACTURERS
E       AssertionError: assert None in ['Apple', 'Acer', 'Dell', 'ASUS', 'VAIO', 'Lenovo', ...]

tests/test_providers/test_hardware.py:74: AssertionError

test_hardware.py::TestHardware::test_cpu_frequency

test_hardware.py::TestHardware::test_cpu_frequency
self = 
hard = 

    def test_cpu_frequency(self, hard):
>       result = hard.cpu_frequency().split("G")[0]
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_hardware.py:45: AttributeError

test_hardware.py::TestHardware::test_generation

test_hardware.py::TestHardware::test_generation
self = 
hard = 

    def test_generation(self, hard):
        result = hard.generation()
>       assert result in GENERATION
E       AssertionError: assert None in ['2nd Generation', '3rd Generation', '4th Generation', '5th Generation', '6th Generation', '7th Generation', ...]

tests/test_providers/test_hardware.py:41: AssertionError

test_hardware.py::TestHardware::test_cpu

test_hardware.py::TestHardware::test_cpu
self = 
hard = 

    def test_cpu(self, hard):
        result = hard.cpu()
>       assert result in CPU
E       AssertionError: assert None in ['AMD Ryzen 7 1800X', 'AMD Ryzen 7 1700', 'AMD Ryzen™ Threadripper™', 'Intel® Core i3', 'Intel® Core i5', 'Intel® Core i7', ...]

tests/test_providers/test_hardware.py:50: AssertionError

test_hardware.py::TestHardware::test_resolution

test_hardware.py::TestHardware::test_resolution
self = 
hard = 

    def test_resolution(self, hard):
        result = hard.resolution()
>       assert result in RESOLUTIONS
E       AssertionError: assert None in ['1152x768', '1280x854', '1440x960', '2880x1920', '1024x768', '1152x864', ...]

tests/test_providers/test_hardware.py:33: AssertionError

test_hardware.py::TestHardware::test_phone_model

test_hardware.py::TestHardware::test_phone_model
self = 
hard = 

    def test_phone_model(self, hard):
        result = hard.phone_model()
>       assert result in PHONE_MODELS
E       AssertionError: assert None in ['iPhone SE', 'iPhone X', 'iPhone XS', 'iPhone 11', 'iPhone 11 Pro', 'iPhone 11 Pro Max', ...]

tests/test_providers/test_hardware.py:78: AssertionError

test_hardware.py::TestHardware::test_ram_size

test_hardware.py::TestHardware::test_ram_size
self = 
hard = 

    def test_ram_size(self, hard):
        result = hard.ram_size()
>       assert result in RAM_SIZES
E       AssertionError: assert None in ['4GB', '8GB', '12GB', '16GB', '32GB', '64GB', ...]

tests/test_providers/test_hardware.py:62: AssertionError

test_hardware.py::TestHardware::test_str

test_hardware.py::TestHardware::test_str
self = 
hard = 

    def test_str(self, hard):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(hard))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_hardware.py:29: AssertionError

test_hardware.py::TestHardware::test_screen_size

test_hardware.py::TestHardware::test_screen_size
self = 
hard = 

    def test_screen_size(self, hard):
        result = hard.screen_size()
>       assert result in SCREEN_SIZES
E       AssertionError: assert None in ['14″', '12.1″', '12″', '14.4″', '15″', '15.7″', ...]

tests/test_providers/test_hardware.py:37: AssertionError

test_hardware.py::TestHardware::test_graphics

test_hardware.py::TestHardware::test_graphics
self = 
hard = 

    def test_graphics(self, hard):
        result = hard.graphics()
>       assert result in GRAPHICS
E       AssertionError: assert None in ['AMD Radeon PRO WX 8200', 'AMD Radeon Pro W5700', 'AMD Radeon RX 5500 XT', 'AMD Radeon RX 560', 'AMD Radeon RX 5600 XT', 'AMD Radeon RX 570', ...]

tests/test_providers/test_hardware.py:70: AssertionError

test_person.py::TestPerson::test_birthdate[1951-2001]

test_person.py::TestPerson::test_birthdate[1951-2001]
self = 
_person = 
min_year = 1951, max_year = 2001

    @pytest.mark.parametrize(
        "min_year, max_year",
        [
            (1900, 1950),
            (1951, 2001),
            (2001, 2023),
        ],
    )
    def test_birthdate(self, _person, min_year, max_year):
        birthdate = _person.birthdate(min_year, max_year)
>       assert min_year <= birthdate.year <= max_year
E       AttributeError: 'NoneType' object has no attribute 'year'

tests/test_providers/test_person.py:32: AttributeError

test_person.py::TestPerson::test_str[en-ca]

test_person.py::TestPerson::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[is-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[is-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[pt-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[pt-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_university[da]

test_person.py::TestPerson::test_university[da]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Center for Elektronnanoskopi', 'DTU Fødevareinstituttet', 'DTU Veterinærinstituttet', 'Danmarks Tekniske Informationscenter', 'IT-Universitetet i København', 'Institut for Akvatiske Ressourcer', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_profession[ko]

test_person.py::TestPerson::test_profession[ko]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['가구디자이너', '가구제조 및 수리원', '가구조립원', '가방디자이너', '가사도우미', '가수', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_language[hr]

test_person.py::TestPerson::test_language[hr]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['danski', 'engleski', 'estonski', 'finski', 'francuski', 'gruzijski', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_worldview[da]

test_person.py::TestPerson::test_worldview[da]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnosticism', 'Ateisme', 'Buddhisme', 'Deisme', 'Katolicisme', 'Kungfutses lærersætninger', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_nationality[ja-Gender.MALE]

test_person.py::TestPerson::test_nationality[ja-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_first_name[nl-be-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[nl-be-Gender.FEMALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[cs-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[cs-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[da-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[da-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[de-at]

test_person.py::TestPerson::test_academic_degree[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[hu]

test_person.py::TestPerson::test_views_on[hu]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negatív', 'Nagyon pozitív', 'Pozitív', 'Semleges', 'Kompromittálható']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[sk-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sk-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[cs-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[cs-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Afričanka', 'Američanka', 'Američanka', 'Angličanka', 'Asiatka', 'Australanka', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_title[en-au-Gender.MALE-None]

test_person.py::TestPerson::test_title[en-au-Gender.MALE-None]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[zh]

test_person.py::TestPerson::test_gender[zh]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['男性', '女性']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[de-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[de-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[hu-Gender.FEMALE]

test_person.py::TestPerson::test_surname[hu-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Ady', 'András', 'Andrássy', 'Asztalos', 'Babits', 'Babos', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_surname[uk-Gender.MALE]

test_person.py::TestPerson::test_surname[uk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абраменко', 'Абрамець', 'Авдєєнко', 'Аверченко', 'Авраменко', 'Адамович', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_surname[fr-Gender.FEMALE]

test_person.py::TestPerson::test_surname[fr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abadie', 'Adam', 'Adams', 'Ahmed', 'Alain', 'Alarie', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_name[es-Gender.FEMALE]

test_person.py::TestPerson::test_name[es-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ababa', 'Abigaíl', 'Adela', 'Adelaida', 'Adelia', 'Adelina', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[el-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[el-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[uk-Gender.MALE]

test_person.py::TestPerson::test_full_name[uk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[nl-None-None]

test_person.py::TestPerson::test_title[nl-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-TitleType.TYPICAL]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[en-ca-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[en-ca-Gender.FEMALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-None]

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-None]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[is-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[is-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[tr-Gender.MALE-None]

test_person.py::TestPerson::test_title[tr-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[fr]

test_person.py::TestPerson::test_university[fr]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['École Normale Supérieure', 'École Polytechnique', 'Pierre and Marie Curie University', 'Paris-Sud University', 'CentraleSupélec', 'École Normale Supérieure de Lyon', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_first_name[el-Gender.MALE]

test_person.py::TestPerson::test_first_name[el-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Άγγελος', 'Άδωνις', 'Έκτορας', 'Αγάπιος', 'Αγαθόνικος', 'Αγαμέμνων', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[pt-br-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[pt-br-Gender.FEMALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[nl-be-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-be-None-TitleType.TYPICAL]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[da-Gender.MALE-None]

test_person.py::TestPerson::test_title[da-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[zh]

test_person.py::TestPerson::test_telephone[zh]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_sex[pt]

test_person.py::TestPerson::test_sex[pt]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculino', 'Feminino', 'Transgênero', 'Outro']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_name[et-Gender.MALE]

test_person.py::TestPerson::test_name[et-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadu', 'Aage', 'Aago', 'Aap', '\u200eAapo', 'Aare', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[ko]

test_person.py::TestPerson::test_name_unexpected_gender[ko]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_username[C_d]

test_person.py::TestPerson::test_username[C_d]
self = 
_person = 
mask = 'C_d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+_[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_sex[et]

test_person.py::TestPerson::test_sex[et]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Mees', 'Naine']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_worldview[sk]

test_person.py::TestPerson::test_worldview[sk]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['bez názoru']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[et-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[et-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[pt-br-Gender.MALE]

test_person.py::TestPerson::test_nationality[pt-br-Gender.MALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[pl]

test_person.py::TestPerson::test_telephone[pl]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_profession[pt-br]

test_person.py::TestPerson::test_profession[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[zh-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[zh-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[sv-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sv-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[zh-Gender.FEMALE]

test_person.py::TestPerson::test_name[zh-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['朵雯', '雨杭', '贞荪', '瑾宛', '滢玉', '美穆', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_first_name[cs-Gender.MALE]

test_person.py::TestPerson::test_first_name[cs-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abadon', 'Abd', 'Abdon', 'Abelard', 'Abraham', 'Abrahám', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[cs-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[cs-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[el]

test_person.py::TestPerson::test_telephone[el]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[pt-br-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-br-None-TitleType.TYPICAL]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[fi]

test_person.py::TestPerson::test_name_unexpected_gender[fi]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[en-gb-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-gb-None-TitleType.ACADEMIC]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[et-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[et-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_full_name[pl-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[pl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[fa-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fa-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[fr-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fr-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[en-gb]

test_person.py::TestPerson::test_worldview[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[ja-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ja-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[no]

test_person.py::TestPerson::test_worldview[no]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnostisisme', 'Ateisme', 'Buddhisme', 'Humanisme', 'Ignostisisme', 'Jødedom', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_surname[en-gb-Gender.MALE]

test_person.py::TestPerson::test_surname[en-gb-Gender.MALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[is-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[is-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[kk]

test_person.py::TestPerson::test_sex[kk]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Ер', 'Әйел']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[fa-None-None]

test_person.py::TestPerson::test_title[fa-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[is]

test_person.py::TestPerson::test_gender[is]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvenkyns', 'Karlkyn', 'Annað']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[zh-Gender.MALE-None]

test_person.py::TestPerson::test_title[zh-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[ru-Gender.MALE]

test_person.py::TestPerson::test_nationality[ru-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Русский', 'Белорус', 'Француз', 'Еврей', 'Немец', 'Англичанин', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_nationality[pt-Gender.MALE]

test_person.py::TestPerson::test_nationality[pt-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_first_name[et-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[et-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aada', 'Aale', 'Aare', 'Aave', 'Aba', 'Abigail', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_surname[sk-Gender.FEMALE]

test_person.py::TestPerson::test_surname[sk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Balogová', 'Balážová', 'Horváthová', 'Kováčová', 'Lukáčová', 'Molnárová', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_title[fi-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fi-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[hu]

test_person.py::TestPerson::test_sex[hu]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Férfi', 'Nő', 'Egyéb']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_first_name[pl-Gender.MALE]

test_person.py::TestPerson::test_first_name[pl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abel', 'Adam', 'Adolf', 'Adrian', 'Agaton', 'Alan', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_first_name[tr-Gender.MALE]

test_person.py::TestPerson::test_first_name[tr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Acun', 'Afşar', 'Ağa', 'Ağca', 'Aka', 'Akabey', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_full_name[fi-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[fi-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_name[fa-Gender.MALE]

test_person.py::TestPerson::test_name[fa-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['آبتین', 'آتش', 'آترین', 'آتورپات', 'آذرخش', 'آذرمه', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_views_on[ja]

test_person.py::TestPerson::test_views_on[ja]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['消極', '積極', '中立']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[pt-Gender.MALE-None]

test_person.py::TestPerson::test_title[pt-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[no-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[no-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aagot', 'Aaliyah', 'Aasa', 'Aase', 'Aasgjerd', 'Aasta', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_telephone[sk]

test_person.py::TestPerson::test_telephone[sk]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-None]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[en-ca]

test_person.py::TestPerson::test_telephone[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[hu-Gender.MALE]

test_person.py::TestPerson::test_first_name[hu-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aba', 'Adorján', 'Aladár', 'Albert', 'Alex', 'Alexander', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name[kk-Gender.MALE]

test_person.py::TestPerson::test_name[kk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Абай', 'Аббас', 'Абзал', 'Абыз', 'Абызбай', 'Абылай', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_surname[ko-Gender.FEMALE]

test_person.py::TestPerson::test_surname[ko-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['가', '각', '간', '갈', '감', '갑', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[is-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[is-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[et-None-None]

test_person.py::TestPerson::test_title[et-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[hu]

test_person.py::TestPerson::test_academic_degree[hu]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['BSc', 'MSc', 'PhD']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_name[de-Gender.FEMALE]

test_person.py::TestPerson::test_name[de-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ada', 'Adalgisa', 'Adalia', 'Adela', 'Adele', 'Adelgunde', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[ru-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ru-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[de-Gender.MALE]

test_person.py::TestPerson::test_first_name[de-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Achim', 'Adelbert', 'Adelfried', 'Adelino', 'Adelrico', 'Adolf', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[de-at]

test_person.py::TestPerson::test_name_unexpected_gender[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[hr-Gender.MALE]

test_person.py::TestPerson::test_name[hr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adrian', 'Albert', 'Aleks', 'Aleksandar', 'Alen', 'Alfred', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_surname[en-gb-Gender.FEMALE]

test_person.py::TestPerson::test_surname[en-gb-Gender.FEMALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[ko-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ko-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[pt-Gender.MALE]

test_person.py::TestPerson::test_name[pt-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aarão', 'Abdias', 'Abdul', 'Abdénago', 'Abel', 'Abelardo', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[el-Gender.MALE-None]

test_person.py::TestPerson::test_title[el-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[it-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[it-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[hu]

test_person.py::TestPerson::test_profession[hu]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Adatbázis adminisztrátor', 'Állatgondozó', 'Állatorvos', 'Általános orvos', 'Analitikus', 'Ápoló', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_profession[de]

test_person.py::TestPerson::test_profession[de]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Anwalt / Anwältin', 'Apotheker / Apothekerin', 'Architekt / Architektin', 'Arzt / Ärztin', 'Bauer / Bäuerin', 'Beamter / Beamtin', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_surname[el-Gender.MALE]

test_person.py::TestPerson::test_surname[el-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Αβραμίδης', 'Αγγελίδης', 'Αθανασίου', 'Αθανασιάδης', 'Αλαβάνος', 'Αλεξάκης', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_full_name[it-Gender.MALE]

test_person.py::TestPerson::test_full_name[it-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[cs]

test_person.py::TestPerson::test_views_on[cs]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negativy', 'Neutrální', 'Pozitivní']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[tr-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[tr-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_username_drange

test_person.py::TestPerson::test_username_drange
self = 
_person = 

    def test_username_drange(self, _person):
        username = _person.username(mask="U.d", drange=(1000, 2000))
>       username, digits = username.split(".")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:94: AttributeError

test_person.py::TestPerson::test_title[hu-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hu-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[pl]

test_person.py::TestPerson::test_academic_degree[pl]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Adiunkt', 'Asystent', 'Doktor', 'Inżynier', 'Licencjat', 'Magister', ...]

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_surname[no-Gender.MALE]

test_person.py::TestPerson::test_surname[no-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aabel', 'Aaker', 'Aakre', 'Aalefjær', 'Aall', 'Aamland', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_academic_degree[nl]

test_person.py::TestPerson::test_academic_degree[nl]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Universitair Docent', 'Hoogleraar', 'Docent', 'Onderzoeker', 'Postdoc', 'Promovendus', ...]

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_full_name[ja-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[ja-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[da-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[da-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_full_name[da-Gender.MALE]

test_person.py::TestPerson::test_full_name[da-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_university[de-ch]

test_person.py::TestPerson::test_university[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[sv-Gender.FEMALE]

test_person.py::TestPerson::test_surname[sv-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aaberg', 'Aalberg', 'Abdi', 'Aberg', 'Abrahamsson', 'Adelsköld', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_profession[en-gb]

test_person.py::TestPerson::test_profession[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[tr-Gender.MALE]

test_person.py::TestPerson::test_full_name[tr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[zh-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[zh-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[sk-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[sk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Francúzka', 'Maďarka', 'Nemka', 'Poľka', 'Rakúšanka', 'Ruska', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_first_name[pl-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[pl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ada', 'Adela', 'Adelajda', 'Adelina', 'Adria', 'Adrianna', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_gender[en-gb]

test_person.py::TestPerson::test_gender[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[is]

test_person.py::TestPerson::test_views_on[is]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Neikvæð', 'Very neikvæð', 'Jákvæð', 'Hlutlaus']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name[nl-Gender.FEMALE]

test_person.py::TestPerson::test_name[nl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaliyah', 'Aaltje', 'Abby', 'Abigail', 'Adriana', 'Aimée', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_first_name[en-ca-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[en-ca-Gender.FEMALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_university[es-mx]

test_person.py::TestPerson::test_university[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[pt-br-Gender.MALE]

test_person.py::TestPerson::test_name[pt-br-Gender.MALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fi-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fi-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[is]

test_person.py::TestPerson::test_telephone[is]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_first_name[it-Gender.MALE]

test_person.py::TestPerson::test_first_name[it-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aberto', 'Abramo', 'Achile', 'Adalberto', 'Adalgiso', 'Adamo', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_political_views[uk]

test_person.py::TestPerson::test_political_views[uk]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Анархістичні', 'Комуністичні', 'Консервативні', 'Ліберальні', 'Лібертаріанські', 'Помірні', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_full_name[tr-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[tr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[de-at-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-at-Gender.MALE-TitleType.ACADEMIC]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[is-Gender.MALE]

test_person.py::TestPerson::test_first_name[is-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aage', 'Aaron', 'Abel', 'Abraham', 'Adam', 'Addi', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_telephone[nl]

test_person.py::TestPerson::test_telephone[nl]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[cs-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[cs-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[ja-Gender.FEMALE]

test_person.py::TestPerson::test_surname[ja-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['会', '阿井', '逢坂', '相川', '愛甲', '相沢', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_first_name[sv-Gender.MALE]

test_person.py::TestPerson::test_first_name[sv-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aabiörn', 'Aabiørn', 'Aabram', 'Aabyorn', 'Aabyrn', 'Aache', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_first_name[fi-Gender.MALE]

test_person.py::TestPerson::test_first_name[fi-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadolf', 'Aake', 'Aapeli', 'Aapo', 'Aappo', 'Aarne', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[en-gb]

test_person.py::TestPerson::test_name_unexpected_gender[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[fi]

test_person.py::TestPerson::test_telephone[fi]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[fi-Gender.MALE]

test_person.py::TestPerson::test_surname[fi-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aalto', 'Aaltonen', 'Aho', 'Ahola', 'Ahonen', 'Ahtisaari', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[ru-Gender.MALE-None]

test_person.py::TestPerson::test_title[ru-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[tr-Gender.FEMALE]

test_person.py::TestPerson::test_surname[tr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abacı', 'Abadan', 'Aclan', 'Adal', 'Adan', 'Adıvar', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_full_name[zh-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[zh-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_first_name[et-Gender.MALE]

test_person.py::TestPerson::test_first_name[et-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadu', 'Aage', 'Aago', 'Aap', '\u200eAapo', 'Aare', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_gender[es-mx]

test_person.py::TestPerson::test_gender[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[hu-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hu-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[is]

test_person.py::TestPerson::test_political_views[is]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Áhugalausir', 'Kommúnista', 'Miðlungs', 'Liberal', 'Frjálshyggjufélagið']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_name[en-gb-Gender.MALE]

test_person.py::TestPerson::test_name[en-gb-Gender.MALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[en-au-Gender.MALE]

test_person.py::TestPerson::test_surname[en-au-Gender.MALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[et-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[et-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[pt-br-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-br-None-TitleType.ACADEMIC]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[hr-Gender.FEMALE]

test_person.py::TestPerson::test_name[hr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adela', 'Adriana', 'Aida', 'Aldijana', 'Alenka', 'Aleta', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_telephone[ko]

test_person.py::TestPerson::test_telephone[ko]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_university[en-ca]

test_person.py::TestPerson::test_university[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[tr]

test_person.py::TestPerson::test_profession[tr]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Acentacı', 'Acil durum yönetmeni', 'Adli tabip', 'Agronomist', 'Ağ yöneticisi', 'Aşçı', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_first_name[de-ch-Gender.MALE]

test_person.py::TestPerson::test_first_name[de-ch-Gender.MALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[uk-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[uk-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[el]

test_person.py::TestPerson::test_worldview[el]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Αγνωστικισμός', 'Αθεϊσμός', 'Καθολικισμός', 'Κομφουκιανισμός', 'Κοσμικός ανθρωπισμός', 'Ντεϊσμό', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_full_name[fr-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[fr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[tr]

test_person.py::TestPerson::test_sex[tr]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Erkek', 'Kadın', 'Diğer']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_political_views[tr]

test_person.py::TestPerson::test_political_views[tr]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Merkez Sağ', 'Merkez Sol', 'Sağ', 'Komunist', 'Milliyetçi', 'Muhafazakar', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_title[is-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[is-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[hr-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hr-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[hu]

test_person.py::TestPerson::test_telephone[hu]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_nationality[is-Gender.MALE]

test_person.py::TestPerson::test_nationality[is-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_full_name[no-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[no-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_political_views[hr]

test_person.py::TestPerson::test_political_views[hr]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Demokrat', 'Komunist', 'Konzervatist', 'Liberalist', 'Nacionalist', 'Populist', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_sex[nl-be]

test_person.py::TestPerson::test_sex[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[sk]

test_person.py::TestPerson::test_sex[sk]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['muž', 'žena']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[fa-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fa-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[uk]

test_person.py::TestPerson::test_profession[uk]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Євнух', 'Єгер', 'Іконописець', 'Інженер', 'Інспектор', 'Інструктор', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_academic_degree[ko]

test_person.py::TestPerson::test_academic_degree[ko]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['학사', '석사', '박사']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[ja-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ja-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[hu]

test_person.py::TestPerson::test_university[hu]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Állatorvostudományi Egyetem', 'Andrássy Gyula Budapesti Német Nyelvű Egyetem', 'Budapesti Corvinus Egyetem', 'Budapesti Gazdasági Egyetem', 'Budapesti Metropolitan Egyetem', 'Budapesti Műszaki és Gazdaságtudományi Egyetem', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_name[da-Gender.FEMALE]

test_person.py::TestPerson::test_name[da-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abelone', 'Adele', 'Adelheid', 'Adhelin', 'Agathe', 'Agnes', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_sex[fr]

test_person.py::TestPerson::test_sex[fr]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculin', 'Féminin']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[fa]

test_person.py::TestPerson::test_profession[fa]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['پزشک خانواده', 'جراح', 'متخصص قلب', 'روان پزشک', 'دکتر پوست', 'پزشک زنان', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[de-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[ru-Gender.FEMALE]

test_person.py::TestPerson::test_name[ru-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ава', 'Августа', 'Августина', 'Авдотья', 'Аврора', 'Агапия', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_profession[ja]

test_person.py::TestPerson::test_profession[ja]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['アイドル', 'アーキビスト', 'アクチュアリー', 'アシスタントディレクター', 'アスレティックトレーナー', 'アーティスト', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_profession[no]

test_person.py::TestPerson::test_profession[no]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Dataingeniør', 'Helpdeskmedarbeider', 'IKT-servicemedarbeider', 'IT-administrator', 'Markedsfører', 'Markedskoordinator', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-None]

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-None]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[pt-Gender.MALE]

test_person.py::TestPerson::test_full_name[pt-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_email_unique_seed

test_person.py::TestPerson::test_email_unique_seed
self = 

    def test_email_unique_seed(self):
        person = Person(seed=1)
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:140: Failed

test_person.py::TestPerson::test_name_unexpected_gender[cs]

test_person.py::TestPerson::test_name_unexpected_gender[cs]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[no-Gender.MALE-None]

test_person.py::TestPerson::test_title[no-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[de-ch-Gender.MALE]

test_person.py::TestPerson::test_nationality[de-ch-Gender.MALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[de-at-Gender.MALE]

test_person.py::TestPerson::test_surname[de-at-Gender.MALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[ko-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[ko-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_name_unexpected_gender[en-ca]

test_person.py::TestPerson::test_name_unexpected_gender[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[pt]

test_person.py::TestPerson::test_profession[pt]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Administrador de sistemas', 'Aeromoça', 'Analista de segurança da informação', 'Analista de sistemas', 'Arqueólogo', 'Arquiteto', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[uk]

test_person.py::TestPerson::test_name_unexpected_gender[uk]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_academic_degree[is]

test_person.py::TestPerson::test_academic_degree[is]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['BA']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_views_on[es]

test_person.py::TestPerson::test_views_on[es]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negativo', 'Muy negativo', 'Positivo', 'Neutral', 'Compromisable']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_surname[hr-Gender.MALE]

test_person.py::TestPerson::test_surname[hr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abramović', 'Andrić', 'Antolović', 'Antunović', 'Babić', 'Balić', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_first_name[pt-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[pt-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abigail', 'Abna', 'Abília', 'Acélia', 'Ada', 'Adalgisa', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_university[es]

test_person.py::TestPerson::test_university[es]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Universidad Abad Oliva CEU', 'Universidad Abierta de Cataluña', 'Universidad Alfonso X el Sabio', 'Universidad Antonio de Nebrija', 'Universidad Autónoma de Barcelona', 'Universidad Autónoma de Madrid', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_title[es-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[es-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[uk-Gender.MALE-None]

test_person.py::TestPerson::test_title[uk-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[ko-Gender.MALE]

test_person.py::TestPerson::test_name[ko-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['강훈', '건영', '건우', '건율', '건하', '건호', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_sex[ja]

test_person.py::TestPerson::test_sex[ja]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['男性', '女性', 'その他']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-TitleType.ACADEMIC]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[sv-Gender.MALE]

test_person.py::TestPerson::test_full_name[sv-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_gender[fi]

test_person.py::TestPerson::test_gender[fi]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Nainen', 'Mies', 'Muut']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_views_on[ru]

test_person.py::TestPerson::test_views_on[ru]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Компромиссное', 'Негативное', 'Нейтральное', 'Положительное', 'Резко негативное']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_username_unsupported_mask

test_person.py::TestPerson::test_username_unsupported_mask
self = 
_person = 

    def test_username_unsupported_mask(self, _person):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:101: Failed

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[es-mx]

test_person.py::TestPerson::test_worldview[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[de-ch-Gender.MALE]

test_person.py::TestPerson::test_surname[de-ch-Gender.MALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[hu]

test_person.py::TestPerson::test_gender[hu]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Férfi', 'Nő', 'Egyéb']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_full_name[en-au-Gender.MALE]

test_person.py::TestPerson::test_full_name[en-au-Gender.MALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[sk-Gender.MALE]

test_person.py::TestPerson::test_first_name[sk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adam', 'Adolf', 'Adrián', 'Alan', 'Albert', 'Albín', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[en-au-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-au-None-TitleType.ACADEMIC]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[de-at]

test_person.py::TestPerson::test_profession[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[is-None-None]

test_person.py::TestPerson::test_title[is-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[de-Gender.MALE]

test_person.py::TestPerson::test_surname[de-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abeln', 'Abraham', 'Abt', 'Achilles', 'Achterberg', 'Acker', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[ko-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ko-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-TitleType.TYPICAL]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[hr]

test_person.py::TestPerson::test_gender[hr]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Muški', 'Ženski']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_name[fr-Gender.MALE]

test_person.py::TestPerson::test_name[fr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaron', 'Abdallah', 'Abdoulaye', 'Abel', 'Achille', 'Adam', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_language[da]

test_person.py::TestPerson::test_language[da]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Abkhasisk', 'Afar', 'Afrikaans', 'Akan', 'Albansk', 'Amharisk', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[fr-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fr-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[uk-Gender.FEMALE]

test_person.py::TestPerson::test_name[uk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Августа', 'Аврелія', 'Аврора', 'Агапія', 'Агата', 'Агафія', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_university[zh]

test_person.py::TestPerson::test_university[zh]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['北京大学', '中国人民大学', '清华大学', '北京交通大学', '北京工业大学', '北京航空航天大学', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-None]

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-None]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[da-None-None]

test_person.py::TestPerson::test_title[da-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[en-au]

test_person.py::TestPerson::test_worldview[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[es]

test_person.py::TestPerson::test_profession[es]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Abogado', 'Actor', 'Actriz', 'Aduanero', 'Agricultor', 'Albañil', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_language[en-ca]

test_person.py::TestPerson::test_language[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[de-ch]

test_person.py::TestPerson::test_language[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[zh-Gender.MALE]

test_person.py::TestPerson::test_surname[zh-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['赵', '钱', '孙', '李', '周', '吴', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_gender[fr]

test_person.py::TestPerson::test_gender[fr]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculin', 'Féminin']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[sv-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sv-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[ru]

test_person.py::TestPerson::test_worldview[ru]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Агностицизм', 'Атеизм', 'Буддизм', 'Деизм', 'Иудаизм', 'Католицизм', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-TitleType.TYPICAL]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[hu-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hu-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[no]

test_person.py::TestPerson::test_university[no]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Ålesund University College', 'Bergen National Academy of the Arts', 'Bergen University College', 'Buskerud and Vestfold University College', 'Diakonhjemmet University College', 'Gjøvik University College', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_title[hu-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hu-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[tr-Gender.MALE]

test_person.py::TestPerson::test_nationality[tr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_nationality[uk-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[uk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Росіянка', 'Білоруска', 'Француженка', 'Єврейка', 'Німкеня', 'Англійка', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-TitleType.TYPICAL]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[it]

test_person.py::TestPerson::test_worldview[it]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnostico', 'Ateo', 'Buddista', 'Cattolico', 'Confuciano', 'Ebreo', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_surname[fr-Gender.MALE]

test_person.py::TestPerson::test_surname[fr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abadie', 'Adam', 'Adams', 'Ahmed', 'Alain', 'Alarie', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[es]

test_person.py::TestPerson::test_name_unexpected_gender[es]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_surname[is-Gender.FEMALE]

test_person.py::TestPerson::test_surname[is-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Alreksdóttir', 'Arnaldsdóttir', 'Arnbergsdóttir', 'Arnfinnsdóttir', 'Arngarðsdóttir', 'Arngrímsdóttir', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_full_name[nl-be-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[nl-be-Gender.FEMALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[en-au]

test_person.py::TestPerson::test_academic_degree[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[uk-Gender.MALE]

test_person.py::TestPerson::test_first_name[uk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Августин', 'Авксентій', 'Аврелій', 'Автоном', 'Адам', 'Адріян', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_political_views[ja]

test_person.py::TestPerson::test_political_views[ja]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['無欲', 'アナーキズム', '自由', '共産', '社会主義', '保守']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_full_name[pl-Gender.MALE]

test_person.py::TestPerson::test_full_name[pl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[hr-Gender.MALE]

test_person.py::TestPerson::test_full_name[hr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-TitleType.TYPICAL]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[uk]

test_person.py::TestPerson::test_worldview[uk]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Юдаїзм', 'Агностицизм', 'Атеїзм', 'Буддизм', 'Деіїзм', 'Католицизм', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[it-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[it-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[el]

test_person.py::TestPerson::test_gender[el]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Άνδρας', 'Γυναίκα']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_surname[cs-Gender.MALE]

test_person.py::TestPerson::test_surname[cs-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Adamec', 'Bakes', 'Barta', 'Bartoň', 'Barák', 'Benda', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[et-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[et-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[en-gb]

test_person.py::TestPerson::test_university[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[en-au-Gender.FEMALE]

test_person.py::TestPerson::test_surname[en-au-Gender.FEMALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[ja-Gender.MALE]

test_person.py::TestPerson::test_first_name[ja-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['葵', 'アキラ', '悪太郎', '石松', '一太郎', '一輝', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_university[hr]

test_person.py::TestPerson::test_university[hr]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Hrvatsko katoličko sveučilište', 'Libertas međunarodno sveučilište', 'Sveučilište Josipa Jurja Strossmayera u Osijeku', 'Sveučilište Jurja Dobrile u Puli', 'Sveučilište Sjever', 'Sveučilište VERN', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_name[it-Gender.FEMALE]

test_person.py::TestPerson::test_name[it-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abelie', 'Abra', 'Abree', 'Abri', 'Abriana', 'Abrianna', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_language[nl]

test_person.py::TestPerson::test_language[nl]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afar', 'Aghem', 'Ainu', 'Akan', 'Akoli', 'Akoose', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[fi-Gender.MALE-None]

test_person.py::TestPerson::test_title[fi-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[tr]

test_person.py::TestPerson::test_worldview[tr]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Ateizm', 'Agnostizm', 'Deizm', 'Judaizm', 'Katolik', 'Islam']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_name[ja-Gender.FEMALE]

test_person.py::TestPerson::test_name[ja-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['アイ', 'あいか', 'あいこ', '愛子', '葵', 'アカネ', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[hu-Gender.MALE-None]

test_person.py::TestPerson::test_title[hu-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[de-at-Gender.MALE]

test_person.py::TestPerson::test_name[de-at-Gender.MALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ru-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[es-mx-Gender.FEMALE-None]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[tr-Gender.MALE]

test_person.py::TestPerson::test_surname[tr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abacı', 'Abadan', 'Aclan', 'Adal', 'Adan', 'Adıvar', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_first_name[fa-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[fa-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['آبگینه', 'آبنوس', 'آتنا', 'آتوسا', 'اختر', 'آذر', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[cs-Gender.MALE]

test_person.py::TestPerson::test_name[cs-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abadon', 'Abd', 'Abdon', 'Abelard', 'Abraham', 'Abrahám', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_nationality[kk-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[kk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_password

test_person.py::TestPerson::test_password
self = 
_person = 

    def test_password(self, _person):
        result = _person.password(length=15)
>       assert len(result) == 15
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_person.py:51: TypeError

test_person.py::TestPerson::test_title[is-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[is-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[sk-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sk-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[sk-Gender.MALE]

test_person.py::TestPerson::test_nationality[sk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Francúz', 'Maďar', 'Nemec', 'Poliak', 'Rakúšan', 'Rus', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_telephone[nl-be]

test_person.py::TestPerson::test_telephone[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[kk-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[kk-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[cs]

test_person.py::TestPerson::test_political_views[cs]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarchismus', 'Anarchokomunismus', 'Liberalismus']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_academic_degree[es]

test_person.py::TestPerson::test_academic_degree[es]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Grado', 'Máster', 'Doctorado']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_first_name[nl-Gender.MALE]

test_person.py::TestPerson::test_first_name[nl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaron', 'Abel', 'Abraham', 'Adam', 'Adriaan', 'Ahmed', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_worldview[zh]

test_person.py::TestPerson::test_worldview[zh]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['无神论', '不可知論', '自然神論', '泛神论', '儒教']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[tr-None-None]

test_person.py::TestPerson::test_title[tr-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[no-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[no-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[nl-be-Gender.FEMALE]

test_person.py::TestPerson::test_surname[nl-be-Gender.FEMALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[kk-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[kk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[sk-Gender.MALE-None]

test_person.py::TestPerson::test_title[sk-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[sk-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sk-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[ru]

test_person.py::TestPerson::test_profession[ru]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Писатель', 'Пожарный', 'Пастух', 'Столяр', 'Драпировщик', 'Садовник', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_sex[en-au]

test_person.py::TestPerson::test_sex[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-TitleType.ACADEMIC]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[uk-None-None]

test_person.py::TestPerson::test_title[uk-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[el-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[el-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[el-Gender.FEMALE]

test_person.py::TestPerson::test_name[el-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Άλκηστις', 'Άννα', 'Άντζελα', 'Άρτεμις', 'Έλενα', 'Έφη', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_academic_degree[zh]

test_person.py::TestPerson::test_academic_degree[zh]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['学士', '研究生', '博士']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_worldview[pt-br]

test_person.py::TestPerson::test_worldview[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[sv]

test_person.py::TestPerson::test_sex[sv]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Man', 'Kvinna', 'Annat']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[nl-be-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-be-None-TitleType.ACADEMIC]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[pt]

test_person.py::TestPerson::test_telephone[pt]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_surname[da-Gender.MALE]

test_person.py::TestPerson::test_surname[da-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aaen', 'Aagaard', 'Aagesen', 'Aarup', 'Abdi', 'Abel', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_surname[nl-Gender.MALE]

test_person.py::TestPerson::test_surname[nl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aabel', 'Aaftink', 'Aagten', 'Aalberdink', 'Aalberink', 'Aalbers', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[sk-Gender.FEMALE]

test_person.py::TestPerson::test_name[sk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adela', 'Adriána', 'Agnesa', 'Agáta', 'Albína', 'Alena', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-TitleType.TYPICAL]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[es]

test_person.py::TestPerson::test_sex[es]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculino', 'Femenino', 'Neutro']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_views_on[pl]

test_person.py::TestPerson::test_views_on[pl]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Bardzo negatywny', 'Kompromisowy', 'Negatywny', 'Neutralny', 'Nie wpisano', 'Pozytywny']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name[es-mx-Gender.FEMALE]

test_person.py::TestPerson::test_name[es-mx-Gender.FEMALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[en-au-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-au-Gender.MALE-TitleType.TYPICAL]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[fi-Gender.MALE]

test_person.py::TestPerson::test_nationality[fi-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_political_views[fi]

test_person.py::TestPerson::test_political_views[fi]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Kommunistinen', 'Liberaali', 'Libertaari', 'Pidättyvä', 'Sosialistinen', 'Vanhoillinen', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_gender[de-ch]

test_person.py::TestPerson::test_gender[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[pl]

test_person.py::TestPerson::test_sex[pl]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Męski', 'Żeński', 'Nijaki']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_full_name[hr-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[hr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_profession[fr]

test_person.py::TestPerson::test_profession[fr]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Acheteur d’espaces publicitaires', 'Acheteur en centrale d’achat', 'Acheteur en produits agroalimentaires', 'Acheteur en produits horticoles', 'Acheteur industriel', 'Acousticien du bâtiment', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_gender[nl-be]

test_person.py::TestPerson::test_gender[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-ch-None-TitleType.TYPICAL]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[no]

test_person.py::TestPerson::test_sex[no]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvinne', 'Mann', 'Intetkjønn']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ko-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[hr]

test_person.py::TestPerson::test_worldview[hr]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnosticizam', 'Ateizam', 'Budizam', 'Islamizam', 'Judaizam', 'Katolicizam']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_full_name[it-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[it-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_surname[ko-Gender.MALE]

test_person.py::TestPerson::test_surname[ko-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['가', '각', '간', '갈', '감', '갑', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[it-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[it-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[nl-be-Gender.MALE]

test_person.py::TestPerson::test_name[nl-be-Gender.MALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[is]

test_person.py::TestPerson::test_university[is]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Háskóli Íslands', 'Háskólinn á Akureyri', 'Háskólinn á Bifröst', 'Háskólinn í Reykjavík', 'Hólaskóli', 'Landbúnaðarháskóli Íslands']

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_political_views[zh]

test_person.py::TestPerson::test_political_views[zh]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['社会主義', '民主', '共産']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_nationality[cs-Gender.MALE]

test_person.py::TestPerson::test_nationality[cs-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Afričan', 'Američan', 'Američan', 'Angličan', 'Asiat', 'Australan', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_surname[ru-Gender.FEMALE]

test_person.py::TestPerson::test_surname[ru-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абакумова', 'Абдуллаева', 'Абрамова', 'Абрикосова', 'Абросимова', 'Абузярова', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_title[is-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[is-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[fr]

test_person.py::TestPerson::test_views_on[fr]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Négatif', 'Positif', 'Neutre', 'Indécis']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_worldview[de]

test_person.py::TestPerson::test_worldview[de]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnostizismus', 'Atheismus', 'Deismus', 'Humanismus', 'Judentum', 'Katholizismus', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_full_name[de-ch-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[de-ch-Gender.FEMALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[pt-br]

test_person.py::TestPerson::test_name_unexpected_gender[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[da-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[da-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[es-Gender.MALE]

test_person.py::TestPerson::test_first_name[es-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aarón', 'Adrián', 'Agapetus', 'Agustín', 'Aimon', 'Alan', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[nl]

test_person.py::TestPerson::test_name_unexpected_gender[nl]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_surname[uk-Gender.FEMALE]

test_person.py::TestPerson::test_surname[uk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абраменко', 'Абрамець', 'Авдєєнко', 'Аверченко', 'Авраменко', 'Адамович', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_nationality[hr-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[hr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_full_name[de-Gender.MALE]

test_person.py::TestPerson::test_full_name[de-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_name[sk-Gender.MALE]

test_person.py::TestPerson::test_name[sk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adam', 'Adolf', 'Adrián', 'Alan', 'Albert', 'Albín', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[de]

test_person.py::TestPerson::test_university[de]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Universität der Bundeswehr München', 'Katholische Hochschule Freiburg', 'Deutsche Universität für Verwaltungswissenschaften Speyer', 'Europa-Universität Viadrina', 'Freie Universität Berlin', 'Helmut-Schmidt-Universität', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ja-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[pl-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pl-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[sk]

test_person.py::TestPerson::test_name_unexpected_gender[sk]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[ko-None-None]

test_person.py::TestPerson::test_title[ko-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[de-at]

test_person.py::TestPerson::test_gender[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[no]

test_person.py::TestPerson::test_political_views[no]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Likegyldig', 'Kommunistiske', 'Sosialistiske', 'Moderate', 'Liberale', 'Konservative', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_first_name[ko-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[ko-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['가영', '가현', '경미', '경숙', '경은', '경희', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_language[is]

test_person.py::TestPerson::test_language[is]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Abkasíska', 'Acoli', 'Adangme', 'Adýge', 'Afríhílí', 'Afríkanska', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[ru]

test_person.py::TestPerson::test_name_unexpected_gender[ru]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[fi-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fi-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[ru-Gender.MALE]

test_person.py::TestPerson::test_first_name[ru-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Авдей', 'Авксентий', 'Агафон', 'Акакий', 'Александр', 'Алексей', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_full_name[sk-Gender.MALE]

test_person.py::TestPerson::test_full_name[sk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[el-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[el-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[de-ch]

test_person.py::TestPerson::test_political_views[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[pl]

test_person.py::TestPerson::test_name_unexpected_gender[pl]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_language[en-au]

test_person.py::TestPerson::test_language[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[en-ca-Gender.MALE]

test_person.py::TestPerson::test_first_name[en-ca-Gender.MALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[hu-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[hu-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abigél', 'Abiáta', 'Abélia', 'Ada', 'Adala', 'Adalberta', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_political_views[de-at]

test_person.py::TestPerson::test_political_views[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[fi-Gender.MALE]

test_person.py::TestPerson::test_full_name[fi-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[kk-Gender.MALE]

test_person.py::TestPerson::test_nationality[kk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_nationality[de-at-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[de-at-Gender.FEMALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[sv-Gender.MALE]

test_person.py::TestPerson::test_nationality[sv-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_language[pt]

test_person.py::TestPerson::test_language[pt]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afrikaans', 'Albanês', 'Alemão', 'Amárico', 'Árabe', 'Armênio', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[fa]

test_person.py::TestPerson::test_name_unexpected_gender[fa]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_birthdate_with_invalid_params[2025-2027]

test_person.py::TestPerson::test_birthdate_with_invalid_params[2025-2027]
self = 
_person = 
min_year = 2025, max_year = 2027

    @pytest.mark.parametrize(
        "min_year, max_year",
        [
            (1899, 1950),
            (datetime.now().year + 1, datetime.now().year + 3),
        ],
    )
    def test_birthdate_with_invalid_params(self, _person, min_year, max_year):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:43: Failed

test_person.py::TestPerson::test_full_name[es-mx-Gender.MALE]

test_person.py::TestPerson::test_full_name[es-mx-Gender.MALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[fa]

test_person.py::TestPerson::test_views_on[fa]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['منفی', 'بسیار منفی', 'مثبت', 'خنثی', 'توافقی']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_full_name[cs-Gender.MALE]

test_person.py::TestPerson::test_full_name[cs-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_university[sk]

test_person.py::TestPerson::test_university[sk]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Akadémia umení v Banskej Bystrici', 'Ekonomická univerzita v Bratislave', 'Katolícka univerzita v Ružomberku', 'Preš...erzita v Prešove', 'Slovenská poľnohospodárska univerzita v Nitre', 'Slovenská technická univerzita v Bratislave', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_views_on[fi]

test_person.py::TestPerson::test_views_on[fi]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Kompromissi', 'Negatiivinen', 'Neutraali', 'Positiivinen', 'Todella negatiivinen']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_telephone[de-at]

test_person.py::TestPerson::test_telephone[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[es-None-None]

test_person.py::TestPerson::test_title[es-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[pt-br]

test_person.py::TestPerson::test_political_views[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[de]

test_person.py::TestPerson::test_views_on[de]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Kompromittierbar', 'Negativ', 'Neutral', 'Positiv', 'Sehr negativ', 'Sehr positiv']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[de-at]

test_person.py::TestPerson::test_university[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[es]

test_person.py::TestPerson::test_political_views[es]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarquista', 'Liberal', 'Comunista', 'Moderato', 'Socialista', 'Conservador', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_nationality[en-au-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[en-au-Gender.FEMALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[de]

test_person.py::TestPerson::test_name_unexpected_gender[de]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[no-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[no-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[ja]

test_person.py::TestPerson::test_gender[ja]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['男性', '女性', 'その他']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_nationality[ko-Gender.MALE]

test_person.py::TestPerson::test_nationality[ko-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_gender[pt-br]

test_person.py::TestPerson::test_gender[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[pl]

test_person.py::TestPerson::test_gender[pl]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Męski', 'Żeński', 'Nijaki']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_name[de-ch-Gender.MALE]

test_person.py::TestPerson::test_name[de-ch-Gender.MALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[da-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[da-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abelone', 'Adele', 'Adelheid', 'Adhelin', 'Agathe', 'Agnes', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_academic_degree[hr]

test_person.py::TestPerson::test_academic_degree[hr]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bakalar', 'Doktor', 'Magistar', 'Profesor']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_str[de-at]

test_person.py::TestPerson::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[en-au]

test_person.py::TestPerson::test_gender[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[de]

test_person.py::TestPerson::test_sex[de]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Andere', 'Männlich', 'Weiblich']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[fi-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fi-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[kk-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[kk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Абира', 'Адлия', 'Ажар', 'Ажаргүл', 'Ажархан', 'Аза', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_first_name[sv-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[sv-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abbelle', 'Abbleka', 'Abela', 'Abele', 'Abeleke', 'Abelke', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_first_name[zh-Gender.MALE]

test_person.py::TestPerson::test_first_name[zh-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['彦龙', '浩鹏', '天一', '铁刚', '君昊', '国艳', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_worldview[kk]

test_person.py::TestPerson::test_worldview[kk]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_username[l-d]

test_person.py::TestPerson::test_username[l-d]
self = 
_person = 
mask = 'l-d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[a-z]+-[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_name[en-ca-Gender.FEMALE]

test_person.py::TestPerson::test_name[en-ca-Gender.FEMALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[tr-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[tr-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[nl-Gender.FEMALE]

test_person.py::TestPerson::test_surname[nl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aabel', 'Aaftink', 'Aagten', 'Aalberdink', 'Aalberink', 'Aalbers', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_str[en-au]

test_person.py::TestPerson::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_username[CC.d]

test_person.py::TestPerson::test_username[CC.d]
self = 
_person = 
mask = 'CC.d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+[A-Z][a-z]+\\.[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_academic_degree[cs]

test_person.py::TestPerson::test_academic_degree[cs]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bakalář', 'Bakalář umění', 'Docent', 'Doktor', 'Doktor farmacie', 'Doktor filozofie', ...]

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[et-Gender.MALE-None]

test_person.py::TestPerson::test_title[et-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[fa]

test_person.py::TestPerson::test_political_views[fa]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['بی تفاوت', 'آنارشیسم', 'لیبرال', 'کمونیست', 'در حد متوسط', 'سوسیالیست', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_views_on[hr]

test_person.py::TestPerson::test_views_on[hr]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Jako negativan', 'Kompromisan', 'Negativan', 'Neutralan', 'Pozitivan']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name[es-mx-Gender.MALE]

test_person.py::TestPerson::test_name[es-mx-Gender.MALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[el]

test_person.py::TestPerson::test_academic_degree[el]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bachelor', 'Διδακτορικό Δίπλωμα', 'Μεταπτυχιακό Δίπλωμα Ειδίκευσης']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[pt-br-None-None]

test_person.py::TestPerson::test_title[pt-br-None-None]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fr-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fr-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[hu-Gender.MALE]

test_person.py::TestPerson::test_nationality[hu-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_nationality[it-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[it-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_telephone[uk]

test_person.py::TestPerson::test_telephone[uk]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[de-at-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-at-None-TitleType.ACADEMIC]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fr-Gender.MALE-None]

test_person.py::TestPerson::test_title[fr-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[nl-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[nl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_political_views[pt]

test_person.py::TestPerson::test_political_views[pt]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Apolítico', 'Anarquista', 'Liberal', 'Communista', 'Moderado', 'Socialista', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_name[en-ca-Gender.MALE]

test_person.py::TestPerson::test_name[en-ca-Gender.MALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[uk]

test_person.py::TestPerson::test_sex[uk]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Жін.', 'Чол.']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_full_name[el-Gender.MALE]

test_person.py::TestPerson::test_full_name[el-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_profession[de-ch]

test_person.py::TestPerson::test_profession[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[en-gb]

test_person.py::TestPerson::test_views_on[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[uk]

test_person.py::TestPerson::test_language[uk]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Ігбо', 'Індонезійська', 'Іспанська мова', 'Італійська', 'Азербайджанська', 'Амхарська', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_sex[en-ca]

test_person.py::TestPerson::test_sex[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_university[it]

test_person.py::TestPerson::test_university[it]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       assert None in ["Università Ca' Foscari Venezia", 'Free University of Bozen', 'Politecnico Di Milano', 'Politecnico di Torino', "Università degli Studi di Roma 'La Sapienza'", 'Scuola Normale Superiore di Pisa', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_email[True]

test_person.py::TestPerson::test_email[True]
self = 
_person = 
unique = True
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f01e1b94850>

    @pytest.mark.parametrize(
        "unique",
        [
            False,
            True,
        ],
    )
    def test_email(self, _person, unique, monkeypatch):
        if unique:
            # We need to prepare the env to remove seeds:
            monkeypatch.setattr(random, "global_seed", None)

        result = _person.email()
>       assert re.match(patterns.EMAIL_REGEX, result)

tests/test_providers/test_person.py:117: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)', string = None
flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_telephone[cs]

test_person.py::TestPerson::test_telephone[cs]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_first_name[es-mx-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[es-mx-Gender.FEMALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[de-at-Gender.FEMALE]

test_person.py::TestPerson::test_surname[de-at-Gender.FEMALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fr-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[da-Gender.MALE]

test_person.py::TestPerson::test_first_name[da-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abiorn', 'Absalon', 'Absolon', 'Adolf', 'Adrian', 'Afkar', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_full_name[sk-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[sk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_telephone[tr]

test_person.py::TestPerson::test_telephone[tr]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_nationality[et-Gender.MALE]

test_person.py::TestPerson::test_nationality[et-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[fr-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fr-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[is-Gender.MALE-None]

test_person.py::TestPerson::test_title[is-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-None]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[kk]

test_person.py::TestPerson::test_name_unexpected_gender[kk]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_sex[de-ch]

test_person.py::TestPerson::test_sex[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[de-Gender.MALE]

test_person.py::TestPerson::test_nationality[de-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Afghane', 'Albaner', 'Amerikaner', 'Armenier', 'Aserbaidschaner', 'Ägypter', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_sex[is]

test_person.py::TestPerson::test_sex[is]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvenkyns', 'Karlkyn', 'Annað']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[no]

test_person.py::TestPerson::test_name_unexpected_gender[no]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_profession[es-mx]

test_person.py::TestPerson::test_profession[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[en-gb]

test_person.py::TestPerson::test_sex[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[ja-Gender.MALE]

test_person.py::TestPerson::test_full_name[ja-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_worldview[nl]

test_person.py::TestPerson::test_worldview[nl]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Atheïsme', 'Pantheïsme', 'Agnosticisme', 'Christendom']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[el-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[el-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[sv-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[sv-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_language[sk]

test_person.py::TestPerson::test_language[sk]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['angličtina', 'francúzština', 'maďarčina', 'nemčina', 'poľština', 'ruština', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_views_on[zh]

test_person.py::TestPerson::test_views_on[zh]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['負面', '正面', '中立']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name_with_none

test_person.py::TestPerson::test_name_with_none
self = 
_person = 

    def test_name_with_none(self, _person):
        result = _person.name(gender=None)
        names = _person._dataset["names"]

        females = names["female"]
        males = names["male"]
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:193: AssertionError

test_person.py::TestPerson::test_surname[sk-Gender.MALE]

test_person.py::TestPerson::test_surname[sk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Balog', 'Baláž', 'Horváth', 'Kováč', 'Lukáč', 'Molnár', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[el]

test_person.py::TestPerson::test_sex[el]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Άνδρας', 'Γυναίκα']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_title[es-Gender.MALE-None]

test_person.py::TestPerson::test_title[es-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[no-None-None]

test_person.py::TestPerson::test_title[no-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[sv-Gender.MALE]

test_person.py::TestPerson::test_surname[sv-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aaberg', 'Aalberg', 'Abdi', 'Aberg', 'Abrahamsson', 'Adelsköld', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_worldview[de-ch]

test_person.py::TestPerson::test_worldview[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[kk-Gender.MALE-None]

test_person.py::TestPerson::test_title[kk-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[it]

test_person.py::TestPerson::test_sex[it]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Maschio', 'Femmina', 'Neutro']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_nationality[da-Gender.MALE]

test_person.py::TestPerson::test_nationality[da-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_university[nl]

test_person.py::TestPerson::test_university[nl]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Christelijke hogeschool ede', 'Erasmus universiteit rotterdam', 'Fontys hogescholen', 'Hanzehogeschool groningen', 'Hogeschool isbw', 'Hogeschool van arnhem en nijmegen', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_gender[tr]

test_person.py::TestPerson::test_gender[tr]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Erkek', 'Kadın', 'Diğer']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_full_name[da-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[da-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[el-Gender.MALE]

test_person.py::TestPerson::test_nationality[el-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[is]

test_person.py::TestPerson::test_name_unexpected_gender[is]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_academic_degree[kk]

test_person.py::TestPerson::test_academic_degree[kk]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Бакалавр', 'Магистр', 'Ғылым докторы', 'Ғылым кандидаты']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[pt]

test_person.py::TestPerson::test_name_unexpected_gender[pt]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_gender_symbol

test_person.py::TestPerson::test_gender_symbol
self = 
_person = 

    def test_gender_symbol(self, _person):
        symbol = _person.gender_symbol()
>       assert symbol in GENDER_SYMBOLS
E       AssertionError: assert None in ('♂', '♀', '⚲')

tests/test_providers/test_person.py:255: AssertionError

test_person.py::TestPerson::test_profession[sk]

test_person.py::TestPerson::test_profession[sk]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['hutník', 'skladník', 'vrátnik', 'zvárač']

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_worldview[fi]

test_person.py::TestPerson::test_worldview[fi]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnostisismi', 'Ateismi', 'Buddhalaisuus', 'Hindulaisuus', 'Humanismi', 'Katolisuus', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_language[et]

test_person.py::TestPerson::test_language[et]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Aa-hmao', 'Abaga', 'Abasiini', 'Abelleni', 'Abhaasi', 'Abidži', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_first_name[no-Gender.MALE]

test_person.py::TestPerson::test_first_name[no-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadne', 'Aage', 'Aake', 'Aamund', 'Aane', 'Aanen', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_full_name[ko-Gender.MALE]

test_person.py::TestPerson::test_full_name[ko-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[hu-None-None]

test_person.py::TestPerson::test_title[hu-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[de-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_username[l.d]

test_person.py::TestPerson::test_username[l.d]
self = 
_person = 
mask = 'l.d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[a-z]+\\.[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_profession[da]

test_person.py::TestPerson::test_profession[da]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Adm. direktør', 'Advokat', 'Advokatfuldmægtig', 'Aut. el installatør', 'Avisbud', 'Bankassistent', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[kk-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[en-gb]

test_person.py::TestPerson::test_language[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[it-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[it-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[ru-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[ru-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ава', 'Августа', 'Августина', 'Авдотья', 'Аврора', 'Агапия', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_university[et]

test_person.py::TestPerson::test_university[et]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['EELK Usuteaduse Instituudi Tartu Teoloogia Akadeemia', 'Eesti EKB Liit Kõrgem Usuteaduslik Seminar', 'Eesti Ettevõtluskõrgkool Mainor', 'Eesti Infotehnoloogia Kolledž', 'Eesti Kunstiakadeemia', 'Eesti Lennuakadeemia', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_is_leap_year

test_person.py::TestPerson::test_is_leap_year
self = 
_person = 

    def test_is_leap_year(self, _person):
>       assert _person._is_leap_year(2024)
E       AttributeError: 'Person' object has no attribute '_is_leap_year'

tests/test_providers/test_person.py:47: AttributeError

test_person.py::TestPerson::test_title[hr-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hr-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[hr-Gender.FEMALE]

test_person.py::TestPerson::test_surname[hr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abramović', 'Andrić', 'Antolović', 'Antunović', 'Babić', 'Balić', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[tr-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[tr-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[pt-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[kk]

test_person.py::TestPerson::test_political_views[kk]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_full_name[de-at-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[de-at-Gender.FEMALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[cs-Gender.FEMALE]

test_person.py::TestPerson::test_surname[cs-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Adamec', 'Bakes', 'Barta', 'Bartoň', 'Barák', 'Benda', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_telephone[fr]

test_person.py::TestPerson::test_telephone[fr]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_full_name[es-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[es-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[en-ca-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-ca-None-TitleType.ACADEMIC]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[it-Gender.MALE]

test_person.py::TestPerson::test_surname[it-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abate', 'Abato', 'Abbruzzese', 'Abela', 'Abella', 'Abramo', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_nationality[it-Gender.MALE]

test_person.py::TestPerson::test_nationality[it-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_university[en-au]

test_person.py::TestPerson::test_university[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[sv]

test_person.py::TestPerson::test_academic_degree[sv]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Docent', 'Doktor', 'Licentiat', 'Magister']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_academic_degree[en-gb]

test_person.py::TestPerson::test_academic_degree[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[en-gb-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-gb-None-TitleType.TYPICAL]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_birthdate[1900-1950]

test_person.py::TestPerson::test_birthdate[1900-1950]
self = 
_person = 
min_year = 1900, max_year = 1950

    @pytest.mark.parametrize(
        "min_year, max_year",
        [
            (1900, 1950),
            (1951, 2001),
            (2001, 2023),
        ],
    )
    def test_birthdate(self, _person, min_year, max_year):
        birthdate = _person.birthdate(min_year, max_year)
>       assert min_year <= birthdate.year <= max_year
E       AttributeError: 'NoneType' object has no attribute 'year'

tests/test_providers/test_person.py:32: AttributeError

test_person.py::TestPerson::test_university[sv]

test_person.py::TestPerson::test_university[sv]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Beckmans designhögskola (BDH)', 'Blekinge tekniska högskola (BTH)', 'Chalmers tekniska högskola (CTH)', 'Dans- och cirkushögskolan', 'Försvarshögskolan (FHS)', 'Gammelkroppa skogsskola (GSS)', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_worldview[nl-be]

test_person.py::TestPerson::test_worldview[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[is-Gender.MALE]

test_person.py::TestPerson::test_name[is-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aage', 'Aaron', 'Abel', 'Abraham', 'Adam', 'Addi', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_full_name[nl-be-Gender.MALE]

test_person.py::TestPerson::test_full_name[nl-be-Gender.MALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[sk]

test_person.py::TestPerson::test_academic_degree[sk]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['bakalár', 'doktor', 'inžinier']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[el-None-None]

test_person.py::TestPerson::test_title[el-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[de-at-Gender.MALE-None]

test_person.py::TestPerson::test_title[de-at-Gender.MALE-None]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[it-Gender.MALE-None]

test_person.py::TestPerson::test_title[it-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[ja-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ja-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-TitleType.ACADEMIC]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[ja]

test_person.py::TestPerson::test_name_unexpected_gender[ja]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_nationality[es-Gender.MALE]

test_person.py::TestPerson::test_nationality[es-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_nationality[no-Gender.MALE]

test_person.py::TestPerson::test_nationality[no-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[hu]

test_person.py::TestPerson::test_name_unexpected_gender[hu]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_full_name[et-Gender.MALE]

test_person.py::TestPerson::test_full_name[et-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[et-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[et-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[kk-Gender.MALE]

test_person.py::TestPerson::test_surname[kk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абдиров', 'Абдрахманов', 'Абдрашев', 'Абдулин', 'Абилев', 'Абилов', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_first_name[ja-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[ja-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['アイ', 'あいか', 'あいこ', '愛子', '葵', 'アカネ', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_first_name[en-gb-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[en-gb-Gender.FEMALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[pt-br]

test_person.py::TestPerson::test_sex[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-TitleType.TYPICAL]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[tr]

test_person.py::TestPerson::test_language[tr]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Abhazca', 'Acarca', 'Afrikaans', 'Akatça', 'Almanca', 'Aragonca', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_nationality[fi-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[fi-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_full_name[pt-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[pt-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_worldview[pl]

test_person.py::TestPerson::test_worldview[pl]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnostycyzm', 'Ateizm', 'Buddyzm', 'Katolicyzm', 'Konfucjonizm', 'Panteizm', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_profession[fi]

test_person.py::TestPerson::test_profession[fi]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['ATK-päällikkö', 'ATK-suunnittelija', 'ATK-tallentaja', 'Aarporaaja', 'Agrologi', 'Agronomi', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[fi-None-None]

test_person.py::TestPerson::test_title[fi-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[es-mx]

test_person.py::TestPerson::test_political_views[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[en-gb-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[en-gb-Gender.FEMALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[fr]

test_person.py::TestPerson::test_language[fr]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Chinois mandarin', 'Espagnol', 'Anglais', 'Bengali', 'Hindi', 'Portugais', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_language[ru]

test_person.py::TestPerson::test_language[ru]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Китайский', 'Арабский', 'Хинди', 'Английский', 'Испанский', 'Бенгальский', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_height

test_person.py::TestPerson::test_height
self = 
_person = 

    def test_height(self, _person):
        result = _person.height(minimum=1.60, maximum=1.90)
>       assert 1.6 <= float(result) <= 1.9
E       TypeError: float() argument must be a string or a real number, not 'NoneType'

tests/test_providers/test_person.py:145: TypeError

test_person.py::TestPerson::test_name[tr-Gender.FEMALE]

test_person.py::TestPerson::test_name[tr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ahunaz', 'Ahunisa', 'Ahunur', 'Ahuse', 'Ahuşen', 'Ajda', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_full_name[de-ch-Gender.MALE]

test_person.py::TestPerson::test_full_name[de-ch-Gender.MALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[sv]

test_person.py::TestPerson::test_profession[sv]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Användbarhetsexpert', 'Arbetsterapeut', 'Arkitekt Nätverk', 'Arkitektyrken', 'Brandingenjör', 'Chief Information Officer', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[da]

test_person.py::TestPerson::test_name_unexpected_gender[da]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_views_on[nl-be]

test_person.py::TestPerson::test_views_on[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[fi]

test_person.py::TestPerson::test_academic_degree[fi]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Dosentti', 'Maisteri', 'Professori', 'Tohtorikoulutettava', 'Tutkijatohtori', 'Tutkimusavustaja', ...]

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[hu-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[ru-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[ru-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[nl-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[de]

test_person.py::TestPerson::test_academic_degree[de]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bachelor', 'Diplom', 'Master', 'Doktor', 'Professor']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_full_name[en-au-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[en-au-Gender.FEMALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[de-at]

test_person.py::TestPerson::test_language[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[hu]

test_person.py::TestPerson::test_worldview[hu]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnoszticizmus', 'Ateizmus', 'Deizmus', 'Judaizmus', 'Katolicizmus', 'Konfucianizmus', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[ja-None-None]

test_person.py::TestPerson::test_title[ja-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[pt-br-Gender.MALE]

test_person.py::TestPerson::test_surname[pt-br-Gender.MALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[es-Gender.MALE]

test_person.py::TestPerson::test_full_name[es-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[en-au-Gender.MALE]

test_person.py::TestPerson::test_nationality[en-au-Gender.MALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[tr]

test_person.py::TestPerson::test_academic_degree[tr]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Ön Lisans', 'Lisans', 'Yüksek Lisans', 'Doktora']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_political_views[fr]

test_person.py::TestPerson::test_political_views[fr]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarchiste', 'Libéral', 'Communiste', 'Socialiste', 'Conservateur', 'Libertaire']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_title[nl-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[fr-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[fr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaliyah', 'Abigael', 'Adriana', 'Adèle', 'Agathe', 'Aicha', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_language[pl]

test_person.py::TestPerson::test_language[pl]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Angielski', 'Arabski', 'Bengalski', 'Chiński', 'Francuski', 'Gudźarati', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-au-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-au-Gender.MALE-TitleType.ACADEMIC]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[nl-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[nl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_name_unexpected_gender[et]

test_person.py::TestPerson::test_name_unexpected_gender[et]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_name_unexpected_gender[zh]

test_person.py::TestPerson::test_name_unexpected_gender[zh]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_surname[pt-Gender.FEMALE]

test_person.py::TestPerson::test_surname[pt-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abreu', 'Afonso', 'Almeida', 'Alves', 'Amaral', 'Amorim', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_gender[da]

test_person.py::TestPerson::test_gender[da]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvinde', 'Han', 'Neutral']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[sv-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sv-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[no-Gender.FEMALE]

test_person.py::TestPerson::test_name[no-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aagot', 'Aaliyah', 'Aasa', 'Aase', 'Aasgjerd', 'Aasta', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[pl-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pl-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[en-au]

test_person.py::TestPerson::test_telephone[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[de-ch]

test_person.py::TestPerson::test_telephone[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[da]

test_person.py::TestPerson::test_telephone[da]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_academic_degree[it]

test_person.py::TestPerson::test_academic_degree[it]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Laurea breve', 'Laurea magistrale', 'Dottorato']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[zh-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[et-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[et-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[es-mx-Gender.FEMALE]

test_person.py::TestPerson::test_surname[es-mx-Gender.FEMALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-TitleType.TYPICAL]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[sv-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sv-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[da-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[da-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[pt-br]

test_person.py::TestPerson::test_language[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[de-ch-Gender.FEMALE]

test_person.py::TestPerson::test_name[de-ch-Gender.FEMALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[hu-Gender.MALE]

test_person.py::TestPerson::test_full_name[hu-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[pl-Gender.MALE]

test_person.py::TestPerson::test_nationality[pl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Polak', 'Afgańczyk', 'Albańczyk', 'Algierczyk', 'Amerykanin', 'Anglik', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_title[is-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[is-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-TitleType.TYPICAL]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[it]

test_person.py::TestPerson::test_language[it]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afrikaans', 'Albanese', 'Amharico', 'Arabo', 'Armeno', 'Basco', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_gender_code

test_person.py::TestPerson::test_gender_code
self = 
_person = 

    def test_gender_code(self, _person):
        code = _person.gender_code()
>       assert code in GENDER_CODES
E       assert None in (0, 1, 2, 9)

tests/test_providers/test_person.py:251: AssertionError

test_person.py::TestPerson::test_full_name[es-mx-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[es-mx-Gender.FEMALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[pt-Gender.FEMALE]

test_person.py::TestPerson::test_name[pt-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abigail', 'Abna', 'Abília', 'Acélia', 'Ada', 'Adalgisa', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[is-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[is-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aagot', 'Abela', 'Abigael', 'Ada', 'Adda', 'Addú', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_gender[ru]

test_person.py::TestPerson::test_gender[ru]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Жен.', 'Муж.']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_full_name[de-at-Gender.MALE]

test_person.py::TestPerson::test_full_name[de-at-Gender.MALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[da]

test_person.py::TestPerson::test_views_on[da]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Kompromissøgende', 'Meget negativ', 'Negativ', 'Neutral', 'Positiv']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[sv]

test_person.py::TestPerson::test_name_unexpected_gender[sv]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_name[en-au-Gender.MALE]

test_person.py::TestPerson::test_name[en-au-Gender.MALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[hu-Gender.FEMALE]

test_person.py::TestPerson::test_name[hu-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abigél', 'Abiáta', 'Abélia', 'Ada', 'Adala', 'Adalberta', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_first_name[cs-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[cs-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aba', 'Abigail', 'Ada', 'Adalberta', 'Adelaida', 'Adina', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_worldview[en-ca]

test_person.py::TestPerson::test_worldview[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[es-mx]

test_person.py::TestPerson::test_academic_degree[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[ja-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[ja-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[sv-None-None]

test_person.py::TestPerson::test_title[sv-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[cs-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[cs-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_worldview[ko]

test_person.py::TestPerson::test_worldview[ko]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['개신교', '기독교', '대종교', '무교', '무종교', '불교', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[it-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[it-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[de-at]

test_person.py::TestPerson::test_views_on[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[zh-Gender.MALE]

test_person.py::TestPerson::test_name[zh-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['彦龙', '浩鹏', '天一', '铁刚', '君昊', '国艳', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[nl-be]

test_person.py::TestPerson::test_name_unexpected_gender[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[en-gb]

test_person.py::TestPerson::test_telephone[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[sv]

test_person.py::TestPerson::test_views_on[sv]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Mycket negativ', 'Negativ', 'Kompromissvillig', 'Neutral', 'Positiv']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fa-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[nl-be]

test_person.py::TestPerson::test_academic_degree[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[el-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[el-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[sv-Gender.MALE-None]

test_person.py::TestPerson::test_title[sv-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[es-mx-Gender.MALE]

test_person.py::TestPerson::test_surname[es-mx-Gender.MALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[sk-None-None]

test_person.py::TestPerson::test_title[sk-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[pl]

test_person.py::TestPerson::test_profession[pl]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Administrator baz danych', 'Administrator bezpieczeństwa informacji', 'Administrator danych osobowych', 'Administrator sieci informatycznej', 'Administrator', 'Agent celny', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_name[et-Gender.FEMALE]

test_person.py::TestPerson::test_name[et-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aada', 'Aale', 'Aare', 'Aave', 'Aba', 'Abigail', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_profession[en-ca]

test_person.py::TestPerson::test_profession[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[sv]

test_person.py::TestPerson::test_gender[sv]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Man', 'Kvinna', 'Annat']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_surname[et-Gender.FEMALE]

test_person.py::TestPerson::test_surname[et-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aakre', 'Aarne', 'Aasmäe', 'Aav', 'Aavik', 'Abbt', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[cs-None-None]

test_person.py::TestPerson::test_title[cs-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[zh]

test_person.py::TestPerson::test_language[zh]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['南非语', '阿拉伯语', '阿塞拜疆语', '比利时语', '保加利亚语', '波斯尼亚语', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_nationality[ko-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[ko-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[zh-None-None]

test_person.py::TestPerson::test_title[zh-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[ko]

test_person.py::TestPerson::test_language[ko]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['갈리시아어', '고트어', '광둥어', '구자라트어', '그리스어', '그린란드어', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_university[pt]

test_person.py::TestPerson::test_university[pt]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Egas Moniz - Cooperativa de Ensino Superior', 'Instituto Politécnico de Bragança', 'Instituto Politécnico de Leiria'...nstituto Politécnico de Santarém', 'ISCTE - Lisbon University Institute', 'Nova School of Business and Economics', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_university[tr]

test_person.py::TestPerson::test_university[tr]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Abant İzzet Baysal Üniversitesi', 'Abdullah Gül Üniversitesi', 'Adana Bilim ve Teknoloji', 'Adıyaman Üniversitesi', 'Adnan Menderes Üniversitesi', 'Afyon Kocatepe Üniversitesi', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_name[pl-Gender.MALE]

test_person.py::TestPerson::test_name[pl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abel', 'Adam', 'Adolf', 'Adrian', 'Agaton', 'Alan', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_username[None]

test_person.py::TestPerson::test_username[None]
self = 
_person = 
mask = None

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Za-z]{2,}[\\.\\-\\_]?[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_views_on[no]

test_person.py::TestPerson::test_views_on[no]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negativ', 'Veldig negativ', 'Positiv', 'Kompromiss', 'Nøytral']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[pt-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pt-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[de-ch-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[de-ch-Gender.FEMALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[en-gb]

test_person.py::TestPerson::test_political_views[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-None-None]

test_person.py::TestPerson::test_title[de-ch-None-None]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[no-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[no-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_academic_degree[fr]

test_person.py::TestPerson::test_academic_degree[fr]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Licence', 'Master', 'Doctorat']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[es-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[fa]

test_person.py::TestPerson::test_sex[fa]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['مذکر', 'مؤنث', 'دیگر']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[tr]

test_person.py::TestPerson::test_name_unexpected_gender[tr]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[es-mx-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-mx-None-TitleType.TYPICAL]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[de-Gender.MALE]

test_person.py::TestPerson::test_name[de-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Achim', 'Adelbert', 'Adelfried', 'Adelino', 'Adelrico', 'Adolf', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_nationality[fa-Gender.MALE]

test_person.py::TestPerson::test_nationality[fa-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_first_name[uk-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[uk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Августа', 'Аврелія', 'Аврора', 'Агапія', 'Агата', 'Агафія', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name[tr-Gender.MALE]

test_person.py::TestPerson::test_name[tr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Acun', 'Afşar', 'Ağa', 'Ağca', 'Aka', 'Akabey', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_surname[de-ch-Gender.FEMALE]

test_person.py::TestPerson::test_surname[de-ch-Gender.FEMALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[hr]

test_person.py::TestPerson::test_telephone[hr]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_full_name[pt-br-Gender.MALE]

test_person.py::TestPerson::test_full_name[pt-br-Gender.MALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[it-None-None]

test_person.py::TestPerson::test_title[it-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[zh-Gender.MALE]

test_person.py::TestPerson::test_nationality[zh-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[es-mx-Gender.MALE]

test_person.py::TestPerson::test_first_name[es-mx-Gender.MALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[en-gb-Gender.MALE]

test_person.py::TestPerson::test_first_name[en-gb-Gender.MALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_username[C-d]

test_person.py::TestPerson::test_username[C-d]
self = 
_person = 
mask = 'C-d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+-[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_university[kk]

test_person.py::TestPerson::test_university[kk]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       assert None in ['"Алатау" Қазақстан  университеті', '"Ақмешіт" гуманитарлы-техникалық институты', '"Болашақ" Университеті', '"Болашақ...ағанды университеті', '"Дүние" Ақтөбе университеті', '"Еуразия академиясы" біртұтас оқу-ғылыми-өндірістік кешені', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_gender[no]

test_person.py::TestPerson::test_gender[no]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvinne', 'Mann', 'Intetkjønn']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[kk-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[kk-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[cs]

test_person.py::TestPerson::test_profession[cs]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Account manager', 'Administrativní pracovník', 'Advokát', 'Advokátní a notářský koncipient', 'Agronom', 'Alergolog', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_name[pt-br-Gender.FEMALE]

test_person.py::TestPerson::test_name[pt-br-Gender.FEMALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[nl-Gender.MALE]

test_person.py::TestPerson::test_full_name[nl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[en-ca-None-None]

test_person.py::TestPerson::test_title[en-ca-None-None]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[sv]

test_person.py::TestPerson::test_language[sv]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Akan', 'Amhariska', 'Arabiska', 'Assamesiska', 'Azerbajdzjanska', 'Baluchi', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_gender[nl]

test_person.py::TestPerson::test_gender[nl]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Mannelijk', 'Vrouwelijk', 'Onzijdig']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[uk-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[uk-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[no-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[no-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[ru-Gender.MALE]

test_person.py::TestPerson::test_surname[ru-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абакумов', 'Абдуллаев', 'Абрамов', 'Абрикосов', 'Абросимов', 'Абузяров', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_name[de-at-Gender.FEMALE]

test_person.py::TestPerson::test_name[de-at-Gender.FEMALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[et-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[et-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[hr-None-None]

test_person.py::TestPerson::test_title[hr-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[ko]

test_person.py::TestPerson::test_sex[ko]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['남자', '여자', '기타']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_telephone[kk]

test_person.py::TestPerson::test_telephone[kk]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[tr-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[tr-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[uk-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[uk-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[ko-Gender.MALE]

test_person.py::TestPerson::test_first_name[ko-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['강훈', '건영', '건우', '건율', '건하', '건호', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_username[CC_d]

test_person.py::TestPerson::test_username[CC_d]
self = 
_person = 
mask = 'CC_d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_first_name[pt-br-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[pt-br-Gender.FEMALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[nl-Gender.MALE]

test_person.py::TestPerson::test_nationality[nl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_surname[da-Gender.FEMALE]

test_person.py::TestPerson::test_surname[da-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aaen', 'Aagaard', 'Aagesen', 'Aarup', 'Abdi', 'Abel', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[es-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[da-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[da-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[de]

test_person.py::TestPerson::test_language[de]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afrikaans', 'Albanisch', 'Amharisch', 'Arabisch', 'Armenisch', 'Assamesisch', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[de-ch-Gender.FEMALE-None]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[da-Gender.MALE]

test_person.py::TestPerson::test_name[da-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abiorn', 'Absalon', 'Absolon', 'Adolf', 'Adrian', 'Afkar', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_full_name[uk-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[uk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_worldview[ja]

test_person.py::TestPerson::test_worldview[ja]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['無神論', '不可知論', '自然神論', 'ユダヤ主義', '汎神論', '儒教', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[el-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[el-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[ko]

test_person.py::TestPerson::test_gender[ko]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['남자', '여자', '기타']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_full_name[hu-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[hu-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_views_on[it]

test_person.py::TestPerson::test_views_on[it]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negativo', 'Molto negativo', 'Positivo', 'Neutro']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_academic_degree[en-ca]

test_person.py::TestPerson::test_academic_degree[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[hr-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[hr-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[sv-Gender.MALE]

test_person.py::TestPerson::test_name[sv-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aabiörn', 'Aabiørn', 'Aabram', 'Aabyorn', 'Aabyrn', 'Aache', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_name[nl-Gender.MALE]

test_person.py::TestPerson::test_name[nl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaron', 'Abel', 'Abraham', 'Adam', 'Adriaan', 'Ahmed', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[hr-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[es-mx]

test_person.py::TestPerson::test_views_on[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[uk-Gender.MALE]

test_person.py::TestPerson::test_name[uk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Августин', 'Авксентій', 'Аврелій', 'Автоном', 'Адам', 'Адріян', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_political_views[ko]

test_person.py::TestPerson::test_political_views[ko]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['보수주의', '진보주의', '사회주의', '무정부주의', '극우', '극좌', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_worldview[es]

test_person.py::TestPerson::test_worldview[es]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Ateísmo', 'Agnosticismo', 'Deísmo', 'Judaísmo', 'Catolicismo', 'Panteísmo', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[es-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[es-mx]

test_person.py::TestPerson::test_telephone[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[hr-Gender.MALE]

test_person.py::TestPerson::test_first_name[hr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adrian', 'Albert', 'Aleks', 'Aleksandar', 'Alen', 'Alfred', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_nationality[pt-br-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[pt-br-Gender.FEMALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[fa]

test_person.py::TestPerson::test_academic_degree[fa]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['لیسانس', 'فوق لیسانس', 'دکتری']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_university[fi]

test_person.py::TestPerson::test_university[fi]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Helsingin yliopisto', 'Itä-Suomen yliopisto', 'Jyväskylän yliopisto', 'Lapin yliopisto', 'Lappeenrannan teknillinen yliopisto', 'Maanpuolustuskorkeakoulu', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_nationality[sv-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[sv-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_gender[cs]

test_person.py::TestPerson::test_gender[cs]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Feminine', 'Masculine', 'Neuter']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_first_name[zh-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[zh-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['朵雯', '雨杭', '贞荪', '瑾宛', '滢玉', '美穆', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_birthdate_with_invalid_params[1899-1950]

test_person.py::TestPerson::test_birthdate_with_invalid_params[1899-1950]
self = 
_person = 
min_year = 1899, max_year = 1950

    @pytest.mark.parametrize(
        "min_year, max_year",
        [
            (1899, 1950),
            (datetime.now().year + 1, datetime.now().year + 3),
        ],
    )
    def test_birthdate_with_invalid_params(self, _person, min_year, max_year):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:43: Failed

test_person.py::TestPerson::test_nationality[no-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[no-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_surname[en-ca-Gender.MALE]

test_person.py::TestPerson::test_surname[en-ca-Gender.MALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fr-None-None]

test_person.py::TestPerson::test_title[fr-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[ru]

test_person.py::TestPerson::test_sex[ru]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Жен.', 'Муж.']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_university[ru]

test_person.py::TestPerson::test_university[ru]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Государственная морская академия имени адмирала С.О. Макарова', 'Санкт-Петербургский государственный архитектурно-ст...хнический университет', 'Томский национальный исследовательский политех', 'МГУ им. Ломоносова', 'Бауманское МГТУ', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_birthdate[2001-2023]

test_person.py::TestPerson::test_birthdate[2001-2023]
self = 
_person = 
min_year = 2001, max_year = 2023

    @pytest.mark.parametrize(
        "min_year, max_year",
        [
            (1900, 1950),
            (1951, 2001),
            (2001, 2023),
        ],
    )
    def test_birthdate(self, _person, min_year, max_year):
        birthdate = _person.birthdate(min_year, max_year)
>       assert min_year <= birthdate.year <= max_year
E       AttributeError: 'NoneType' object has no attribute 'year'

tests/test_providers/test_person.py:32: AttributeError

test_person.py::TestPerson::test_first_name[el-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[el-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Άλκηστις', 'Άννα', 'Άντζελα', 'Άρτεμις', 'Έλενα', 'Έφη', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_surname[nl-be-Gender.MALE]

test_person.py::TestPerson::test_surname[nl-be-Gender.MALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[et]

test_person.py::TestPerson::test_profession[et]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Aamissepp', 'Aatomifüüsik', 'Abikokk', 'Abilinnapea', 'Abiõpetaja', 'Abivallavanem', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_telephone[de]

test_person.py::TestPerson::test_telephone[de]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_gender[it]

test_person.py::TestPerson::test_gender[it]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Maschio', 'Femmina', 'Neutro']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_worldview[fr]

test_person.py::TestPerson::test_worldview[fr]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Athéisme', 'Agnosticisme', 'Catholicisme', 'Déisme', 'Panthéisme', 'Confucianisme', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_university[fa]

test_person.py::TestPerson::test_university[fa]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['علوم تحقیقات و فناوری', 'بهداشت، درمان و آموزش پزشکی', 'دانشگاه فرهنگیان', 'تربیت معلم', 'وزارت آموزش و پرورش', 'دانشگاه جامع علمی کاربردی', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_surname[fi-Gender.FEMALE]

test_person.py::TestPerson::test_surname[fi-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aalto', 'Aaltonen', 'Aho', 'Ahola', 'Ahonen', 'Ahtisaari', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_profession[el]

test_person.py::TestPerson::test_profession[el]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Έμπορος', 'Αγγειοπλάστης', 'Αγοραστής διαφημιστικού χώρου', 'Αναισθησιολόγος', 'Αντιπρόσωπος γραφείου τουρισμού', 'Αξιωματικός', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_email[False]

test_person.py::TestPerson::test_email[False]
self = 
_person = 
unique = False
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f01e0f5cc40>

    @pytest.mark.parametrize(
        "unique",
        [
            False,
            True,
        ],
    )
    def test_email(self, _person, unique, monkeypatch):
        if unique:
            # We need to prepare the env to remove seeds:
            monkeypatch.setattr(random, "global_seed", None)

        result = _person.email()
>       assert re.match(patterns.EMAIL_REGEX, result)

tests/test_providers/test_person.py:117: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$)', string = None
flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_worldview[cs]

test_person.py::TestPerson::test_worldview[cs]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnosticismus', 'Ateismus', 'Islám', 'Judaismus', 'Křesťanství', 'Panteismus', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_academic_degree[uk]

test_person.py::TestPerson::test_academic_degree[uk]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Бакалавр', 'Доктор наук', 'Кандидат наук', 'Магістр', 'Спеціаліст']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_full_name[is-Gender.MALE]

test_person.py::TestPerson::test_full_name[is-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[fa-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[fa-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-gb-Gender.FEMALE-TitleType.TYPICAL]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[kk-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[kk-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[es-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[es-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ababa', 'Abigaíl', 'Adela', 'Adelaida', 'Adelia', 'Adelina', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_nationality[de-at-Gender.MALE]

test_person.py::TestPerson::test_nationality[de-at-Gender.MALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[is]

test_person.py::TestPerson::test_profession[is]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Forritari', 'Hönnuður', 'Arkitekt']

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[en-gb-None-None]

test_person.py::TestPerson::test_title[en-gb-None-None]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[en-au-Gender.FEMALE-None]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[nl-be-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[nl-be-Gender.FEMALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[en-gb-Gender.FEMALE]

test_person.py::TestPerson::test_name[en-gb-Gender.FEMALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[de]

test_person.py::TestPerson::test_political_views[de]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarchistisch', 'Kommunistisch', 'Konservativ', 'Liberal', 'Libertär', 'Linksliberal', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_title[nl-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[de-Gender.MALE-None]

test_person.py::TestPerson::test_title[de-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[fi]

test_person.py::TestPerson::test_language[fi]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afrikaans', 'Akan', 'Albania', 'Amhara', 'Arabia', 'Armenia', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_nationality[zh-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[zh-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[da-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[da-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[en-ca]

test_person.py::TestPerson::test_gender[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[kk]

test_person.py::TestPerson::test_views_on[kk]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Бейтарап', 'Жағымсыз', 'Оң', 'Шұғыл жағымсыз', 'Ымыралы']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_nationality[fr-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[fr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[ja-Gender.MALE-None]

test_person.py::TestPerson::test_title[ja-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[de-ch]

test_person.py::TestPerson::test_name_unexpected_gender[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[zh-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[zh-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[no-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[no-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[nl-be-Gender.FEMALE-None]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[pt-br]

test_person.py::TestPerson::test_telephone[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_username[CC-d]

test_person.py::TestPerson::test_username[CC-d]
self = 
_person = 
mask = 'CC-d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_full_name[en-gb-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[en-gb-Gender.FEMALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-TitleType.TYPICAL]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[de-at-Gender.MALE]

test_person.py::TestPerson::test_first_name[de-at-Gender.MALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[ru-Gender.MALE]

test_person.py::TestPerson::test_full_name[ru-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[no-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[no-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-gb-Gender.MALE-TitleType.ACADEMIC]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[fi-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[fi-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aada', 'Aallotar', 'Aamu', 'Aava', 'Aija', 'Aila', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name[pl-Gender.FEMALE]

test_person.py::TestPerson::test_name[pl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ada', 'Adela', 'Adelajda', 'Adelina', 'Adria', 'Adrianna', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ko-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[fa-Gender.MALE]

test_person.py::TestPerson::test_first_name[fa-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['آبتین', 'آتش', 'آترین', 'آتورپات', 'آذرخش', 'آذرمه', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_nationality[es-mx-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[es-mx-Gender.FEMALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[ko-Gender.FEMALE]

test_person.py::TestPerson::test_name[ko-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['가영', '가현', '경미', '경숙', '경은', '경희', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fi-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[el]

test_person.py::TestPerson::test_language[el]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Αγγλικά', 'Αλβανικά', 'Αραβικά', 'Αρμένικα', 'Βουλγάρικα', 'Γαλλικά', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_str[pt-br]

test_person.py::TestPerson::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[uk]

test_person.py::TestPerson::test_views_on[uk]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Компромісне', 'Негативне', 'Нейтральне', 'Позитивне', 'Різко негативне']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_nationality[en-gb-Gender.MALE]

test_person.py::TestPerson::test_nationality[en-gb-Gender.MALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_str[es-mx]

test_person.py::TestPerson::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[sk-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[sk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adela', 'Adriána', 'Agnesa', 'Agáta', 'Albína', 'Alena', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_nationality[pl-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[pl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Polka', 'Afganka', 'Albanka', 'Algierka', 'Amerykanka', 'Angielka', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_telephone[es]

test_person.py::TestPerson::test_telephone[es]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[fr]

test_person.py::TestPerson::test_name_unexpected_gender[fr]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_language[es-mx]

test_person.py::TestPerson::test_language[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[es-mx-Gender.MALE]

test_person.py::TestPerson::test_nationality[es-mx-Gender.MALE]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[fi]

test_person.py::TestPerson::test_sex[fi]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Nainen', 'Mies', 'Muut']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_surname[pt-br-Gender.FEMALE]

test_person.py::TestPerson::test_surname[pt-br-Gender.FEMALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[is-Gender.FEMALE]

test_person.py::TestPerson::test_name[is-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aagot', 'Abela', 'Abigael', 'Ada', 'Adda', 'Addú', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_academic_degree[da]

test_person.py::TestPerson::test_academic_degree[da]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Cand.oecon.', 'Cand.polit.', 'Cand.psychol.', 'Cand.scient.', 'Cand.scient.pol.', 'Cand.med.', ...]

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[pt-None-None]

test_person.py::TestPerson::test_title[pt-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-None]

test_person.py::TestPerson::test_title[es-mx-Gender.MALE-None]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[it]

test_person.py::TestPerson::test_political_views[it]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarchico', 'Comunista', 'Socialista', 'Moderato', 'Liberale', 'Conservatore', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_identifier

test_person.py::TestPerson::test_identifier
self = 
_person = 

    def test_identifier(self, _person):
        result = _person.identifier()
        mask = "##-##/##"
>       assert len(mask) == len(result)
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_person.py:159: TypeError

test_person.py::TestPerson::test_academic_degree[et]

test_person.py::TestPerson::test_academic_degree[et]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bakalaureusekraad', 'Magistrikraad', 'Doktorikraad']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[nl-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[es-Gender.MALE]

test_person.py::TestPerson::test_name[es-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aarón', 'Adrián', 'Agapetus', 'Agustín', 'Aimon', 'Alan', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_views_on[sk]

test_person.py::TestPerson::test_views_on[sk]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['negatívny', 'neutrálny', 'pozitívny']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-None]

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-None]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[en-ca]

test_person.py::TestPerson::test_views_on[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_sex[de-at]

test_person.py::TestPerson::test_sex[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[is-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[is-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_nationality[hr-Gender.MALE]

test_person.py::TestPerson::test_nationality[hr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_nationality[fa-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[fa-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[de-at-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-at-None-TitleType.TYPICAL]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[et]

test_person.py::TestPerson::test_political_views[et]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarhism\u200e', 'Antikommunism\u200e', 'Ekstremism\u200e', 'Fašism\u200e', 'Feminism\u200e', 'Kommunism\u200e', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_political_views[nl]

test_person.py::TestPerson::test_political_views[nl]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Communistisch', 'Conservatief', 'Gematigd', 'Liberaal', 'Liberaal', 'Onverschillig', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_first_name[hr-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[hr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Adela', 'Adriana', 'Aida', 'Aldijana', 'Alenka', 'Aleta', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_views_on[pt]

test_person.py::TestPerson::test_views_on[pt]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negativa', 'Muito Negativa', 'Positiva', 'Neutra', 'Conciliável']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_worldview[fa]

test_person.py::TestPerson::test_worldview[fa]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['کفر', 'لاادری گری', 'خداپرستی', 'یهودیت', 'کاتولیک', 'همه خدایی', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_sex[hr]

test_person.py::TestPerson::test_sex[hr]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Muški', 'Ženski']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[it]

test_person.py::TestPerson::test_name_unexpected_gender[it]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_university[ja]

test_person.py::TestPerson::test_university[ja]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['愛国学園大学', '愛知大学', '愛知医科大学', '愛知学院大学', '愛知学泉大学', '愛知教育大学', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_worldview[is]

test_person.py::TestPerson::test_worldview[is]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Trúleysi', 'Algyðistrú', 'Guðleysi', 'Kristni', 'Gyðingdómur', 'Frumgyðistrú']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_sex[es-mx]

test_person.py::TestPerson::test_sex[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[de-at-Gender.FEMALE-None]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[de-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[de-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Afghanin', 'Albanerin', 'Amerikanerin', 'Armenierin', 'Aserbaidschanin', 'Ägypterin', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_title[uk-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[uk-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-be-None-None]

test_person.py::TestPerson::test_title[nl-be-None-None]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[nl-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[nl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaliyah', 'Aaltje', 'Abby', 'Abigail', 'Adriana', 'Aimée', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_views_on[en-au]

test_person.py::TestPerson::test_views_on[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[fa-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[fa-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_blood_type

test_person.py::TestPerson::test_blood_type
self = 
_person = 

    def test_blood_type(self, _person):
        result = _person.blood_type()
>       assert result in BLOOD_GROUPS
E       AssertionError: assert None in ('O+', 'A+', 'B+', 'AB+', 'O−', 'A−', ...)

tests/test_providers/test_person.py:154: AssertionError

test_person.py::TestPerson::test_title[pl-Gender.MALE-None]

test_person.py::TestPerson::test_title[pl-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-None]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[nl-be]

test_person.py::TestPerson::test_profession[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[es]

test_person.py::TestPerson::test_gender[es]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculino', 'Femenino', 'Neutro']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[sk-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[sk-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[de]

test_person.py::TestPerson::test_gender[de]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Andere', 'Männlich', 'Weiblich']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_sex[cs]

test_person.py::TestPerson::test_sex[cs]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Feminine', 'Masculine', 'Neuter']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_political_views[hu]

test_person.py::TestPerson::test_political_views[hu]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Anarchista', 'Kommunista', 'Konzervatív', 'Liberális', 'Libertariánus', 'Mérsékelt', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_name[sv-Gender.FEMALE]

test_person.py::TestPerson::test_name[sv-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abbelle', 'Abbleka', 'Abela', 'Abele', 'Abeleke', 'Abelke', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_sex[nl]

test_person.py::TestPerson::test_sex[nl]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Mannelijk', 'Vrouwelijk', 'Onzijdig']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_university[el]

test_person.py::TestPerson::test_university[el]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Αλεξάνδρειο Τεχνολογικό Εκπαιδευτικό Ίδρυμα Θεσσαλονίκης', 'Ανωτάτη Σχολή Καλών Τεχνών', 'Ανώτατη Σχολή Παιδαγωγικής...ης', 'Αριστοτέλειο Πανεπιστήμιο Θεσσαλονίκης', 'Γεωπονικό Πανεπιστήμιο Αθηνών', 'Δημοκρίτειο Πανεπιστήμιο Θράκης', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_gender[sk]

test_person.py::TestPerson::test_gender[sk]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['muž', 'žena']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_first_name[de-at-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[de-at-Gender.FEMALE]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_academic_degree[ru]

test_person.py::TestPerson::test_academic_degree[ru]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Бакалавр', 'Доктор наук', 'Кандидат наук', 'Магистр', 'Специалист']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_full_name[en-ca-Gender.MALE]

test_person.py::TestPerson::test_full_name[en-ca-Gender.MALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[nl-be]

test_person.py::TestPerson::test_language[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[pl-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pl-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[fa-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[fa-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_political_views[sk]

test_person.py::TestPerson::test_political_views[sk]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['bez názoru']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_profession[it]

test_person.py::TestPerson::test_profession[it]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Accalappiacani', 'Acquaiolo', 'Acrobata', 'Addestratore di cani', 'Accompagnatore turistico', 'Addetto di scalo', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_first_name[nl-be-Gender.MALE]

test_person.py::TestPerson::test_first_name[nl-be-Gender.MALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-br-Gender.FEMALE-TitleType.TYPICAL]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[en-au-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[en-au-Gender.FEMALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[kk-Gender.FEMALE]

test_person.py::TestPerson::test_name[kk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Абира', 'Адлия', 'Ажар', 'Ажаргүл', 'Ажархан', 'Аза', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-TitleType.TYPICAL]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[pt-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[de-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[de-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ada', 'Adalgisa', 'Adalia', 'Adela', 'Adele', 'Adelgunde', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_surname[el-Gender.FEMALE]

test_person.py::TestPerson::test_surname[el-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Αβραμίδη', 'Αγγελίδη', 'Αθανασίου', 'Αθανασιάδη', 'Αλαβάνου', 'Αλεξάκη', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_first_name[fr-Gender.MALE]

test_person.py::TestPerson::test_first_name[fr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaron', 'Abdallah', 'Abdoulaye', 'Abel', 'Achille', 'Adam', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[el]

test_person.py::TestPerson::test_name_unexpected_gender[el]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_telephone[ru]

test_person.py::TestPerson::test_telephone[ru]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[pt-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[pt-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[en-ca]

test_person.py::TestPerson::test_political_views[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_full_name[fa-Gender.MALE]

test_person.py::TestPerson::test_full_name[fa-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_university[ko]

test_person.py::TestPerson::test_university[ko]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['가야대학교', '가천대학교', '가톨릭대학교', '감리교신학대학교', '강남대학교', '강릉원주대학교', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_first_name[pt-Gender.MALE]

test_person.py::TestPerson::test_first_name[pt-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aarão', 'Abdias', 'Abdul', 'Abdénago', 'Abel', 'Abelardo', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[ru-None-None]

test_person.py::TestPerson::test_title[ru-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_gender[fa]

test_person.py::TestPerson::test_gender[fa]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['مذکر', 'مؤنث', 'دیگر']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_title[en-au-None-None]

test_person.py::TestPerson::test_title[en-au-None-None]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[pt]

test_person.py::TestPerson::test_worldview[pt]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnóstico', 'Ateu', 'Budista', 'Candomblé', 'Católico', 'Confucionista', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_political_views[pl]

test_person.py::TestPerson::test_political_views[pl]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Komunistyczne', 'Konserwatywne', 'Liberalne', 'Libertariańskie', 'Neutralne', 'Socjalistyczne', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_nationality[en-ca-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[en-ca-Gender.FEMALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_nationality[tr-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[tr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_university[cs]

test_person.py::TestPerson::test_university[cs]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Akademie múzických umění v Praze', 'Akademie výtvarných umění v Praze', 'Janáčkova akademie múzických umění v Brně', 'Jihočeská univerzita v Českých Budějovicích', 'Masarykova univerzita', 'Mendelova univerzita v Brně', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_language[hu]

test_person.py::TestPerson::test_language[hu]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Afrikaans', 'Ajmara', 'Albán', 'Amhara', 'Angol', 'Arab', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[kk]

test_person.py::TestPerson::test_profession[kk]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[ru-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ru-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[el-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[el-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_nationality[uk-Gender.MALE]

test_person.py::TestPerson::test_nationality[uk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Росіянин', 'Білорус', 'Француз', 'Єврей', 'Німець', 'Англієць', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_title[es-mx-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[es-mx-None-TitleType.ACADEMIC]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[sv]

test_person.py::TestPerson::test_political_views[sv]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Apatisk', 'Kommunist', 'Socialist', 'Centerpartist', 'Liberal', 'Konservativ', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_political_views[ru]

test_person.py::TestPerson::test_political_views[ru]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Анархистские', 'Индифферентные', 'Коммунистические', 'Консервативные', 'Либеральные', 'Либертарианские', ...]

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_full_name[zh-Gender.MALE]

test_person.py::TestPerson::test_full_name[zh-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[it-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[it-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[fa-Gender.MALE]

test_person.py::TestPerson::test_surname[fa-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['آدینه', 'آریان\u200cپور', 'آژند', 'آشتیانی', 'آشنا', 'آشوری', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_str[de-ch]

test_person.py::TestPerson::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[pt-br-Gender.MALE]

test_person.py::TestPerson::test_first_name[pt-br-Gender.MALE]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_username[l_d]

test_person.py::TestPerson::test_username[l_d]
self = 
_person = 
mask = 'l_d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[a-z]+_[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_surname[ja-Gender.MALE]

test_person.py::TestPerson::test_surname[ja-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['会', '阿井', '逢坂', '相川', '愛甲', '相沢', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_telephone[no]

test_person.py::TestPerson::test_telephone[no]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_gender[et]

test_person.py::TestPerson::test_gender[et]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Mees', 'Naine']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_gender[pt]

test_person.py::TestPerson::test_gender[pt]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Masculino', 'Feminino', 'Transgênero', 'Outro']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_nationality[hu-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[hu-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[kk-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[kk-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[es-mx]

test_person.py::TestPerson::test_name_unexpected_gender[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[cs-Gender.FEMALE]

test_person.py::TestPerson::test_name[cs-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aba', 'Abigail', 'Ada', 'Adalberta', 'Adelaida', 'Adina', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_university[nl-be]

test_person.py::TestPerson::test_university[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-at-None-None]

test_person.py::TestPerson::test_title[de-at-None-None]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[fi-Gender.MALE]

test_person.py::TestPerson::test_name[fi-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadolf', 'Aake', 'Aapeli', 'Aapo', 'Aappo', 'Aarne', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_weight

test_person.py::TestPerson::test_weight
self = 
_person = 

    def test_weight(self, _person):
        result = _person.weight(minimum=40, maximum=60)
>       assert 40 <= result <= 60
E       TypeError: '<=' not supported between instances of 'int' and 'NoneType'

tests/test_providers/test_person.py:150: TypeError

test_person.py::TestPerson::test_full_name[de-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[de-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_name[en-au-Gender.FEMALE]

test_person.py::TestPerson::test_name[en-au-Gender.FEMALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_username[ld]

test_person.py::TestPerson::test_username[ld]
self = 
_person = 
mask = 'ld'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[a-z]+[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_language[no]

test_person.py::TestPerson::test_language[no]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Arabisk', 'Awadhi', 'Bengali', 'Bihari', 'Burmesisk', 'Engelsk', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_title[es-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[es-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_telephone[sv]

test_person.py::TestPerson::test_telephone[sv]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_str[nl-be]

test_person.py::TestPerson::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[et]

test_person.py::TestPerson::test_worldview[et]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Determinism', 'Dialeteism', 'Liberalism', 'Materialism', 'Oportunism', 'Polüteism']

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_title[hr-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[hr-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[es-Gender.FEMALE]

test_person.py::TestPerson::test_surname[es-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aguilar', 'Alonso', 'Alvarez', 'Andres', 'Arias', 'Blanco', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_language[kk]

test_person.py::TestPerson::test_language[kk]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_gender[uk]

test_person.py::TestPerson::test_gender[uk]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Жін.', 'Чол.']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_surname[no-Gender.FEMALE]

test_person.py::TestPerson::test_surname[no-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aabel', 'Aaker', 'Aakre', 'Aalefjær', 'Aall', 'Aamland', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_surname[zh-Gender.FEMALE]

test_person.py::TestPerson::test_surname[zh-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['赵', '钱', '孙', '李', '周', '吴', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ko-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[de-Gender.FEMALE]

test_person.py::TestPerson::test_surname[de-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abeln', 'Abraham', 'Abt', 'Achilles', 'Achterberg', 'Acker', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_surname[en-ca-Gender.FEMALE]

test_person.py::TestPerson::test_surname[en-ca-Gender.FEMALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[fa-Gender.FEMALE]

test_person.py::TestPerson::test_surname[fa-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['آدینه', 'آریان\u200cپور', 'آژند', 'آشتیانی', 'آشنا', 'آشوری', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[fa-Gender.MALE-None]

test_person.py::TestPerson::test_title[fa-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[cs]

test_person.py::TestPerson::test_language[cs]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Aghem', 'Akoose', 'Angika', 'Asu', 'Atsam', 'Bafia', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_name[fr-Gender.FEMALE]

test_person.py::TestPerson::test_name[fr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aaliyah', 'Abigael', 'Adriana', 'Adèle', 'Agathe', 'Aicha', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_surname[pl-Gender.MALE]

test_person.py::TestPerson::test_surname[pl-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Abakanowicz', 'Abramczyk', 'Adamiec', 'Adamiuk', 'Ambroziak', 'Andrzejak', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_title[en-au-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-au-None-TitleType.TYPICAL]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name_unexpected_gender[en-au]

test_person.py::TestPerson::test_name_unexpected_gender[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[it-Gender.FEMALE]

test_person.py::TestPerson::test_surname[it-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abate', 'Abato', 'Abbruzzese', 'Abela', 'Abella', 'Abramo', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_views_on[pt-br]

test_person.py::TestPerson::test_views_on[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-at-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-at-Gender.MALE-TitleType.TYPICAL]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_political_views[el]

test_person.py::TestPerson::test_political_views[el]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Αναρχισμός', 'Κομμουνισμός', 'Σοσιαλισμός', 'Συντηρητικός', 'Φιλελεύθερος']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_academic_degree[pt-br]

test_person.py::TestPerson::test_academic_degree[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_university[pt-br]

test_person.py::TestPerson::test_university[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[fi-Gender.FEMALE]

test_person.py::TestPerson::test_name[fi-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aada', 'Aallotar', 'Aamu', 'Aava', 'Aija', 'Aila', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_academic_degree[ja]

test_person.py::TestPerson::test_academic_degree[ja]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['学士', '修士', '博士']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[zh-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[zh-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[is-Gender.MALE]

test_person.py::TestPerson::test_surname[is-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Addason', 'Agnarsson', 'Agnason', 'Alason', 'Albertsson', 'Allason', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_political_views[nl-be]

test_person.py::TestPerson::test_political_views[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_surname[hu-Gender.MALE]

test_person.py::TestPerson::test_surname[hu-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Ady', 'András', 'Andrássy', 'Asztalos', 'Babits', 'Babos', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_political_views[da]

test_person.py::TestPerson::test_political_views[da]
self = 
person = 

    def test_political_views(self, person):
        result = person.political_views()
>       assert result in person._dataset["political_views"]
E       AssertionError: assert None in ['Apartisk', 'Centrist', 'Frihedsforkæmper', 'Kommunist', 'Konservativ']

tests/test_providers/test_person.py:291: AssertionError

test_person.py::TestPerson::test_university[pl]

test_person.py::TestPerson::test_university[pl]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['Akademia Górniczo-Hutnicza w Krakowie', 'Akademia Techniczno-Humanistyczna w Bielsku-Białej', 'Politechnika Białostocka', 'Politechnika Częstochowska', 'Politechnika Gdańska', 'Politechnika Koszalińska', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_profession[nl]

test_person.py::TestPerson::test_profession[nl]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Afdelingshoofd', 'Arbeidsbemiddelaar', 'Automonteur', 'Beveiliger', 'Boekhouder', 'Boekhoudkundig medewerker', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-None]

test_person.py::TestPerson::test_title[pt-Gender.FEMALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[da-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[da-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[it-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[it-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[es-mx-None-None]

test_person.py::TestPerson::test_title[es-mx-None-None]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[de-at]

test_person.py::TestPerson::test_worldview[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_telephone[fa]

test_person.py::TestPerson::test_telephone[fa]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_nationality[fr-Gender.MALE]

test_person.py::TestPerson::test_nationality[fr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_academic_degree[no]

test_person.py::TestPerson::test_academic_degree[no]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bachelor', 'Doktorgrad']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_nationality[ru-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[ru-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
>           assert result in person._dataset["nationality"][gender.value]
E           AssertionError: assert None in ['Русская', 'Белоруска', 'Француженка', 'Еврейка', 'Немка', 'Англичанка', ...]

tests/test_providers/test_person.py:328: AssertionError

test_person.py::TestPerson::test_surname[es-Gender.MALE]

test_person.py::TestPerson::test_surname[es-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aguilar', 'Alonso', 'Alvarez', 'Andres', 'Arias', 'Blanco', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_title[el-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[el-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[en-gb-Gender.MALE]

test_person.py::TestPerson::test_full_name[en-gb-Gender.MALE]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[en-au-Gender.MALE]

test_person.py::TestPerson::test_first_name[en-au-Gender.MALE]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[fa-Gender.FEMALE]

test_person.py::TestPerson::test_name[fa-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['آبگینه', 'آبنوس', 'آتنا', 'آتوسا', 'اختر', 'آذر', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[ko-Gender.MALE-None]

test_person.py::TestPerson::test_title[ko-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_nationality[nl-be-Gender.MALE]

test_person.py::TestPerson::test_nationality[nl-be-Gender.MALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[tr-Gender.FEMALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[nl-Gender.MALE-None]

test_person.py::TestPerson::test_title[nl-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_surname[pt-Gender.MALE]

test_person.py::TestPerson::test_surname[pt-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Abreu', 'Afonso', 'Almeida', 'Alves', 'Amaral', 'Amorim', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_name[ru-Gender.MALE]

test_person.py::TestPerson::test_name[ru-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Авдей', 'Авксентий', 'Агафон', 'Акакий', 'Александр', 'Алексей', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[et-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[et-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name[ja-Gender.MALE]

test_person.py::TestPerson::test_name[ja-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['葵', 'アキラ', '悪太郎', '石松', '一太郎', '一輝', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_academic_degree[de-ch]

test_person.py::TestPerson::test_academic_degree[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[de-ch-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[de-ch-Gender.FEMALE]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[de-ch-Gender.MALE-TitleType.TYPICAL]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_gender[kk]

test_person.py::TestPerson::test_gender[kk]
self = 
person = 

    def test_gender(self, person):
        result = person.gender()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Ер', 'Әйел']

tests/test_providers/test_person.py:259: AssertionError

test_person.py::TestPerson::test_telephone[ja]

test_person.py::TestPerson::test_telephone[ja]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_nationality[en-ca-Gender.MALE]

test_person.py::TestPerson::test_nationality[en-ca-Gender.MALE]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_first_name[kk-Gender.MALE]

test_person.py::TestPerson::test_first_name[kk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Абай', 'Аббас', 'Абзал', 'Абыз', 'Абызбай', 'Абылай', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[cs-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[cs-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_profession[en-au]

test_person.py::TestPerson::test_profession[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[el-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[el-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[ru-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ru-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[ru-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[ru-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_sex[da]

test_person.py::TestPerson::test_sex[da]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['Kvinde', 'Han', 'Neutral']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_full_name[et-Gender.FEMALE]

test_person.py::TestPerson::test_full_name[et-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_views_on[el]

test_person.py::TestPerson::test_views_on[el]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Αρνητική', 'Θετική', 'Ουδέτερη', 'Συμβιβάσιμος']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_name[nl-be-Gender.FEMALE]

test_person.py::TestPerson::test_name[nl-be-Gender.FEMALE]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_name[hu-Gender.MALE]

test_person.py::TestPerson::test_name[hu-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aba', 'Adorján', 'Aladár', 'Albert', 'Alex', 'Alexander', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_telephone[it]

test_person.py::TestPerson::test_telephone[it]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_name[el-Gender.MALE]

test_person.py::TestPerson::test_name[el-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Άγγελος', 'Άδωνις', 'Έκτορας', 'Αγάπιος', 'Αγαθόνικος', 'Αγαμέμνων', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sk-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[de-ch-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[de-ch-None-TitleType.ACADEMIC]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[es]

test_person.py::TestPerson::test_language[es]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['Abjasio', 'Acadio', 'Acoli', 'Adigeo', 'Afar', 'Aghem', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_nationality[es-Gender.FEMALE]

test_person.py::TestPerson::test_nationality[es-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_nationality(self, person, gender):
        nationality = person._dataset["nationality"]
        if isinstance(nationality, dict):
            result = person.nationality(gender=gender)
            assert result in person._dataset["nationality"][gender.value]

        result = person.nationality()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:331: AssertionError

test_person.py::TestPerson::test_title[hr-Gender.MALE-None]

test_person.py::TestPerson::test_title[hr-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_language[ja]

test_person.py::TestPerson::test_language[ja]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['アイスランド語', 'アイヌ語', 'アイマク語', 'アイマラ語', 'アイルランド語', 'アカワイ語', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_telephone[et]

test_person.py::TestPerson::test_telephone[et]
self = 
person = 

    def test_telephone(self, person):
        result = person.telephone()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:202: AssertionError

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[cs-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[da-Gender.MALE-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[da-Gender.MALE-TitleType.TYPICAL]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[fr-Gender.MALE]

test_person.py::TestPerson::test_full_name[fr-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_full_name[kk-Gender.MALE]

test_person.py::TestPerson::test_full_name[kk-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_title[cs-Gender.MALE-None]

test_person.py::TestPerson::test_title[cs-Gender.MALE-None]
self = 
person = 
gender = , title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_university[uk]

test_person.py::TestPerson::test_university[uk]
self = 
person = 

    def test_university(self, person):
        result = person.university()
>       assert result in person._dataset["university"]
E       AssertionError: assert None in ['MBA від Міжгалузевого інституту підвищення кваліфікації та перепідготовки спеціалістів споживчої кооперації', 'Європ...ситет нафти і газу', 'Інститут муніципального менеджменту', 'Інститут підприємництва та перспективних технологій', ...]

tests/test_providers/test_person.py:271: AssertionError

test_person.py::TestPerson::test_title[kk-None-None]

test_person.py::TestPerson::test_title[kk-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[tr]

test_person.py::TestPerson::test_views_on[tr]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negatif', 'Çok Negatif', 'Pozitif', 'Normal', 'Dayanabilir']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_username[C.d]

test_person.py::TestPerson::test_username[C.d]
self = 
_person = 
mask = 'C.d'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+\\.[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_username[Cd]

test_person.py::TestPerson::test_username[Cd]
self = 
_person = 
mask = 'Cd'

    @pytest.mark.parametrize(
        "mask",
        [
            "C-d",
            "C.d",
            "C_d",
            "CC-d",
            "CC.d",
            "CC_d",
            "Cd",
            "l-d",
            "l.d",
            "l_d",
            "ld",
            None,
        ],
    )
    def test_username(self, _person, mask):
        template_patterns = {
            "C-d": r"^[A-Z][a-z]+-[0-9]+$",
            "C.d": r"^[A-Z][a-z]+\.[0-9]+$",
            "C_d": r"^[A-Z][a-z]+_[0-9]+$",
            "CC-d": r"^[A-Z][a-z]+[A-Z][a-z]+-[0-9]+$",
            "CC.d": r"^[A-Z][a-z]+[A-Z][a-z]+\.[0-9]+$",
            "CC_d": r"^[A-Z][a-z]+[A-Z][a-z]+_[0-9]+$",
            "Cd": r"^[A-Z][a-z]+[0-9]+$",
            "l-d": r"^[a-z]+-[0-9]+$",
            "l.d": r"^[a-z]+\.[0-9]+$",
            "l_d": r"^[a-z]+_[0-9]+$",
            "ld": r"^[a-z]+[0-9]+$",
            None: r"^[A-Za-z]{2,}[\.\-\_]?[0-9]+$",
        }

        result = _person.username(mask=mask)
>       assert re.match(template_patterns[mask], result)

tests/test_providers/test_person.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z][a-z]+[0-9]+$', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_person.py::TestPerson::test_surname[et-Gender.MALE]

test_person.py::TestPerson::test_surname[et-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
            assert result in surnames[gender.value]
        else:
            result = person.surname()
>           assert result in surnames
E           AssertionError: assert None in ['Aakre', 'Aarne', 'Aasmäe', 'Aav', 'Aavik', 'Abbt', ...]

tests/test_providers/test_person.py:225: AssertionError

test_person.py::TestPerson::test_surname[pl-Gender.FEMALE]

test_person.py::TestPerson::test_surname[pl-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Abakanowicz', 'Abramczyk', 'Adamiec', 'Adamiuk', 'Ambroziak', 'Andrzejak', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_name[it-Gender.MALE]

test_person.py::TestPerson::test_name[it-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aberto', 'Abramo', 'Achile', 'Adalberto', 'Adalgiso', 'Adamo', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[uk-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[ko]

test_person.py::TestPerson::test_views_on[ko]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['매우 부정적', '부정적', '타협적', '중립적', '긍정적', '매우 긍정적']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_views_on[et]

test_person.py::TestPerson::test_views_on[et]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Negatiivne', 'Väga negatiivne', 'Positiivne', 'Neutraalne', 'Kompromiss']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-None]

test_person.py::TestPerson::test_title[pt-br-Gender.MALE-None]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_views_on[de-ch]

test_person.py::TestPerson::test_views_on[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_language[fa]

test_person.py::TestPerson::test_language[fa]
self = 
person = 

    def test_language(self, person):
        result = person.language()
>       assert result in person._dataset["language"]
E       AssertionError: assert None in ['آدیغه', 'آستوری', 'آسی', 'آفریکانس', 'آلبانیایی', 'آلمانی', ...]

tests/test_providers/test_person.py:279: AssertionError

test_person.py::TestPerson::test_profession[zh]

test_person.py::TestPerson::test_profession[zh]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['民意代表', '行政主管', '企业主管', '经理人', '土木营造监工', '天文学家', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_surname[kk-Gender.FEMALE]

test_person.py::TestPerson::test_surname[kk-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_surname(self, person, gender):
        surnames = person._dataset["surnames"]

        # Surnames separated by gender.
        if isinstance(surnames, dict):
            result = person.surname(gender=gender)
>           assert result in surnames[gender.value]
E           AssertionError: assert None in ['Абдильдина', 'Абдирова', 'Абдрахманова', 'Абдрашева', 'Абдулина', 'Абилева', ...]

tests/test_providers/test_person.py:222: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-ca-Gender.MALE-TitleType.ACADEMIC]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_str[en-gb]

test_person.py::TestPerson::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[sv-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_views_on[nl]

test_person.py::TestPerson::test_views_on[nl]
self = 
person = 

    def test_views_on(self, person):
        result = person.views_on()
>       assert result in person._dataset["views_on"]
E       AssertionError: assert None in ['Heel erg negatief', 'In overleg', 'Negatief', 'Neutraal', 'Positief']

tests/test_providers/test_person.py:287: AssertionError

test_person.py::TestPerson::test_sex[zh]

test_person.py::TestPerson::test_sex[zh]
self = 
person = 

    def test_sex(self, person):
        result = person.sex()
>       assert result in person._dataset["gender"]
E       AssertionError: assert None in ['男性', '女性']

tests/test_providers/test_person.py:263: AssertionError

test_person.py::TestPerson::test_academic_degree[pt]

test_person.py::TestPerson::test_academic_degree[pt]
self = 
person = 

    def test_academic_degree(self, person):
        result = person.academic_degree()
>       assert result in person._dataset["academic_degree"]
E       AssertionError: assert None in ['Bacharel', 'Licenciado', 'Mestre', 'Doutor']

tests/test_providers/test_person.py:275: AssertionError

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[nl-be-Gender.MALE-TitleType.ACADEMIC]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[pl-Gender.MALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pl-Gender.MALE-TitleType.ACADEMIC]
self = 
person = 
gender = , title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[it-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[it-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Abelie', 'Abra', 'Abree', 'Abri', 'Abriana', 'Abrianna', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[en-ca-Gender.FEMALE-TitleType.ACADEMIC]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_worldview[sv]

test_person.py::TestPerson::test_worldview[sv]
self = 
person = 

    def test_worldview(self, person):
        result = person.worldview()
>       assert result in person._dataset["worldview"]
E       AssertionError: assert None in ['Agnosticism', 'Ateism', 'Buddhist', 'Katolik', 'Panteism', 'Protestant', ...]

tests/test_providers/test_person.py:283: AssertionError

test_person.py::TestPerson::test_name[no-Gender.MALE]

test_person.py::TestPerson::test_name[no-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_name(self, person, gender):
        result = person.name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Aadne', 'Aage', 'Aake', 'Aamund', 'Aane', 'Aanen', ...]

tests/test_providers/test_person.py:174: AssertionError

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[pl-Gender.FEMALE-TitleType.ACADEMIC]
self = 
person = 
gender = 
title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[de-None-None]

test_person.py::TestPerson::test_title[de-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_full_name[no-Gender.MALE]

test_person.py::TestPerson::test_full_name[no-Gender.MALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_full_name(self, person, gender):
        result = person.full_name(gender=gender)

>       result = result.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_person.py:239: AttributeError

test_person.py::TestPerson::test_political_views[en-au]

test_person.py::TestPerson::test_political_views[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_title[ja-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[ja-None-TitleType.TYPICAL]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_title[en-ca-None-TitleType.TYPICAL]

test_person.py::TestPerson::test_title[en-ca-None-TitleType.TYPICAL]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def person(request):
>       return mimesis.Person(request.param)

tests/conftest.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/person.py:23: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_person.py::TestPerson::test_profession[hr]

test_person.py::TestPerson::test_profession[hr]
self = 
person = 

    def test_profession(self, person):
        result = person.occupation()
>       assert result in person._dataset["occupation"]
E       AssertionError: assert None in ['Administrator', 'Agent', 'Agronom', 'Animator', 'Anketar', 'Arhitekt', ...]

tests/test_providers/test_person.py:267: AssertionError

test_person.py::TestPerson::test_title[no-None-TitleType.ACADEMIC]

test_person.py::TestPerson::test_title[no-None-TitleType.ACADEMIC]
self = 
person = 
gender = None, title_type = 

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_name_unexpected_gender[hr]

test_person.py::TestPerson::test_name_unexpected_gender[hr]
self = 
person = 

    def test_name_unexpected_gender(self, person):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:197: Failed

test_person.py::TestPerson::test_title[pl-None-None]

test_person.py::TestPerson::test_title[pl-None-None]
self = 
person = 
gender = None, title_type = None

    @pytest.mark.parametrize(
        "title_type",
        [
            TitleType.ACADEMIC,
            TitleType.TYPICAL,
            None,
        ],
    )
    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
            None,
        ],
    )
    def test_title(self, person, gender, title_type):
        result = person.title(gender=gender, title_type=title_type)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_person.py:311: AssertionError

test_person.py::TestPerson::test_first_name[tr-Gender.FEMALE]

test_person.py::TestPerson::test_first_name[tr-Gender.FEMALE]
self = 
person = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_first_name(self, person, gender):
        result = person.first_name(gender=gender)
>       assert result in person._dataset["names"][gender.value]
E       AssertionError: assert None in ['Ahunaz', 'Ahunisa', 'Ahunur', 'Ahuse', 'Ahuşen', 'Ajda', ...]

tests/test_providers/test_person.py:185: AssertionError

test_person.py::TestSeededPerson::test_email

test_person.py::TestSeededPerson::test_email
self = 
p1 = 
p2 = 

    def test_email(self, p1, p2):
        assert p1.email() == p2.email()
        assert p1.email(domains=["@mimesis.io"]) == p2.email(domains=["@mimesis.io"])

>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_person.py:357: Failed

test_raw_factories.py::test_direct_factory

test_raw_factories.py::test_direct_factory
def test_direct_factory():
        users = UserFactory.create_batch(10)

        uids = {user.uid for user in users}
        emails = {user.email for user in users}

>       assert len(users) == len(emails)
E       assert 10 == 1
E        +  where 10 = len([, , , ...])
E        +  and   1 = len({None})

tests/test_plugins/test_factory/test_raw_factories.py:26: AssertionError

test_denmark_spec.py::test_calculate_checksum[171208281-6]

test_denmark_spec.py::test_calculate_checksum[171208281-6]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1888-expected_values4]

test_denmark_spec.py::test_calculate_century_selector[1888-expected_values4]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[2222-ValueError]

test_denmark_spec.py::test_calculate_century_selector[2222-ValueError]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[260310579-9]

test_denmark_spec.py::test_calculate_checksum[260310579-9]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1858-expected_values3]

test_denmark_spec.py::test_calculate_century_selector[1858-expected_values3]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[2037-ValueError]

test_denmark_spec.py::test_calculate_century_selector[2037-ValueError]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1921-expected_values6]

test_denmark_spec.py::test_calculate_century_selector[1921-expected_values6]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[2000-expected_values10]

test_denmark_spec.py::test_calculate_century_selector[2000-expected_values10]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[250814378-0]

test_denmark_spec.py::test_calculate_checksum[250814378-0]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_cpr

test_denmark_spec.py::test_cpr
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1857-ValueError]

test_denmark_spec.py::test_calculate_century_selector[1857-ValueError]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1999-expected_values9]

test_denmark_spec.py::test_calculate_century_selector[1999-expected_values9]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[030670890-2]

test_denmark_spec.py::test_calculate_checksum[030670890-2]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[050302471-3]

test_denmark_spec.py::test_calculate_checksum[050302471-3]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[210609428-7]

test_denmark_spec.py::test_calculate_checksum[210609428-7]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[060558958-8]

test_denmark_spec.py::test_calculate_checksum[060558958-8]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[-1-ValueError]

test_denmark_spec.py::test_calculate_century_selector[-1-ValueError]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[2021-expected_values11]

test_denmark_spec.py::test_calculate_century_selector[2021-expected_values11]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1234-TypeError]

test_denmark_spec.py::test_calculate_century_selector[1234-TypeError]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1942-expected_values8]

test_denmark_spec.py::test_calculate_century_selector[1942-expected_values8]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1937-expected_values7]

test_denmark_spec.py::test_calculate_century_selector[1937-expected_values7]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[100309468-1]

test_denmark_spec.py::test_calculate_checksum[100309468-1]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[060170000-10]

test_denmark_spec.py::test_calculate_checksum[060170000-10]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[130208400-5]

test_denmark_spec.py::test_calculate_checksum[130208400-5]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_checksum[020678688-4]

test_denmark_spec.py::test_calculate_checksum[020678688-4]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_denmark_spec.py::test_calculate_century_selector[1900-expected_values5]

test_denmark_spec.py::test_calculate_century_selector[1900-expected_values5]
@pytest.fixture
    def denmark():
>       return DenmarkSpecProvider()

tests/test_builtins/test_denmark_spec.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/da.py:14: in __init__
    super().__init__(locale=Locale.DA, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('da', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_date.py::TestDatetime::test_formatted_time[is]

test_date.py::TestDatetime::test_formatted_time[is]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_day_of_month

test_date.py::TestDatetime::test_day_of_month
self = 
_datetime = 

    def test_day_of_month(self, _datetime):
        result = _datetime.day_of_month()
>       assert 1 <= result <= 31
E       TypeError: '<=' not supported between instances of 'int' and 'NoneType'

tests/test_providers/test_date.py:67: TypeError

test_date.py::TestDatetime::test_day_of_week[de]

test_date.py::TestDatetime::test_day_of_week[de]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Dienstag', 'Donnerstag', 'Freitag', 'Mittwoch', 'Montag', 'Samstag', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[en-ca]

test_date.py::TestDatetime::test_month[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[no]

test_date.py::TestDatetime::test_date[no]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_date[uk]

test_date.py::TestDatetime::test_date[uk]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[tr-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[tr-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_day_of_week[uk]

test_date.py::TestDatetime::test_day_of_week[uk]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       assert None in ['Понеділок', 'Вівторок', 'Середа', 'Четвер', "П'ятниця", 'Субота', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_day_of_week[el]

test_date.py::TestDatetime::test_day_of_week[el]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Δευτέρα', 'Κυριακή', 'Πέμπτη', 'Παρασκευή', 'Σάββατο', 'Τετάρτη', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[nl-be]

test_date.py::TestDatetime::test_month[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[is]

test_date.py::TestDatetime::test_day_of_week[is]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Mánudagur', 'Þriðjudagur', 'Miðvikudagur', 'Fimmtudagur', 'Föstudagur', 'Laugardagur', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_date[it]

test_date.py::TestDatetime::test_date[it]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[es]

test_date.py::TestDatetime::test_formatted_time[es]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_date[pt-br]

test_date.py::TestDatetime::test_date[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_time[en-au]

test_date.py::TestDatetime::test_formatted_time[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[ja]

test_date.py::TestDatetime::test_date[ja]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[ru]

test_date.py::TestDatetime::test_formatted_time[ru]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_periodicity[kk]

test_date.py::TestDatetime::test_periodicity[kk]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Ай сайын', 'Апта сайын', 'Бір күні', 'Ешқашан', 'Жиі', 'Жыл сайын', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_time[fr]

test_date.py::TestDatetime::test_time[fr]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[hr]

test_date.py::TestDatetime::test_periodicity[hr]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Dnevno', 'Godišnje', 'Jednom', 'Mjesečno', 'Nikad', 'Svakih nekoliko dana', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_time[fa]

test_date.py::TestDatetime::test_time[fa]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_date[pl]

test_date.py::TestDatetime::test_date[pl]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_date[is]

test_date.py::TestDatetime::test_date[is]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_month[ko]

test_date.py::TestDatetime::test_month[ko]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_str[en-ca]

test_date.py::TestDatetime::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[it]

test_date.py::TestDatetime::test_periodicity[it]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Una volta', 'Mai', 'Raramente', 'Spesso', 'Quotidiano', 'Settimanalmente', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.PACIFIC]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.PACIFIC]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_month[tr]

test_date.py::TestDatetime::test_month[tr]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_time[pt-br]

test_date.py::TestDatetime::test_formatted_time[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[tr]

test_date.py::TestDatetime::test_date[tr]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_day_of_week[en-au]

test_date.py::TestDatetime::test_day_of_week[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[et]

test_date.py::TestDatetime::test_day_of_week[et]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_time[en-ca]

test_date.py::TestDatetime::test_time[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[ja]

test_date.py::TestDatetime::test_periodicity[ja]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['一度', 'たまに', 'よく', '常に', '毎日', '毎週', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_date[nl-be]

test_date.py::TestDatetime::test_date[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[hu]

test_date.py::TestDatetime::test_month[hu]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_time[hu]

test_date.py::TestDatetime::test_time[hu]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_month[ja]

test_date.py::TestDatetime::test_month[ja]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pt-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pt-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[hr-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[hr-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_time[el]

test_date.py::TestDatetime::test_formatted_time[el]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_month[fi]

test_date.py::TestDatetime::test_month[fi]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_time[el]

test_date.py::TestDatetime::test_time[el]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_day_of_week[tr]

test_date.py::TestDatetime::test_day_of_week[tr]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_periodicity[uk]

test_date.py::TestDatetime::test_periodicity[uk]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Щорічно', 'Щоденно', 'Щоквартально', 'Щомісячно', 'Щотижнево', 'Іноді', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_formatted_time[uk]

test_date.py::TestDatetime::test_formatted_time[uk]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[kk-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[kk-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_timezone_without_region

test_date.py::TestDatetime::test_timezone_without_region
self = 
_datetime = 

    def test_timezone_without_region(self, _datetime):
        result = _datetime.timezone()
>       region = result.split("/")[0]
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_date.py:141: AttributeError

test_date.py::TestDatetime::test_str[pt-br]

test_date.py::TestDatetime::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_timestamp[TimestampFormat.ISO_8601-str-kwargs2]

test_date.py::TestDatetime::test_timestamp[TimestampFormat.ISO_8601-str-kwargs2]
self = 
_datetime = 
fmt = , out_type = , kwargs = {}

    @pytest.mark.parametrize(
        "fmt, out_type, kwargs",
        [
            (TimestampFormat.POSIX, int, {}),
            (TimestampFormat.RFC_3339, str, {"start": 2023, "end": 2023}),
            (TimestampFormat.ISO_8601, str, {}),
        ],
    )
    def test_timestamp(self, _datetime, fmt, out_type, kwargs):
        result = _datetime.timestamp(fmt=fmt, **kwargs)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:154: AssertionError

test_date.py::TestDatetime::test_day_of_week[cs]

test_date.py::TestDatetime::test_day_of_week[cs]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Neděle', 'Pondělí', 'Pátek', 'Sobota', 'Středa', 'Úterý', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_date[en-au]

test_date.py::TestDatetime::test_date[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[is]

test_date.py::TestDatetime::test_month[is]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[sv-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[sv-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_date[sk]

test_date.py::TestDatetime::test_date[sk]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[no-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[no-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_month[el]

test_date.py::TestDatetime::test_month[el]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_time[es-mx]

test_date.py::TestDatetime::test_formatted_time[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ja-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ja-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_periodicity[en-ca]

test_date.py::TestDatetime::test_periodicity[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_time[kk]

test_date.py::TestDatetime::test_time[kk]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_time[hr]

test_date.py::TestDatetime::test_time[hr]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_time[nl]

test_date.py::TestDatetime::test_time[nl]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[de-at]

test_date.py::TestDatetime::test_periodicity[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[fi]

test_date.py::TestDatetime::test_date[fi]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[sk-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[sk-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_time[ko]

test_date.py::TestDatetime::test_formatted_time[ko]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_time[it]

test_date.py::TestDatetime::test_formatted_time[it]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_time[de-ch]

test_date.py::TestDatetime::test_time[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_time[hu]

test_date.py::TestDatetime::test_formatted_time[hu]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_month[es]

test_date.py::TestDatetime::test_month[es]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_day_of_week[kk]

test_date.py::TestDatetime::test_day_of_week[kk]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Дүйсенбі', 'Сейсенбі', 'Сәрсенбі', 'Бейсенбі', 'Жұма', 'Сенбі', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_periodicity[pl]

test_date.py::TestDatetime::test_periodicity[pl]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Codziennie', 'Miesięcznie', 'Nigdy', 'Często', 'Jednorazowo', 'Rzadko', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-ca-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-ca-None]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[ko]

test_date.py::TestDatetime::test_periodicity[ko]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['한 번', '전혀', '가끔', '자주', '매일', '매주', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_month[no]

test_date.py::TestDatetime::test_month[no]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_periodicity[de]

test_date.py::TestDatetime::test_periodicity[de]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Einmal', 'Häufig', 'Jährlich', 'Monatlich', 'Nie', 'Selten', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_periodicity[es]

test_date.py::TestDatetime::test_periodicity[es]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Una vez', 'Nunca', 'Jamás', 'Raramente', 'A menudo', 'Diariamente', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_day_of_week[hr]

test_date.py::TestDatetime::test_day_of_week[hr]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Nedjelja', 'Petak', 'Ponedjeljak', 'Srijeda', 'Subota', 'Utorak', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_time[ko]

test_date.py::TestDatetime::test_time[ko]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_time[en-au]

test_date.py::TestDatetime::test_time[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[hr]

test_date.py::TestDatetime::test_month[hr]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_month[de]

test_date.py::TestDatetime::test_month[de]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_date[zh]

test_date.py::TestDatetime::test_date[zh]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[pt]

test_date.py::TestDatetime::test_formatted_time[pt]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_time[et]

test_date.py::TestDatetime::test_formatted_time[et]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_month[cs]

test_date.py::TestDatetime::test_month[cs]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_periodicity[fi]

test_date.py::TestDatetime::test_periodicity[fi]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Ei ikinä', 'Harvoin', 'Kerran', 'Kuukausittain', 'Päivittäin', 'Usein', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_formatted_time[pl]

test_date.py::TestDatetime::test_formatted_time[pl]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_time[da]

test_date.py::TestDatetime::test_time[da]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[el]

test_date.py::TestDatetime::test_periodicity[el]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Εβδομαδιαίο', 'Ετήσιο', 'Καθημερινά', 'Μηνιαίο', 'Μόλις', 'Πάντα', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_date[et]

test_date.py::TestDatetime::test_date[et]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[hr]

test_date.py::TestDatetime::test_formatted_time[hr]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_str[de-at]

test_date.py::TestDatetime::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[es]

test_date.py::TestDatetime::test_day_of_week[es]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[zh]

test_date.py::TestDatetime::test_month[zh]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ru-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ru-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_time[de]

test_date.py::TestDatetime::test_time[de]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_date[el]

test_date.py::TestDatetime::test_date[el]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_time[zh]

test_date.py::TestDatetime::test_time[zh]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_time[sk]

test_date.py::TestDatetime::test_time[sk]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_day_of_week[nl]

test_date.py::TestDatetime::test_day_of_week[nl]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[en-au]

test_date.py::TestDatetime::test_month[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[en-au]

test_date.py::TestDatetime::test_periodicity[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_time[ja]

test_date.py::TestDatetime::test_formatted_time[ja]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[is-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[is-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_day_of_week[es-mx]

test_date.py::TestDatetime::test_day_of_week[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_time[no]

test_date.py::TestDatetime::test_time[no]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[et]

test_date.py::TestDatetime::test_periodicity[et]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Ühel päeval', 'Mitte kunagi', 'Harva', 'Väga sageli', 'Igapäevaselt', 'Nädalas', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_str[en-au]

test_date.py::TestDatetime::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[de-ch]

test_date.py::TestDatetime::test_date[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ATLANTIC]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ATLANTIC]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[nl-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[nl-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_date[hu]

test_date.py::TestDatetime::test_date[hu]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_time[fi]

test_date.py::TestDatetime::test_time[fi]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_formatted_time[nl]

test_date.py::TestDatetime::test_formatted_time[nl]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_date[pt]

test_date.py::TestDatetime::test_date[pt]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[no]

test_date.py::TestDatetime::test_formatted_time[no]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_time[et]

test_date.py::TestDatetime::test_time[et]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_time[uk]

test_date.py::TestDatetime::test_time[uk]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[sk]

test_date.py::TestDatetime::test_periodicity[sk]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['denne', 'mesačne', 'nikdy', 'raz', 'ročne', 'týždenne', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.HOURS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.HOURS]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_periodicity[is]

test_date.py::TestDatetime::test_periodicity[is]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Einu sinni', 'Aldrei', 'Sjaldan', 'Oft', 'Vikuleg', 'Mánaðarleg', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.WEEKS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.WEEKS]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_periodicity[pt-br]

test_date.py::TestDatetime::test_periodicity[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_time[fr]

test_date.py::TestDatetime::test_formatted_time[fr]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_periodicity[da]

test_date.py::TestDatetime::test_periodicity[da]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Aldrig', 'Daglige', 'Månedlige', 'Sjældent', 'Ugentlig', 'Årligt']

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_day_of_week[fi]

test_date.py::TestDatetime::test_day_of_week[fi]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Keskiviikko', 'Lauantai', 'Maanantai', 'Perjantai', 'Sunnuntai', 'Tiistai', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_day_of_week[fr]

test_date.py::TestDatetime::test_day_of_week[fr]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_time[cs]

test_date.py::TestDatetime::test_time[cs]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_day_of_week[hu]

test_date.py::TestDatetime::test_day_of_week[hu]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombaton', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_formatted_date

test_date.py::TestDatetime::test_formatted_date
self = 
_datetime = 

    def test_formatted_date(self, _datetime):
        fmt_date = _datetime.formatted_date("%Y", start=2000, end=2000)
>       assert fmt_date == "2000"
E       AssertionError: assert None == '2000'

tests/test_providers/test_date.py:76: AssertionError

test_date.py::TestDatetime::test_duration[1-10-None]

test_date.py::TestDatetime::test_duration[1-10-None]
self = 
_datetime = 
min_duration = 1, max_duration = 10, duration_unit = None

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-au-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-au-None]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_time[ru]

test_date.py::TestDatetime::test_time[ru]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_day_of_week[fa]

test_date.py::TestDatetime::test_day_of_week[fa]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['شنبه', 'یکشنبه', 'دوشنبه', 'سه\u200cشنبه', 'چهارشنبه', 'پنجشنبه', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[et]

test_date.py::TestDatetime::test_month[et]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_day_of_week[nl-be]

test_date.py::TestDatetime::test_day_of_week[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_time[pt-br]

test_date.py::TestDatetime::test_time[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[kk]

test_date.py::TestDatetime::test_date[kk]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[cs-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[cs-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_date[ru]

test_date.py::TestDatetime::test_date[ru]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_month[es-mx]

test_date.py::TestDatetime::test_month[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-gb-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[en-gb-None]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[de-ch]

test_date.py::TestDatetime::test_periodicity[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.DAYS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.DAYS]
self = 
_datetime = 
min_duration = 1, max_duration = 10, duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AFRICA]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AFRICA]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_time[tr]

test_date.py::TestDatetime::test_formatted_time[tr]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_day_of_week[ru]

test_date.py::TestDatetime::test_day_of_week[ru]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_periodicity[tr]

test_date.py::TestDatetime::test_periodicity[tr]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Bir kere', 'Hiç', 'Sıklıkla', 'Günlük', 'Haftalık', 'Aylık', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_duration_error

test_date.py::TestDatetime::test_duration_error
self = 
_datetime = 

    def test_duration_error(self, _datetime):
>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_date.py:240: Failed

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[uk-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[uk-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_time[it]

test_date.py::TestDatetime::test_time[it]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_date[hr]

test_date.py::TestDatetime::test_date[hr]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_date[nl]

test_date.py::TestDatetime::test_date[nl]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ASIA]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ASIA]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_periodicity[fr]

test_date.py::TestDatetime::test_periodicity[fr]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Annuel', 'Hebdomadaire', 'Jamais', 'Mensuel', 'Rarement', 'Souvent', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_day_of_week[sv]

test_date.py::TestDatetime::test_day_of_week[sv]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_bulk_create_datetimes[14-337]

test_date.py::TestDatetime::test_bulk_create_datetimes[14-337]
self = 
_datetime = 
days = 14, objects_count = 337

    @pytest.mark.parametrize(
        "days, objects_count",
        [
            (7, 169),
            (14, 337),
            (28, 673),
        ],
    )
    def test_bulk_create_datetimes(self, _datetime, days, objects_count):
        date_start = datetime.datetime.now()
        date_end = date_start + datetime.timedelta(days=days)
        datetime_objects = _datetime.bulk_create_datetimes(
            date_start=date_start,
            date_end=date_end,
            minutes=60,
        )
>       assert len(datetime_objects) == objects_count
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_date.py:38: TypeError

test_date.py::TestDatetime::test_formatted_time[sk]

test_date.py::TestDatetime::test_formatted_time[sk]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[et-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[et-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_time[sv]

test_date.py::TestDatetime::test_time[sv]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_day_of_week[pt]

test_date.py::TestDatetime::test_day_of_week[pt]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Segunda Feira', 'Terça Feira', 'Quarta Feira', 'Quinta Feira', 'Sexta Feira', 'Sábado', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fr-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fr-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_date[sv]

test_date.py::TestDatetime::test_date[sv]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_day_of_week[pl]

test_date.py::TestDatetime::test_day_of_week[pl]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fa-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fa-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_time[de-at]

test_date.py::TestDatetime::test_time[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[it-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[it-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_timestamp[TimestampFormat.RFC_3339-str-kwargs1]

test_date.py::TestDatetime::test_timestamp[TimestampFormat.RFC_3339-str-kwargs1]
self = 
_datetime = 
fmt = , out_type = 
kwargs = {'end': 2023, 'start': 2023}

    @pytest.mark.parametrize(
        "fmt, out_type, kwargs",
        [
            (TimestampFormat.POSIX, int, {}),
            (TimestampFormat.RFC_3339, str, {"start": 2023, "end": 2023}),
            (TimestampFormat.ISO_8601, str, {}),
        ],
    )
    def test_timestamp(self, _datetime, fmt, out_type, kwargs):
        result = _datetime.timestamp(fmt=fmt, **kwargs)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:154: AssertionError

test_date.py::TestDatetime::test_periodicity[en-gb]

test_date.py::TestDatetime::test_periodicity[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[fa]

test_date.py::TestDatetime::test_periodicity[fa]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['یک بار', 'هرگز', 'ندرتا', 'غالبا', 'روزانه', 'هفتگی', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fi-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[fi-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_time[en-ca]

test_date.py::TestDatetime::test_formatted_time[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime[2019-2019]

test_date.py::TestDatetime::test_formatted_datetime[2019-2019]
self = 
_datetime = 
start = 2019, end = 2019

    @pytest.mark.parametrize(
        "start, end",
        [
            (2018, 2018),
            (2019, 2019),
        ],
    )
    def test_formatted_datetime(self, _datetime, start, end):
        dt_str = _datetime.formatted_date(fmt="%Y", start=start, end=end)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:194: AssertionError

test_date.py::TestDatetime::test_timestamp[TimestampFormat.POSIX-int-kwargs0]

test_date.py::TestDatetime::test_timestamp[TimestampFormat.POSIX-int-kwargs0]
self = 
_datetime = 
fmt = , out_type = , kwargs = {}

    @pytest.mark.parametrize(
        "fmt, out_type, kwargs",
        [
            (TimestampFormat.POSIX, int, {}),
            (TimestampFormat.RFC_3339, str, {"start": 2023, "end": 2023}),
            (TimestampFormat.ISO_8601, str, {}),
        ],
    )
    def test_timestamp(self, _datetime, fmt, out_type, kwargs):
        result = _datetime.timestamp(fmt=fmt, **kwargs)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:154: AssertionError

test_date.py::TestDatetime::test_date[cs]

test_date.py::TestDatetime::test_date[cs]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[cs]

test_date.py::TestDatetime::test_formatted_time[cs]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MICROSECONDS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MICROSECONDS]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_month[ru]

test_date.py::TestDatetime::test_month[ru]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_day_of_week[en-ca]

test_date.py::TestDatetime::test_day_of_week[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[fr]

test_date.py::TestDatetime::test_month[fr]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_time[zh]

test_date.py::TestDatetime::test_formatted_time[zh]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MINUTES]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MINUTES]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_day_of_week[no]

test_date.py::TestDatetime::test_day_of_week[no]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[de-ch]

test_date.py::TestDatetime::test_month[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pl-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pl-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_month[de-at]

test_date.py::TestDatetime::test_month[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[es-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[es-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_day_of_week[de-at]

test_date.py::TestDatetime::test_day_of_week[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AUSTRALIA]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AUSTRALIA]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ko-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[ko-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_str[de-ch]

test_date.py::TestDatetime::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[en-gb]

test_date.py::TestDatetime::test_day_of_week[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[uk]

test_date.py::TestDatetime::test_month[uk]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_day_of_week[ko]

test_date.py::TestDatetime::test_day_of_week[ko]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['월요일', '화요일', '수요일', '목요일', '금요일', '토요일', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_month[en-gb]

test_date.py::TestDatetime::test_month[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[zh]

test_date.py::TestDatetime::test_periodicity[zh]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['一直', '通常', '经常', '有时', '很少', '几乎不', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_time[es]

test_date.py::TestDatetime::test_time[es]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_bulk_create_datetimes[7-169]

test_date.py::TestDatetime::test_bulk_create_datetimes[7-169]
self = 
_datetime = , days = 7
objects_count = 169

    @pytest.mark.parametrize(
        "days, objects_count",
        [
            (7, 169),
            (14, 337),
            (28, 673),
        ],
    )
    def test_bulk_create_datetimes(self, _datetime, days, objects_count):
        date_start = datetime.datetime.now()
        date_end = date_start + datetime.timedelta(days=days)
        datetime_objects = _datetime.bulk_create_datetimes(
            date_start=date_start,
            date_end=date_end,
            minutes=60,
        )
>       assert len(datetime_objects) == objects_count
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_date.py:38: TypeError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.INDIAN]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.INDIAN]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_date[es]

test_date.py::TestDatetime::test_date[es]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_month[nl]

test_date.py::TestDatetime::test_month[nl]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_time[nl-be]

test_date.py::TestDatetime::test_time[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ARCTIC]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ARCTIC]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_time[kk]

test_date.py::TestDatetime::test_formatted_time[kk]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_time[is]

test_date.py::TestDatetime::test_time[is]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[cs]

test_date.py::TestDatetime::test_periodicity[cs]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Denní', 'Jednou', 'Měsíční', 'Nikdy', 'Roční', 'Týdně', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ANTARCTICA]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.ANTARCTICA]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_time[en-gb]

test_date.py::TestDatetime::test_formatted_time[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[sv]

test_date.py::TestDatetime::test_month[sv]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_date[ko]

test_date.py::TestDatetime::test_date[ko]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[de-at]

test_date.py::TestDatetime::test_formatted_time[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-ch-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-ch-None]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_century

test_date.py::TestDatetime::test_century
self = 
_datetime = 

    def test_century(self, _datetime):
        result = _datetime.century()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:98: AssertionError

test_date.py::TestDatetime::test_formatted_time[fa]

test_date.py::TestDatetime::test_formatted_time[fa]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_bulk_create_datetimes[28-673]

test_date.py::TestDatetime::test_bulk_create_datetimes[28-673]
self = 
_datetime = 
days = 28, objects_count = 673

    @pytest.mark.parametrize(
        "days, objects_count",
        [
            (7, 169),
            (14, 337),
            (28, 673),
        ],
    )
    def test_bulk_create_datetimes(self, _datetime, days, objects_count):
        date_start = datetime.datetime.now()
        date_end = date_start + datetime.timedelta(days=days)
        datetime_objects = _datetime.bulk_create_datetimes(
            date_start=date_start,
            date_end=date_end,
            minutes=60,
        )
>       assert len(datetime_objects) == objects_count
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_date.py:38: TypeError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pt-br-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[pt-br-None]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

Paris]

Paris]
self = 
_datetime = 
start = 2014, end = 2019, timezone = 'Europe/Paris'

    @pytest.mark.parametrize(
        "start, end, timezone",
        [
            (2014, 2019, "Europe/Paris"),
            (2014, 2019, None),
        ],
    )
    def test_datetime(self, _datetime, start, end, timezone):
        dt_obj = _datetime.datetime(start=start, end=end, timezone=timezone)

>       assert start <= dt_obj.year <= end
E       AttributeError: 'NoneType' object has no attribute 'year'

tests/test_providers/test_date.py:177: AttributeError

test_date.py::TestDatetime::test_date[en-gb]

test_date.py::TestDatetime::test_date[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[fa]

test_date.py::TestDatetime::test_date[fa]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[de]

test_date.py::TestDatetime::test_formatted_time[de]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_time[tr]

test_date.py::TestDatetime::test_time[tr]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_week_date

test_date.py::TestDatetime::test_week_date
self = 
_datetime = 

    def test_week_date(self, _datetime):
        result = _datetime.week_date(start=2017, end=_datetime._CURRENT_YEAR)
>       result = result.replace("-", " ").replace("W", "")
E       AttributeError: 'NoneType' object has no attribute 'replace'

tests/test_providers/test_date.py:212: AttributeError

test_date.py::TestDatetime::test_month[fa]

test_date.py::TestDatetime::test_month[fa]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_periodicity[no]

test_date.py::TestDatetime::test_periodicity[no]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['En gang', 'Aldri', 'Sjeldent', 'Ofte', 'Daglig', 'Ukentlig', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_str[es-mx]

test_date.py::TestDatetime::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_time[pt]

test_date.py::TestDatetime::test_time[pt]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_date[da]

test_date.py::TestDatetime::test_date[da]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_date[es-mx]

test_date.py::TestDatetime::test_date[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[sv]

test_date.py::TestDatetime::test_periodicity[sv]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['En gång', 'Aldrig', 'Sällan', 'Ofta', 'Dagligen', 'Veckovis', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.EUROPE]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.EUROPE]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_day_of_week[pt-br]

test_date.py::TestDatetime::test_day_of_week[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_str[en-gb]

test_date.py::TestDatetime::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_datetime[2014-2019-None]

test_date.py::TestDatetime::test_datetime[2014-2019-None]
self = 
_datetime = 
start = 2014, end = 2019, timezone = None

    @pytest.mark.parametrize(
        "start, end, timezone",
        [
            (2014, 2019, "Europe/Paris"),
            (2014, 2019, None),
        ],
    )
    def test_datetime(self, _datetime, start, end, timezone):
        dt_obj = _datetime.datetime(start=start, end=end, timezone=timezone)

>       assert start <= dt_obj.year <= end
E       AttributeError: 'NoneType' object has no attribute 'year'

tests/test_providers/test_date.py:177: AttributeError

test_date.py::TestDatetime::test_day_of_week[da]

test_date.py::TestDatetime::test_day_of_week[da]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Fredag', 'Lørdag', 'Mandag', 'Onsdag', 'Søndag', 'Tirsdag', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_formatted_time[sv]

test_date.py::TestDatetime::test_formatted_time[sv]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_bulk_create_datetimes_error

test_date.py::TestDatetime::test_bulk_create_datetimes_error
self = 
_datetime = 

    def test_bulk_create_datetimes_error(self, _datetime):
        date_start = datetime.datetime.now()
        date_end = date_start - datetime.timedelta(days=7)

>       with pytest.raises(ValueError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_date.py:44: Failed

test_date.py::TestDatetime::test_date[de]

test_date.py::TestDatetime::test_date[de]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_formatted_time[nl-be]

test_date.py::TestDatetime::test_formatted_time[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_str[nl-be]

test_date.py::TestDatetime::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_date[de-at]

test_date.py::TestDatetime::test_date[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[pt]

test_date.py::TestDatetime::test_month[pt]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_month[kk]

test_date.py::TestDatetime::test_month[kk]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[el-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[el-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_formatted_time[de-ch]

test_date.py::TestDatetime::test_formatted_time[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_time[da]

test_date.py::TestDatetime::test_formatted_time[da]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[es-mx-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[es-mx-None]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[nl]

test_date.py::TestDatetime::test_periodicity[nl]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Eenmaal', 'Nooit', 'Zelden', 'Dagelijks', 'Wekelijks', 'Maandelijks', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_month[pt-br]

test_date.py::TestDatetime::test_month[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[hu-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[hu-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_month[da]

test_date.py::TestDatetime::test_month[da]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_time[ja]

test_date.py::TestDatetime::test_time[ja]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_periodicity[hu]

test_date.py::TestDatetime::test_periodicity[hu]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Egyszer', 'Havi', 'Heti', 'Napi', 'Ritkán', 'Soha', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_formatted_time[fi]

test_date.py::TestDatetime::test_formatted_time[fi]
self = 
dt = 

    def test_formatted_time(self, dt):
        default = dt.formatted_time()
>       assert isinstance(default, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:94: AssertionError

test_date.py::TestDatetime::test_year

test_date.py::TestDatetime::test_year
self = 
_datetime = 

    def test_year(self, _datetime):
        result = _datetime.year(minimum=2000, maximum=_datetime._CURRENT_YEAR)
>       assert result >= 2000
E       TypeError: '>=' not supported between instances of 'NoneType' and 'int'

tests/test_providers/test_date.py:58: TypeError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MILLISECONDS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.MILLISECONDS]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_day_of_week[de-ch]

test_date.py::TestDatetime::test_day_of_week[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AMERICA]

test_date.py::TestDatetime::test_timezone[TimezoneRegion.AMERICA]
self = 
_datetime = 
region = 

    @pytest.mark.parametrize(
        "region",
        [
            TimezoneRegion.AFRICA,
            TimezoneRegion.AMERICA,
            TimezoneRegion.ANTARCTICA,
            TimezoneRegion.ARCTIC,
            TimezoneRegion.ASIA,
            TimezoneRegion.ATLANTIC,
            TimezoneRegion.AUSTRALIA,
            TimezoneRegion.EUROPE,
            TimezoneRegion.INDIAN,
            TimezoneRegion.PACIFIC,
        ],
    )
    def test_timezone(self, _datetime, region):
        result = _datetime.timezone(region=region)
>       assert result in TIMEZONES
E       AssertionError: assert None in ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Bamako', ...]

tests/test_providers/test_date.py:136: AssertionError

test_date.py::TestDatetime::test_formatted_datetime[2018-2018]

test_date.py::TestDatetime::test_formatted_datetime[2018-2018]
self = 
_datetime = 
start = 2018, end = 2018

    @pytest.mark.parametrize(
        "start, end",
        [
            (2018, 2018),
            (2019, 2019),
        ],
    )
    def test_formatted_datetime(self, _datetime, start, end):
        dt_str = _datetime.formatted_date(fmt="%Y", start=start, end=end)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:194: AssertionError

test_date.py::TestDatetime::test_periodicity[ru]

test_date.py::TestDatetime::test_periodicity[ru]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Ежегодно', 'Ежедневно', 'Ежеквартально', 'Ежемесячно', 'Еженедельно', 'Иногда', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_time[es-mx]

test_date.py::TestDatetime::test_time[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[zh]

test_date.py::TestDatetime::test_day_of_week[zh]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_gmt_offset

test_date.py::TestDatetime::test_gmt_offset
self = 
_datetime = 

    def test_gmt_offset(self, _datetime):
        result = _datetime.gmt_offset()
>       assert result in GMT_OFFSETS
E       AssertionError: assert None in ['UTC', 'UTC +04:30', 'UTC +02:00', 'UTC +01:00', 'UTC -11:00', 'UTC -04:00', ...]

tests/test_providers/test_date.py:63: AssertionError

test_date.py::TestDatetime::test_time[en-gb]

test_date.py::TestDatetime::test_time[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.SECONDS]

test_date.py::TestDatetime::test_duration[1-10-DurationUnit.SECONDS]
self = 
_datetime = 
min_duration = 1, max_duration = 10
duration_unit = 

    @pytest.mark.parametrize(
        "min_duration, max_duration, duration_unit",
        [
            (1, 10, DurationUnit.WEEKS),
            (1, 10, DurationUnit.DAYS),
            (1, 10, DurationUnit.HOURS),
            (1, 10, DurationUnit.MINUTES),
            (1, 10, DurationUnit.SECONDS),
            (1, 10, DurationUnit.MILLISECONDS),
            (1, 10, DurationUnit.MICROSECONDS),
            (1, 10, None),
        ],
    )
    def test_duration(self, _datetime, min_duration, max_duration, duration_unit):
        result = _datetime.duration(
            min_duration=min_duration,
            max_duration=max_duration,
            duration_unit=duration_unit,
        )
>       assert isinstance(result, datetime.timedelta)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.timedelta

tests/test_providers/test_date.py:237: AssertionError

test_date.py::TestDatetime::test_day_of_week[it]

test_date.py::TestDatetime::test_day_of_week[it]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_periodicity[nl-be]

test_date.py::TestDatetime::test_periodicity[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[da-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[da-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_periodicity[es-mx]

test_date.py::TestDatetime::test_periodicity[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-at-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[de-at-None]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_month[pl]

test_date.py::TestDatetime::test_month[pl]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[nl-be-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[nl-be-None]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_day_of_week[ja]

test_date.py::TestDatetime::test_day_of_week[ja]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_date[fr]

test_date.py::TestDatetime::test_date[fr]
self = 
dt = 

    def test_date(self, dt):
        date_object = dt.date(start=dt._CURRENT_YEAR, end=dt._CURRENT_YEAR)
>       assert isinstance(date_object, datetime.date)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.date

tests/test_providers/test_date.py:71: AssertionError

test_date.py::TestDatetime::test_day_of_week[sk]

test_date.py::TestDatetime::test_day_of_week[sk]
self = 
dt = 

    def test_day_of_week(self, dt):
        result = dt.day_of_week()
>       assert result in dt._dataset["day"]["name"]
E       AssertionError: assert None in ['nedeľa', 'piatok', 'pondelok', 'sobota', 'streda', 'utorok', ...]

tests/test_providers/test_date.py:103: AssertionError

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[zh-None]

test_date.py::TestDatetime::test_formatted_datetime_without_fmt[zh-None]
self = 
dt = , fmt = None

    @pytest.mark.parametrize(
        "fmt",
        [
            None,
        ],
    )
    def test_formatted_datetime_without_fmt(self, dt, fmt):
        dt_str = dt.formatted_date(fmt=fmt, start=2010, end=2030)
>       assert isinstance(dt_str, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_date.py:208: AssertionError

test_date.py::TestDatetime::test_date[en-ca]

test_date.py::TestDatetime::test_date[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def dt(request):
>       return mimesis.Datetime(request.param)

tests/conftest.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_date.py::TestDatetime::test_periodicity[pt]

test_date.py::TestDatetime::test_periodicity[pt]
self = 
dt = 

    def test_periodicity(self, dt):
        result = dt.periodicity()
>       assert result in dt._dataset["periodicity"]
E       AssertionError: assert None in ['Uma Vez', 'Nunca', 'Raramente', 'Frequentemente', 'Diariamente', 'Semanalmente', ...]

tests/test_providers/test_date.py:117: AssertionError

test_date.py::TestDatetime::test_time[pl]

test_date.py::TestDatetime::test_time[pl]
self = 
dt = 

    def test_time(self, dt):
        default = dt.time()
>       assert isinstance(default, datetime.time)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where  = datetime.time

tests/test_providers/test_date.py:90: AssertionError

test_date.py::TestDatetime::test_month[it]

test_date.py::TestDatetime::test_month[it]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_date.py::TestDatetime::test_month[sk]

test_date.py::TestDatetime::test_month[sk]
self = 
dt = 

    def test_month(self, dt):
        result = dt.month()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_date.py:110: AssertionError

test_path.py::TestPath::test_user[win32]

test_path.py::TestPath::test_user[win32]
self = 
path = 

    def test_user(self, path):
        user = path.user()

        pattern = r"C:\\Users\\[A-Z].*" if path.platform == "win32" else r"/home/[a-z]."

>       result = re.search(pattern, user)

tests/test_providers/test_path.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = 'C:\\\\Users\\\\[A-Z].*', string = None, flags = 0

    def search(pattern, string, flags=0):
        """Scan through string looking for a match to the pattern, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).search(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:200: TypeError

test_path.py::TestPath::test_home[linux]

test_path.py::TestPath::test_home[linux]
self = 
path = 

    def test_home(self, path):
        result = path.home()
>       assert result == "C:\\Users" or result == "/home"
E       AssertionError: assert (None == 'C:\\Users' or None == '/home')

tests/test_providers/test_path.py:16: AssertionError

test_path.py::TestPath::test_root[linux]

test_path.py::TestPath::test_root[linux]
self = 
path = 

    def test_root(self, path):
        result = path.root()
>       assert result == "C:\\" or result == "/"
E       AssertionError: assert (None == 'C:\\' or None == '/')

tests/test_providers/test_path.py:12: AssertionError

test_path.py::TestPath::test_user[linux]

test_path.py::TestPath::test_user[linux]
self = 
path = 

    def test_user(self, path):
        user = path.user()

        pattern = r"C:\\Users\\[A-Z].*" if path.platform == "win32" else r"/home/[a-z]."

>       result = re.search(pattern, user)

tests/test_providers/test_path.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '/home/[a-z].', string = None, flags = 0

    def search(pattern, string, flags=0):
        """Scan through string looking for a match to the pattern, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).search(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:200: TypeError

test_path.py::TestPath::test_root[win32]

test_path.py::TestPath::test_root[win32]
self = 
path = 

    def test_root(self, path):
        result = path.root()
>       assert result == "C:\\" or result == "/"
E       AssertionError: assert (None == 'C:\\' or None == '/')

tests/test_providers/test_path.py:12: AssertionError

test_path.py::TestPath::test_project_dir[linux]

test_path.py::TestPath::test_project_dir[linux]
self = 
path = 

    def test_project_dir(self, path):
        project_path = path.project_dir()
>       project_path = project_path.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:48: AttributeError

test_path.py::TestPath::test_home[win32]

test_path.py::TestPath::test_home[win32]
self = 
path = 

    def test_home(self, path):
        result = path.home()
>       assert result == "C:\\Users" or result == "/home"
E       AssertionError: assert (None == 'C:\\Users' or None == '/home')

tests/test_providers/test_path.py:16: AssertionError

test_path.py::TestPath::test_project_dir[win32]

test_path.py::TestPath::test_project_dir[win32]
self = 
path = 

    def test_project_dir(self, path):
        project_path = path.project_dir()
>       project_path = project_path.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:48: AttributeError

test_path.py::TestPath::test_users_folder[linux]

test_path.py::TestPath::test_users_folder[linux]
self = 
path = 

    def test_users_folder(self, path):
        folder = path.users_folder()
>       folder = folder.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:36: AttributeError

test_path.py::TestPath::test_users_folder[win32]

test_path.py::TestPath::test_users_folder[win32]
self = 
path = 

    def test_users_folder(self, path):
        folder = path.users_folder()
>       folder = folder.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:36: AttributeError

test_path.py::TestPath::test_dev_dir[win32]

test_path.py::TestPath::test_dev_dir[win32]
self = 
path = 

    def test_dev_dir(self, path):
        dev_dir = path.dev_dir()
>       dev_dir = dev_dir.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:42: AttributeError

test_path.py::TestPath::test_dev_dir[linux]

test_path.py::TestPath::test_dev_dir[linux]
self = 
path = 

    def test_dev_dir(self, path):
        dev_dir = path.dev_dir()
>       dev_dir = dev_dir.split(self.directory_separator(path))
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_path.py:42: AttributeError

test_text.py::TestText::test_quote[nl]

test_text.py::TestText::test_quote[nl]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_word[nl-be]

test_text.py::TestText::test_word[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[es-mx-True]

test_text.py::TestText::test_alphabet[es-mx-True]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_title[ja]

test_text.py::TestText::test_title[ja]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_level[hr]

test_text.py::TestText::test_level[hr]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_sentence[sv]

test_text.py::TestText::test_sentence[sv]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_title[en-gb]

test_text.py::TestText::test_title[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[fi]

test_text.py::TestText::test_answer[fi]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.DEFAULT1]

test_text.py::TestText::test_emoji[EmojyCategory.DEFAULT1]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_title[cs]

test_text.py::TestText::test_title[cs]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_color[nl-be]

test_text.py::TestText::test_color[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[kk]

test_text.py::TestText::test_quote[kk]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_rgb_color[False]

test_text.py::TestText::test_rgb_color[False]
self = 
_text = , safe = False

    @pytest.mark.parametrize(
        "safe",
        [
            True,
            False,
        ],
    )
    def test_rgb_color(self, _text, safe):
        result = _text.rgb_color(safe=safe)
>       assert isinstance(result, tuple)
E       assert False
E        +  where False = isinstance(None, tuple)

tests/test_providers/test_text.py:46: AssertionError

test_text.py::TestText::test_title[kk]

test_text.py::TestText::test_title[kk]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_text[de]

test_text.py::TestText::test_text[de]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_color[sk]

test_text.py::TestText::test_color[sk]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['biela', 'hnedá', 'modrá', 'sivá', 'zelená', 'červená', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_text[cs]

test_text.py::TestText::test_text[cs]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_text[pt-br]

test_text.py::TestText::test_text[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[en-ca-True]

test_text.py::TestText::test_alphabet[en-ca-True]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_emoji[EmojyCategory.OBJECTS]

test_text.py::TestText::test_emoji[EmojyCategory.OBJECTS]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_sentence[fi]

test_text.py::TestText::test_sentence[fi]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_alphabet[en-gb-False]

test_text.py::TestText::test_alphabet[en-gb-False]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[hr]

test_text.py::TestText::test_words[hr]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_answer[en-gb]

test_text.py::TestText::test_answer[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[en-gb]

test_text.py::TestText::test_words[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[pt-True]

test_text.py::TestText::test_alphabet[pt-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_sentence[kk]

test_text.py::TestText::test_sentence[kk]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_sentence[es]

test_text.py::TestText::test_sentence[es]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_text[es-mx]

test_text.py::TestText::test_text[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_color[es-mx]

test_text.py::TestText::test_color[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[ja]

test_text.py::TestText::test_answer[ja]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_word[sk]

test_text.py::TestText::test_word[sk]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['žblnknúť']

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_answer[et]

test_text.py::TestText::test_answer[et]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[et-False]

test_text.py::TestText::test_alphabet[et-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_answer[uk]

test_text.py::TestText::test_answer[uk]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_word[hr]

test_text.py::TestText::test_word[hr]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'ako', 'akord', 'alat', 'ali', 'atom', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_answer[en-au]

test_text.py::TestText::test_answer[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[hr-True]

test_text.py::TestText::test_alphabet[hr-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[fr]

test_text.py::TestText::test_color[fr]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Abricot', 'Acajou', 'Aigue-marine', 'Alezan', 'Amande', 'Amarante', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_hex_color[True]

test_text.py::TestText::test_hex_color[True]
self = 
_text = , safe = True

    @pytest.mark.parametrize(
        "safe",
        [
            True,
            False,
        ],
    )
    def test_hex_color(self, _text, safe):
        result = _text.hex_color(safe=safe)
>       assert re.match(patterns.HEX_COLOR, result)

tests/test_providers/test_text.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})\\b', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_text.py::TestText::test_sentence[nl]

test_text.py::TestText::test_sentence[nl]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_words[de]

test_text.py::TestText::test_words[de]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_words[tr]

test_text.py::TestText::test_words[tr]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_level[cs]

test_text.py::TestText::test_level[cs]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_title[de-ch]

test_text.py::TestText::test_title[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[da]

test_text.py::TestText::test_text[da]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_level[it]

test_text.py::TestText::test_level[it]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_title[es]

test_text.py::TestText::test_title[es]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_words[fr]

test_text.py::TestText::test_words[fr]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_alphabet[sv-False]

test_text.py::TestText::test_alphabet[sv-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.PEOPLE_AND_BODY]

test_text.py::TestText::test_emoji[EmojyCategory.PEOPLE_AND_BODY]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_quote[zh]

test_text.py::TestText::test_quote[zh]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['生活是一面镜子。你对它笑,它就对你笑;你对它哭,它也对你哭。', '活着一天,就是有福气,就该珍惜。当我哭泣我没有鞋子穿的时候,我发现有人却没有脚。', '人生是个圆,有的人走了一辈子也没有走出命运画出的圆圈,其实,圆上的每一个点都有一条腾飞的切线。', '千万别迷恋网络游戏,要玩就玩好人生这场大游戏。', '命运负责洗牌,但是玩牌的是我们自己!', '我们心中的恐惧,永远比真正的危险巨大的多。', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_title[sk]

test_text.py::TestText::test_title[sk]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_color[en-au]

test_text.py::TestText::test_color[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[es]

test_text.py::TestText::test_level[es]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_sentence[pt-br]

test_text.py::TestText::test_sentence[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_str[es-mx]

test_text.py::TestText::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[sk-False]

test_text.py::TestText::test_alphabet[sk-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[de-at]

test_text.py::TestText::test_title[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[tr]

test_text.py::TestText::test_word[tr]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'adam', 'adamım', 'adı', 'adım', 'ah', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[fi-True]

test_text.py::TestText::test_alphabet[fi-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.DEFAULT0]

test_text.py::TestText::test_emoji[EmojyCategory.DEFAULT0]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_words[uk]

test_text.py::TestText::test_words[uk]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_answer[de-at]

test_text.py::TestText::test_answer[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[pl]

test_text.py::TestText::test_quote[pl]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Grzegorz Brzęczyszczykiewicz, Chrząszczyżewoszyce, powiat Łękołody', 'Nas? Bohaterów? Prądem?!', 'Ciemność, widzę ci...wonić na miasto? Pytałem się o coś! Małżonka się niepokoi!', 'Dzień dobry, zastałem Jolkę?', 'Hej! Nasi tu byli!', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_words[en-ca]

test_text.py::TestText::test_words[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[es]

test_text.py::TestText::test_answer[es]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_color[ko]

test_text.py::TestText::test_color[ko]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['갈색', '검은색', '군청색', '귤색', '금색', '남색', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_word[en-au]

test_text.py::TestText::test_word[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[hu]

test_text.py::TestText::test_text[hu]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_sentence[is]

test_text.py::TestText::test_sentence[is]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_text[fi]

test_text.py::TestText::test_text[fi]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[nl-be-True]

test_text.py::TestText::test_alphabet[nl-be-True]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[ja]

test_text.py::TestText::test_text[ja]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_color[nl]

test_text.py::TestText::test_color[nl]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Blauw', 'Bruin', 'Geel', 'Grijs', 'Groen', 'Oranje', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_color[hr]

test_text.py::TestText::test_color[hr]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Bijela', 'Bordo', 'Crna', 'Crvena', 'Kaki', 'Koraljna', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_sentence[de-at]

test_text.py::TestText::test_sentence[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[hu]

test_text.py::TestText::test_words[hu]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_quote[tr]

test_text.py::TestText::test_quote[tr]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Birtakım kuşbeyinli kimselere kendinizi beğendirmek hevesine düşmeyiniz; bunun hiçbir kıymeti ve önemi yoktur.', 'Bi...n güvenini amaç edinen, hiçbir başka ulusun aleyhinde olmayan bir barış yolu, her zaman bizim ilkemiz olacaktır.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_color[de-at]

test_text.py::TestText::test_color[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[sk]

test_text.py::TestText::test_words[sk]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_alphabet[en-ca-False]

test_text.py::TestText::test_alphabet[en-ca-False]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[nl-be-False]

test_text.py::TestText::test_alphabet[nl-be-False]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[sv]

test_text.py::TestText::test_answer[sv]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_title[is]

test_text.py::TestText::test_title[is]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_title[et]

test_text.py::TestText::test_title[et]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_words[nl-be]

test_text.py::TestText::test_words[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_sentence[zh]

test_text.py::TestText::test_sentence[zh]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_quote[fr]

test_text.py::TestText::test_quote[fr]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       assert None in ["De toutes les sources d'énergie, la chaleur humaine est la moins coûteuse...", "Le silence se meurt, le bruit prend ..."Je sais pourquoi tant de gens aiment couper du bois. C'est une activité où l'on voit tout de suite le résultat.", ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_sentence[sk]

test_text.py::TestText::test_sentence[sk]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_sentence[en-au]

test_text.py::TestText::test_sentence[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[et]

test_text.py::TestText::test_text[et]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[nl-True]

test_text.py::TestText::test_alphabet[nl-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_alphabet[tr-False]

test_text.py::TestText::test_alphabet[tr-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_alphabet[kk-False]

test_text.py::TestText::test_alphabet[kk-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_text[de-ch]

test_text.py::TestText::test_text[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[da]

test_text.py::TestText::test_answer[da]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[cs-False]

test_text.py::TestText::test_alphabet[cs-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_word[fr]

test_text.py::TestText::test_word[fr]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['abandonner', 'absolument', 'accepter', 'accident', 'accompagner', 'accord', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_words[pl]

test_text.py::TestText::test_words[pl]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_color[ja]

test_text.py::TestText::test_color[ja]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['赤', '赤錆色', '赤丹', '茜色', '赤紫', '曙色', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_level[ja]

test_text.py::TestText::test_level[ja]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_color[es]

test_text.py::TestText::test_color[es]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Negro', 'Blanco', 'Gris', 'Rojo', 'Zzul', 'Zmarillo', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_alphabet[es-mx-False]

test_text.py::TestText::test_alphabet[es-mx-False]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_title[hu]

test_text.py::TestText::test_title[hu]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_title[de]

test_text.py::TestText::test_title[de]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_sentence[ko]

test_text.py::TestText::test_sentence[ko]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_quote[de-at]

test_text.py::TestText::test_quote[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_str[nl-be]

test_text.py::TestText::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[uk-False]

test_text.py::TestText::test_alphabet[uk-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_text[it]

test_text.py::TestText::test_text[it]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_text[es]

test_text.py::TestText::test_text[es]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_str[en-au]

test_text.py::TestText::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[it-True]

test_text.py::TestText::test_alphabet[it-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[hu]

test_text.py::TestText::test_quote[hu]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Te mondd, hogy rablótámadás, a te hangod mélyebb!', 'Csak nyugodtan Walsh előttünk az egész nap!', 'A pisztácia kifo...bról.', 'Te hozzám beszélsz?', 'A világ összes városának összes kocsmája közül miért pont ebbe kellett bejönnie?', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_level[fr]

test_text.py::TestText::test_level[fr]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[uk-True]

test_text.py::TestText::test_alphabet[uk-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_sentence[no]

test_text.py::TestText::test_sentence[no]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_level[kk]

test_text.py::TestText::test_level[kk]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_text[pl]

test_text.py::TestText::test_text[pl]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_word[da]

test_text.py::TestText::test_word[da]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'absolut', 'ad', 'adam', 'adgang', 'advokat', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_color[hu]

test_text.py::TestText::test_color[hu]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Barna', 'Bordó', 'Citromsárga', 'Fehér', 'Fekete', 'Lila', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[et]

test_text.py::TestText::test_quote[et]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Põrsast kotis ei osteta.', 'Tee tööd töö ajal, aja juttu jutu ajal.', 'Tühi kott ei seisa püsti.', 'Vana karu tantsima ei õpi.', 'Aeg kuivatab märja maa', 'Enda silmas palki ei näe, teise silmas pindu küll.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_alphabet[el-False]

test_text.py::TestText::test_alphabet[el-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[kk]

test_text.py::TestText::test_color[kk]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Ақ', 'Жасыл', 'Күлгін', 'Көгілдір', 'Көк', 'Сары', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[es]

test_text.py::TestText::test_quote[es]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Plata o Plomo']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_answer[de-ch]

test_text.py::TestText::test_answer[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[it]

test_text.py::TestText::test_answer[it]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_title[sv]

test_text.py::TestText::test_title[sv]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_quote[de-ch]

test_text.py::TestText::test_quote[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[en-au]

test_text.py::TestText::test_words[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_color[pt]

test_text.py::TestText::test_color[pt]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Amarelo', 'Azul', 'Branco', 'Cinza', 'Laranja', 'Marrom', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_text[fa]

test_text.py::TestText::test_text[fa]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_color[it]

test_text.py::TestText::test_color[it]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Nero', 'Bianco', 'Rosso', 'Giallo', 'Azzurro', 'Verde', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_text[pt]

test_text.py::TestText::test_text[pt]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_answer[zh]

test_text.py::TestText::test_answer[zh]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_sentence[nl-be]

test_text.py::TestText::test_sentence[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[tr]

test_text.py::TestText::test_answer[tr]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_text[sk]

test_text.py::TestText::test_text[sk]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_quote[sk]

test_text.py::TestText::test_quote[sk]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Učiť sa, učiť sa, učiť sa.']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_alphabet[da-True]

test_text.py::TestText::test_alphabet[da-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[hr]

test_text.py::TestText::test_quote[hr]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Bez promjene nema rasta.', 'Iskoristi dan najbolje što možeš.', 'Najbolje je tek pred nama.', 'Najveći izazov je sam sebi biti bolji.', 'Ne odustaj od svojih snova.', 'Ne živite život drugih, živite svoj život.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_hex_to_rgb

test_text.py::TestText::test_hex_to_rgb
self = 
_text = 

    def test_hex_to_rgb(self, _text):
        color = _text.hex_color()
        rgb = _text._hex_to_rgb(color)
>       assert isinstance(rgb, tuple)
E       assert False
E        +  where False = isinstance(None, tuple)

tests/test_providers/test_text.py:23: AssertionError

test_text.py::TestText::test_level[uk]

test_text.py::TestText::test_level[uk]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_word[uk]

test_text.py::TestText::test_word[uk]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['Євген', 'Єфрем', 'Ігнатій', 'аблатив', 'агенезія', 'агрофітоценоз', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_color[en-gb]

test_text.py::TestText::test_color[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[es-True]

test_text.py::TestText::test_alphabet[es-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_answer[hu]

test_text.py::TestText::test_answer[hu]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_sentence[de-ch]

test_text.py::TestText::test_sentence[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[en-ca]

test_text.py::TestText::test_text[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_sentence[uk]

test_text.py::TestText::test_sentence[uk]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_color[cs]

test_text.py::TestText::test_color[cs]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Bílý', 'Hnědý', 'Modrý', 'Oranžový', 'Purpurový', 'Růžový', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_text[no]

test_text.py::TestText::test_text[no]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_sentence[en-ca]

test_text.py::TestText::test_sentence[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[fa]

test_text.py::TestText::test_level[fa]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[tr-True]

test_text.py::TestText::test_alphabet[tr-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[uk]

test_text.py::TestText::test_title[uk]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_level[pl]

test_text.py::TestText::test_level[pl]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_word[cs]

test_text.py::TestText::test_word[cs]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['abby', 'absolutně', 'absurdní', 'aby', 'abych', 'abychom', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_text[en-gb]

test_text.py::TestText::test_text[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[is]

test_text.py::TestText::test_word[is]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['aaron', 'abby', 'abel', 'abrahams', 'ad', 'adam', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_quote[fa]

test_text.py::TestText::test_quote[fa]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['همه دین\u200cها، هنرها و علم\u200cها شاخه\u200cهای یک درخت\u200cاند.. - آلبرت اینشتین', 'خشم فقط در آغوش احمق\u200cه...0cکنند. - آلبرت اینشتین', 'ما همه در برابر خداوند به طور یکسان عاقل هستیم، و به طور یکسان نادان. - آلبرت اینشتین', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_text[el]

test_text.py::TestText::test_text[el]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_sentence[hr]

test_text.py::TestText::test_sentence[hr]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_quote[sv]

test_text.py::TestText::test_quote[sv]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Alla goda ting är tre.', 'Alla känner apan, men apan känner ingen.', 'Alla sätt är bra utom de dåliga.', 'Alla vill vara herrar, men ingen vill bära säcken.', 'Alla vägar bär till Rom.', 'Alla är vi barn i början.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_word[de-ch]

test_text.py::TestText::test_word[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[es-mx]

test_text.py::TestText::test_level[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[el]

test_text.py::TestText::test_level[el]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_sentence[hu]

test_text.py::TestText::test_sentence[hu]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_word[pt]

test_text.py::TestText::test_word[pt]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['abaixo', 'aberta', 'aberto', 'abra', 'abram', 'abre', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_color[da]

test_text.py::TestText::test_color[da]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['blå', 'brun', 'grå', 'grøn', 'gul', 'hvid', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[el]

test_text.py::TestText::test_quote[el]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Ένα ξέρω, ότι τίποτα δεν ξέρω. Αυτή είναι η πηγή της σοφίας μου', 'Αγάπη είναι όταν μία ψυχή ζει σε δύο σώματα.', 'Α...κτός από την αλλαγή.', 'Είμαι υπόχρεος στον πατέρα μου που ζω, αλλά είμαι υπόχρεος στον δάσκαλο μου που ζω καλά.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_quote[uk]

test_text.py::TestText::test_quote[uk]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Людина в світ зерно нести повинна, як зерно носить людям колосок', 'Чого варті наші тамерлани та наполеони без коня?...й залізо, а той золото притягає', 'У вбогого трохи є,в жебрака нічого. Понад міру в богача, а досить – ні в кого', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_words[ru]

test_text.py::TestText::test_words[ru]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_level[tr]

test_text.py::TestText::test_level[tr]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.FLAGS]

test_text.py::TestText::test_emoji[EmojyCategory.FLAGS]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_title[nl]

test_text.py::TestText::test_title[nl]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_level[sk]

test_text.py::TestText::test_level[sk]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_answer[fa]

test_text.py::TestText::test_answer[fa]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[da-False]

test_text.py::TestText::test_alphabet[da-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_level[hu]

test_text.py::TestText::test_level[hu]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_quote[pt-br]

test_text.py::TestText::test_quote[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_color[pl]

test_text.py::TestText::test_color[pl]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Amarantowy', 'Biały', 'Brązowy', 'Czarny', 'Czerwony', 'Fioletowy', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_title[ko]

test_text.py::TestText::test_title[ko]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_answer[pl]

test_text.py::TestText::test_answer[pl]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_str[en-gb]

test_text.py::TestText::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[zh-True]

test_text.py::TestText::test_alphabet[zh-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[es-mx]

test_text.py::TestText::test_quote[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[nl-be]

test_text.py::TestText::test_quote[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[sv]

test_text.py::TestText::test_text[sv]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[pt-br-True]

test_text.py::TestText::test_alphabet[pt-br-True]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[pt-False]

test_text.py::TestText::test_alphabet[pt-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_alphabet[is-True]

test_text.py::TestText::test_alphabet[is-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[is]

test_text.py::TestText::test_color[is]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Appelsínugulur', 'Bleikur', 'Blár', 'Brúnn', 'Fjólublár', 'Grár', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[de]

test_text.py::TestText::test_quote[de]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Aller Anfang ist schwer.', 'Anfangen ist leicht, Beharren eine Kunst.', 'Aus Schaden wird man klug.', 'Das Billige ist immer das Teuerste.', 'Der Hunger kommt beim Essen.', 'Des Teufels liebstes Möbelstück ist die lange Bank.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_str[en-ca]

test_text.py::TestText::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[is]

test_text.py::TestText::test_quote[is]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Af góðu upphafi vonast góður endir.', 'Aldrei er góð vísa of oft kveðin.', 'Allir vilja herrann vera, en enginn sekk...ð baki nema sér bróður eigi.', 'Betra er einn að vera, en illan stallbróður hafa.', 'Brennt barn forðast eldinn.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.SYMBOLS]

test_text.py::TestText::test_emoji[EmojyCategory.SYMBOLS]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_answer[sk]

test_text.py::TestText::test_answer[sk]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_word[sv]

test_text.py::TestText::test_word[sv]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'absolut', 'acceptera', 'advokat', 'affär', 'affären', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_text[nl]

test_text.py::TestText::test_text[nl]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_color[el]

test_text.py::TestText::test_color[el]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Kυανό', 'Άσπρο', 'Κίτρινο', 'Καφέ', 'Κόκκινο', 'Μαύρο', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_sentence[fa]

test_text.py::TestText::test_sentence[fa]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_word[kk]

test_text.py::TestText::test_word[kk]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['автомобиль', 'адам', 'адам', 'адам', 'адамдар', 'ажыратылған', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_title[it]

test_text.py::TestText::test_title[it]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_alphabet[pt-br-False]

test_text.py::TestText::test_alphabet[pt-br-False]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_rgb_color[True]

test_text.py::TestText::test_rgb_color[True]
self = 
_text = , safe = True

    @pytest.mark.parametrize(
        "safe",
        [
            True,
            False,
        ],
    )
    def test_rgb_color(self, _text, safe):
        result = _text.rgb_color(safe=safe)
>       assert isinstance(result, tuple)
E       assert False
E        +  where False = isinstance(None, tuple)

tests/test_providers/test_text.py:46: AssertionError

test_text.py::TestText::test_text[tr]

test_text.py::TestText::test_text[tr]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_level[de-ch]

test_text.py::TestText::test_level[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_title[pt]

test_text.py::TestText::test_title[pt]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_alphabet[zh-False]

test_text.py::TestText::test_alphabet[zh-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[en-au]

test_text.py::TestText::test_quote[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[nl-False]

test_text.py::TestText::test_alphabet[nl-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_level[de]

test_text.py::TestText::test_level[de]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_answer[el]

test_text.py::TestText::test_answer[el]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_word[de-at]

test_text.py::TestText::test_word[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[cs]

test_text.py::TestText::test_words[cs]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_sentence[ja]

test_text.py::TestText::test_sentence[ja]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_title[el]

test_text.py::TestText::test_title[el]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_color[en-ca]

test_text.py::TestText::test_color[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[en-gb]

test_text.py::TestText::test_word[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[ru]

test_text.py::TestText::test_level[ru]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[fr-True]

test_text.py::TestText::test_alphabet[fr-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[no]

test_text.py::TestText::test_title[no]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_color[zh]

test_text.py::TestText::test_color[zh]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['朱红', '粉红', '梅红', '玫瑰红', '桃红', '樱桃红', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[en-gb]

test_text.py::TestText::test_quote[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[nl]

test_text.py::TestText::test_answer[nl]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_word[fi]

test_text.py::TestText::test_word[fi]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['aalto', 'aalto', 'aaltonen', 'aamu', 'aamulehti', 'aamupäivä', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_text[nl-be]

test_text.py::TestText::test_text[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[no]

test_text.py::TestText::test_answer[no]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_sentence[it]

test_text.py::TestText::test_sentence[it]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_answer[fr]

test_text.py::TestText::test_answer[fr]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_text[ru]

test_text.py::TestText::test_text[ru]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_level[is]

test_text.py::TestText::test_level[is]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_quote[cs]

test_text.py::TestText::test_quote[cs]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_str[pt-br]

test_text.py::TestText::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[pt-br]

test_text.py::TestText::test_answer[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[ru-True]

test_text.py::TestText::test_alphabet[ru-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_alphabet[fi-False]

test_text.py::TestText::test_alphabet[fi-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[ko]

test_text.py::TestText::test_quote[ko]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['가장 현명한 사람은 자신만의 방향을 따른다.', '강렬한 사랑은 판단하지 않는다. 주기만 할 뿐이다.', '군자는 자신에게서 구하고, 소인은 남에게서 구한다.', '기회 없는 능력은 쓸모가 없다.', '기회를 찾아야 기회를 만든다.', '긴 하루 끝에 좋은 책이 기다리고 있다는 생각만으로 그날은 더 행복해진다.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_quote[ru]

test_text.py::TestText::test_quote[ru]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Честно говоря, моя дорогая, мне наплевать', 'Я собираюсь сделать ему предложение, от которого он не сможет отказатьс...е в Канзасе', 'Глядя на тебя, крошка', 'Валяй, порадуй меня!', 'Хорошо, г-н Демилль, я готова для крупного плана', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_alphabet[en-gb-True]

test_text.py::TestText::test_alphabet[en-gb-True]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[et]

test_text.py::TestText::test_word[et]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['autoga', 'broneerima', 'broneerimine', 'broneeringut tühistama', 'brošüür', 'bussiga', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_emoji[None]

test_text.py::TestText::test_emoji[None]
self = 
_text = , category = None

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_alphabet[ja-True]

test_text.py::TestText::test_alphabet[ja-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_word[fa]

test_text.py::TestText::test_word[fa]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['تست']

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_words[sv]

test_text.py::TestText::test_words[sv]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_words[es]

test_text.py::TestText::test_words[es]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_color[tr]

test_text.py::TestText::test_color[tr]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Bej', 'Siyah', 'Mavi', 'Kahverengi', 'Yeşil', 'Magenta', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_title[pl]

test_text.py::TestText::test_title[pl]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_title[nl-be]

test_text.py::TestText::test_title[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[es-False]

test_text.py::TestText::test_alphabet[es-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_level[nl-be]

test_text.py::TestText::test_level[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[is]

test_text.py::TestText::test_words[is]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_answer[ru]

test_text.py::TestText::test_answer[ru]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[fa-False]

test_text.py::TestText::test_alphabet[fa-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_level[en-ca]

test_text.py::TestText::test_level[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[de]

test_text.py::TestText::test_word[de]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['ab', 'abend', 'aber', 'acht', 'alle', 'allein', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_title[fr]

test_text.py::TestText::test_title[fr]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.FOOD_AND_DRINK]

test_text.py::TestText::test_emoji[EmojyCategory.FOOD_AND_DRINK]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_answer[nl-be]

test_text.py::TestText::test_answer[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[el]

test_text.py::TestText::test_word[el]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['Ιστορικό', 'Λογαριασμός', 'άδεια', 'άσσος', 'έγινε', 'ήδη', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_sentence[cs]

test_text.py::TestText::test_sentence[cs]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_sentence[et]

test_text.py::TestText::test_sentence[et]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_word[pl]

test_text.py::TestText::test_word[pl]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['absolutnie', 'aby', 'abym', 'abyś', 'abyśmy', 'ach', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[en-au-False]

test_text.py::TestText::test_alphabet[en-au-False]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[ko]

test_text.py::TestText::test_level[ko]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[pl-False]

test_text.py::TestText::test_alphabet[pl-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_words[de-at]

test_text.py::TestText::test_words[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_answer[cs]

test_text.py::TestText::test_answer[cs]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[sk-True]

test_text.py::TestText::test_alphabet[sk-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_words[pt-br]

test_text.py::TestText::test_words[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[zh]

test_text.py::TestText::test_word[zh]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['严格', '丰富', '主体', '主体', '主体', '主导', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[ja-False]

test_text.py::TestText::test_alphabet[ja-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_alphabet[sv-True]

test_text.py::TestText::test_alphabet[sv-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[et]

test_text.py::TestText::test_color[et]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Alisariinpunane', 'Ametüst', 'Aprikoos', 'Beebisinine', 'Beež', 'Berliinisinine', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_words[ja]

test_text.py::TestText::test_words[ja]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_words[el]

test_text.py::TestText::test_words[el]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_words[no]

test_text.py::TestText::test_words[no]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_alphabet[ko-False]

test_text.py::TestText::test_alphabet[ko-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_sentence[da]

test_text.py::TestText::test_sentence[da]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_alphabet[de-at-False]

test_text.py::TestText::test_alphabet[de-at-False]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[it]

test_text.py::TestText::test_quote[it]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['A buon intenditor poche parole', 'A chi fa male, mai mancano scuse', 'A nemico che fugge, fa un ponte d’oro', 'A poco a poco', 'A prima vista', 'A vostro comodo', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_answer[pt]

test_text.py::TestText::test_answer[pt]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[en-au-True]

test_text.py::TestText::test_alphabet[en-au-True]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[it-False]

test_text.py::TestText::test_alphabet[it-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[sv]

test_text.py::TestText::test_color[sv]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Vit', 'Gul', 'Orange', 'Rosa', 'Röd', 'Brun', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_alphabet[et-True]

test_text.py::TestText::test_alphabet[et-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[pt]

test_text.py::TestText::test_quote[pt]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       assert None in ["Toque Sam. Toque 'As Time Goes By'.", 'Toto, eu tenho um sentimento que nós não estamos mais no Kansas.', 'Tudo bem,...m bom Chianti.', 'Uma manhã eu atirei num elefante usando meu pijama. Como ele entrou no meu pijama, eu não sei.', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_text[uk]

test_text.py::TestText::test_text[uk]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_words[da]

test_text.py::TestText::test_words[da]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_sentence[fr]

test_text.py::TestText::test_sentence[fr]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_words[es-mx]

test_text.py::TestText::test_words[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_sentence[en-gb]

test_text.py::TestText::test_sentence[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[it]

test_text.py::TestText::test_words[it]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_text[fr]

test_text.py::TestText::test_text[fr]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[cs-True]

test_text.py::TestText::test_alphabet[cs-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_word[es-mx]

test_text.py::TestText::test_word[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_color[pt-br]

test_text.py::TestText::test_color[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[fi]

test_text.py::TestText::test_level[fi]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_word[hu]

test_text.py::TestText::test_word[hu]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'absolut', 'ad', 'adam', 'adgang', 'advokat', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_sentence[de]

test_text.py::TestText::test_sentence[de]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_title[hr]

test_text.py::TestText::test_title[hr]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_level[et]

test_text.py::TestText::test_level[et]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_color[ru]

test_text.py::TestText::test_color[ru]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Аквамариновый', 'Амарантовый', 'Аметистовый', 'Античный белый', 'Белый', 'Бистр', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_words[zh]

test_text.py::TestText::test_words[zh]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_level[en-au]

test_text.py::TestText::test_level[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[nl]

test_text.py::TestText::test_words[nl]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_sentence[pl]

test_text.py::TestText::test_sentence[pl]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_color[fi]

test_text.py::TestText::test_color[fi]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Harmaa', 'Hopea', 'Hopeinen', 'Keltainen', 'Kulta', 'Kultainen', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_level[no]

test_text.py::TestText::test_level[no]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_words[pt]

test_text.py::TestText::test_words[pt]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_answer[es-mx]

test_text.py::TestText::test_answer[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_sentence[el]

test_text.py::TestText::test_sentence[el]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_alphabet[no-True]

test_text.py::TestText::test_alphabet[no-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[pt-br]

test_text.py::TestText::test_title[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[de-ch-False]

test_text.py::TestText::test_alphabet[de-ch-False]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[da]

test_text.py::TestText::test_level[da]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[hr-False]

test_text.py::TestText::test_alphabet[hr-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_sentence[pt]

test_text.py::TestText::test_sentence[pt]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_word[pt-br]

test_text.py::TestText::test_word[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[da]

test_text.py::TestText::test_quote[da]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_title[tr]

test_text.py::TestText::test_title[tr]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_level[nl]

test_text.py::TestText::test_level[nl]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_alphabet[pl-True]

test_text.py::TestText::test_alphabet[pl-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[en-au]

test_text.py::TestText::test_title[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[nl]

test_text.py::TestText::test_word[nl]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['Amerika', 'Amerikaan', 'Amerikaans', 'Amerikaanse', 'Amerikanen', 'CIA', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[no-False]

test_text.py::TestText::test_alphabet[no-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_quote[en-ca]

test_text.py::TestText::test_quote[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_title[es-mx]

test_text.py::TestText::test_title[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[it]

test_text.py::TestText::test_word[it]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'abbastanza', 'abbia', 'abbiamo', 'accordo', 'acqua', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_answer[de]

test_text.py::TestText::test_answer[de]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_title[en-ca]

test_text.py::TestText::test_title[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[pt]

test_text.py::TestText::test_level[pt]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_text[zh]

test_text.py::TestText::test_text[zh]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_hex_color[False]

test_text.py::TestText::test_hex_color[False]
self = 
_text = , safe = False

    @pytest.mark.parametrize(
        "safe",
        [
            True,
            False,
        ],
    )
    def test_hex_color(self, _text, safe):
        result = _text.hex_color(safe=safe)
>       assert re.match(patterns.HEX_COLOR, result)

tests/test_providers/test_text.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '#(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})\\b', string = None, flags = 0

    def match(pattern, string, flags=0):
        """Try to apply the pattern at the start of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).match(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:190: TypeError

test_text.py::TestText::test_title[zh]

test_text.py::TestText::test_title[zh]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_text[ko]

test_text.py::TestText::test_text[ko]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[de-False]

test_text.py::TestText::test_alphabet[de-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_word[ru]

test_text.py::TestText::test_word[ru]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['абсолютно', 'абсолютный', 'август', 'авиация', 'автобус', 'автомат', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[de-ch-True]

test_text.py::TestText::test_alphabet[de-ch-True]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[de-at-True]

test_text.py::TestText::test_alphabet[de-at-True]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_text[en-au]

test_text.py::TestText::test_text[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[ko]

test_text.py::TestText::test_word[ko]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['가게', '가격', '가구', '가까워지다', '가까이', '가깝다', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_answer[is]

test_text.py::TestText::test_answer[is]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[ru-False]

test_text.py::TestText::test_alphabet[ru-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_level[sv]

test_text.py::TestText::test_level[sv]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_title[fa]

test_text.py::TestText::test_title[fa]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_quote[fi]

test_text.py::TestText::test_quote[fi]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Vanhan ajattelutavan luomien ongelmien ratkaisemiseksi tarvitaan uutta ajattelutapaa.']

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_word[es]

test_text.py::TestText::test_word[es]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['abierta', 'abierto', 'abran', 'abrir', 'absolutamente', 'absoluto', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_answer[en-ca]

test_text.py::TestText::test_answer[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_color[de-ch]

test_text.py::TestText::test_color[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_level[zh]

test_text.py::TestText::test_level[zh]
self = 
text = 

    def test_level(self, text):
        result = text.level()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:95: AssertionError

test_text.py::TestText::test_words[ko]

test_text.py::TestText::test_words[ko]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_emoji[EmojyCategory.ANIMALS_AND_NATURE]

test_text.py::TestText::test_emoji[EmojyCategory.ANIMALS_AND_NATURE]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_title[ru]

test_text.py::TestText::test_title[ru]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_alphabet[fa-True]

test_text.py::TestText::test_alphabet[fa-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_word[ja]

test_text.py::TestText::test_word[ja]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['1st', '2LDK', '2欠け', '2気筒', '2行割', '8日ぶり', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_color[fa]

test_text.py::TestText::test_color[fa]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['آبی', 'آبی آسمانی', 'آبی درباری', 'آبی دریایی', 'آبی کاربنی', 'آبی لجنی', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_level[en-gb]

test_text.py::TestText::test_level[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_title[fi]

test_text.py::TestText::test_title[fi]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_answer[hr]

test_text.py::TestText::test_answer[hr]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_color[uk]

test_text.py::TestText::test_color[uk]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['аквамариновий', 'амарантового', 'аметистовий', 'античний білий', 'білий', 'бургундський', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_answer[kk]

test_text.py::TestText::test_answer[kk]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_text[kk]

test_text.py::TestText::test_text[kk]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_str[de-ch]

test_text.py::TestText::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_emoji[EmojyCategory.TRAVEL_AND_PLACES]

test_text.py::TestText::test_emoji[EmojyCategory.TRAVEL_AND_PLACES]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_alphabet[kk-True]

test_text.py::TestText::test_alphabet[kk-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_words[de-ch]

test_text.py::TestText::test_words[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_words[fa]

test_text.py::TestText::test_words[fa]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_color[de]

test_text.py::TestText::test_color[de]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Beige', 'Blau', 'Braun', 'Dunkelblau', 'Gelb', 'Gold', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_quote[ja]

test_text.py::TestText::test_quote[ja]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['自分らしく生きなさい。他人の真似なんかしなくていい', '3ヶ月間、それまでの人生を通して背負い過ぎたものを下ろし、「自分はどう生きたいのか」「何が好きなのか」と、自分の本心に向き合い続けました。そんな自問自答の末、最後に残ったのが...私は私だもの', '他人に何を言われようと関係ない。私は私', '私は私であることを恥じない、恥じたこともない', 'パーフェクトでないこと。それが人間であることの証しであり、同時にその人固有の魅力にも、つながることなのです', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_text[hr]

test_text.py::TestText::test_text[hr]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_text[de-at]

test_text.py::TestText::test_text[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_word[no]

test_text.py::TestText::test_word[no]
self = 
text = 

    def test_word(self, text):
        result = text.word()
>       assert result in text._dataset["words"]
E       AssertionError: assert None in ['a', 'absolutt', 'adjø', 'advokat', 'af', 'aften', ...]

tests/test_providers/test_text.py:83: AssertionError

test_text.py::TestText::test_alphabet[hu-True]

test_text.py::TestText::test_alphabet[hu-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_answer[ko]

test_text.py::TestText::test_answer[ko]
self = 
text = 

    def test_answer(self, text):
        result = text.answer()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:100: AssertionError

test_text.py::TestText::test_alphabet[ko-True]

test_text.py::TestText::test_alphabet[ko-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_emoji[EmojyCategory.ACTIVITIES]

test_text.py::TestText::test_emoji[EmojyCategory.ACTIVITIES]
self = 
_text = 
category = 

    @pytest.mark.parametrize(
        "category",
        [
            None,
            EmojyCategory.DEFAULT,
            EmojyCategory.SMILEYS_AND_EMOTION,
            EmojyCategory.PEOPLE_AND_BODY,
            EmojyCategory.ANIMALS_AND_NATURE,
            EmojyCategory.FOOD_AND_DRINK,
            EmojyCategory.TRAVEL_AND_PLACES,
            EmojyCategory.ACTIVITIES,
            EmojyCategory.OBJECTS,
            EmojyCategory.SYMBOLS,
            EmojyCategory.FLAGS,
        ],
    )
    def test_emoji(self, _text, category):
        result = _text.emoji(category=category)
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_text.py:121: AssertionError

test_text.py::TestText::test_words[kk]

test_text.py::TestText::test_words[kk]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_level[pt-br]

test_text.py::TestText::test_level[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_quote[no]

test_text.py::TestText::test_quote[no]
self = 
text = 

    def test_quote(self, text):
        result = text.quote()
>       assert result in text._dataset["quotes"]
E       AssertionError: assert None in ['Alltid drømme og skyte høyere enn du vet du kan gjøre. Ikke bry deg bare for å være bedre enn dine jevnaldrende elle...kte ditt sinn mot negative tanker. - Buddha', 'Din holdning ikke dine evner vil bestemme din høyde. - Zig Ziglar', ...]

tests/test_providers/test_text.py:87: AssertionError

test_text.py::TestText::test_str[de-at]

test_text.py::TestText::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[el-True]

test_text.py::TestText::test_alphabet[el-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_words[fi]

test_text.py::TestText::test_words[fi]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_text[is]

test_text.py::TestText::test_text[is]
self = 
text = 

    def test_text(self, text):
        result = text.text(quantity=4)
>       assert len(result) >= 4
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:71: TypeError

test_text.py::TestText::test_alphabet[hu-False]

test_text.py::TestText::test_alphabet[hu-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_color[no]

test_text.py::TestText::test_color[no]
self = 
text = 

    def test_color(self, text):
        result = text.color()
>       assert result in text._dataset["color"]
E       AssertionError: assert None in ['Blå', 'Brun', 'Fiolett', 'Grå', 'Grønn', 'Gul', ...]

tests/test_providers/test_text.py:91: AssertionError

test_text.py::TestText::test_alphabet[de-True]

test_text.py::TestText::test_alphabet[de-True]
self = 
text = , case = True

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_title[da]

test_text.py::TestText::test_title[da]
self = 
text = 

    def test_title(self, text):
        result = text.title()
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:66: AssertionError

test_text.py::TestText::test_sentence[es-mx]

test_text.py::TestText::test_sentence[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[is-False]

test_text.py::TestText::test_alphabet[is-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_text.py::TestText::test_words[et]

test_text.py::TestText::test_words[et]
self = 
text = 

    def test_words(self, text):
        result = text.words(quantity=5)
>       assert len(result) == 5
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_text.py:76: TypeError

test_text.py::TestText::test_sentence[tr]

test_text.py::TestText::test_sentence[tr]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_word[en-ca]

test_text.py::TestText::test_word[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_sentence[ru]

test_text.py::TestText::test_sentence[ru]
self = 
text = 

    def test_sentence(self, text):
>       result = text.sentence().strip()
E       AttributeError: 'NoneType' object has no attribute 'strip'

tests/test_providers/test_text.py:61: AttributeError

test_text.py::TestText::test_level[de-at]

test_text.py::TestText::test_level[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def text(request):
>       return mimesis.Text(request.param)

tests/conftest.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/text.py:13: in __init__
    super().__init__(*args, **kwargs)
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_text.py::TestText::test_alphabet[fr-False]

test_text.py::TestText::test_alphabet[fr-False]
self = 
text = , case = False

    @pytest.mark.parametrize(
        "case",
        [
            True,
            False,
        ],
    )
    def test_alphabet(self, text, case):
        result = text.alphabet(lower_case=case)
>       assert result is not None
E       assert None is not None

tests/test_providers/test_text.py:57: AssertionError

test_brazil_spec.py::test_cpf

test_brazil_spec.py::test_cpf
@pytest.fixture
    def pt_br():
>       return BrazilSpecProvider()

tests/test_builtins/test_brazil_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pt_br.py:12: in __init__
    super().__init__(locale=Locale.PT_BR, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:176: in _load_dataset
    base_file = datadir.joinpath(base_locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pt', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_brazil_spec.py::test_cnpj

test_brazil_spec.py::test_cnpj
@pytest.fixture
    def pt_br():
>       return BrazilSpecProvider()

tests/test_builtins/test_brazil_spec.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pt_br.py:12: in __init__
    super().__init__(locale=Locale.PT_BR, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:176: in _load_dataset
    base_file = datadir.joinpath(base_locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pt', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_netherlands_spec.py::test_bsn

test_netherlands_spec.py::test_bsn
@pytest.fixture
    def nl():
>       return NetherlandsSpecProvider()

tests/test_builtins/test_netherlands_spec.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/nl.py:12: in __init__
    super().__init__(locale=Locale.NL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('nl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_netherlands_spec.py::test_nl_meta

test_netherlands_spec.py::test_nl_meta
def test_nl_meta():
        generic = Generic("nl")
        generic.add_provider(NetherlandsSpecProvider)
>       result = generic.netherlands_provider.bsn()

tests/test_builtins/test_netherlands_spec.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
attrname = 'netherlands_provider'

    def __getattr__(self, attrname: str) -> t.Any:
        """Get attribute without an underscore.

        :param attrname: Attribute name.
        :return: An attribute.
        """
>       attribute = object.__getattribute__(self, '_' + attrname)
E       AttributeError: 'Generic' object has no attribute '_netherlands_provider'

mimesis/providers/generic.py:37: AttributeError

test_netherlands_spec.py::test_burgerservicenummer

test_netherlands_spec.py::test_burgerservicenummer
@pytest.fixture
    def nl():
>       return NetherlandsSpecProvider()

tests/test_builtins/test_netherlands_spec.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/nl.py:12: in __init__
    super().__init__(locale=Locale.NL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('nl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_finance.py::TestFinance::test_company_type[uk-False-title]

test_finance.py::TestFinance::test_company_type[uk-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Публічне акціонерне товариство', 'Приватне акціонерне товариство', 'Товариство з обмеженою відповідальністю', 'Товариство з додатковою відповідальністю', 'Командитне товариство', 'Державне акціонерне товариство', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_str[en-gb]

test_finance.py::TestFinance::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[en-gb-False-title]

test_finance.py::TestFinance::test_company_type[en-gb-False-title]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[ko]

test_finance.py::TestFinance::test_cryptocurrency_symbol[ko]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[tr]

test_finance.py::TestFinance::test_price[tr]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[fr]

test_finance.py::TestFinance::test_currency_iso_code[fr]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_stock_name[pt]

test_finance.py::TestFinance::test_stock_name[pt]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_symbol[pl]

test_finance.py::TestFinance::test_currency_symbol[pl]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_price[sv]

test_finance.py::TestFinance::test_price[sv]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[pt-br-False-title]

test_finance.py::TestFinance::test_company_type[pt-br-False-title]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[kk]

test_finance.py::TestFinance::test_bank[kk]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Halyk Bank Kazakhstan', 'Kazkommertsbank', 'ForteBank', 'Eurasian Bank', 'Bank CenterCredit', 'First Heartland Jysan Bank', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[kk]

test_finance.py::TestFinance::test_currency_iso_code[kk]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_price[hr]

test_finance.py::TestFinance::test_price[hr]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_name[ja]

test_finance.py::TestFinance::test_stock_name[ja]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company[pl]

test_finance.py::TestFinance::test_company[pl]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['3maki', '4F', 'A & B', 'A. Zyska', 'ABM Drób', 'AK Motor', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_exchange[sv]

test_finance.py::TestFinance::test_stock_exchange[sv]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_price[ja]

test_finance.py::TestFinance::test_price[ja]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_bank[de-ch]

test_finance.py::TestFinance::test_bank[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[nl]

test_finance.py::TestFinance::test_stock_exchange[nl]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_price_in_btc[1-2]

test_finance.py::TestFinance::test_price_in_btc[1-2]
self = 
_finance = 
minimum = 1, maximum = 2

    @pytest.mark.parametrize(
        "minimum, maximum",
        [
            (1, 2),
            (2, 4),
            (4, 16),
        ],
    )
    def test_price_in_btc(self, _finance, minimum, maximum):
        price = _finance.price_in_btc(minimum, maximum)
>       assert float(price) >= minimum
E       TypeError: float() argument must be a string or a real number, not 'NoneType'

tests/test_providers/test_finance.py:92: TypeError

test_finance.py::TestFinance::test_currency_symbol[es]

test_finance.py::TestFinance::test_currency_symbol[es]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company_type[nl-be-False-title]

test_finance.py::TestFinance::test_company_type[nl-be-False-title]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[da]

test_finance.py::TestFinance::test_price[da]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[ru]

test_finance.py::TestFinance::test_currency_iso_code[ru]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_symbol[cs]

test_finance.py::TestFinance::test_currency_symbol[cs]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_name[de-ch]

test_finance.py::TestFinance::test_stock_name[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[nl-be]

test_finance.py::TestFinance::test_stock_exchange[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[no]

test_finance.py::TestFinance::test_cryptocurrency_symbol[no]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_stock_ticker[de]

test_finance.py::TestFinance::test_stock_ticker[de]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[et]

test_finance.py::TestFinance::test_currency_iso_code[et]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[da]

test_finance.py::TestFinance::test_currency_iso_code[da]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_price[cs]

test_finance.py::TestFinance::test_price[cs]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[fi-False-title]

test_finance.py::TestFinance::test_company_type[fi-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Avoin yhtiö', 'Eurooppalainen taloudellinen etuyhtymä', 'Eurooppaosuuskunta', 'Eurooppayhtiö', 'Julkinen osakeyhtiö', 'Kommandiittiyhtiö', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_symbol[pt]

test_finance.py::TestFinance::test_currency_symbol[pt]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[pt-br]

test_finance.py::TestFinance::test_currency_iso_code[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[tr]

test_finance.py::TestFinance::test_cryptocurrency_symbol[tr]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_bank[sv]

test_finance.py::TestFinance::test_bank[sv]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Swedbank AB', 'Nordea Bank Abp, filial i Sverige', 'Handelsbanken', 'Skandinaviska Enskilda Banken AB', 'Danske Bank', 'Länsförsäkringar Bank AB', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[hu]

test_finance.py::TestFinance::test_currency_iso_code[hu]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_stock_name[nl]

test_finance.py::TestFinance::test_stock_name[nl]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[ko]

test_finance.py::TestFinance::test_currency_iso_code[ko]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_bank[de]

test_finance.py::TestFinance::test_bank[de]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Deutsche Bank', 'Commerzbank', 'KfW Bankengruppe', 'DZ Bank', 'Landesbank Baden-Württemberg', 'Landesbank Hessen-Thüringe', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[sv]

test_finance.py::TestFinance::test_cryptocurrency_symbol[sv]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[it]

test_finance.py::TestFinance::test_price[it]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_price[nl]

test_finance.py::TestFinance::test_price[nl]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[ja]

test_finance.py::TestFinance::test_cryptocurrency_symbol[ja]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_bank[no]

test_finance.py::TestFinance::test_bank[no]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['DNB Bank ASA', 'Nordea Bank Abp filial i Norge', 'Danske Bank', 'Handelsbanken', 'Sparebank 1']

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_stock_exchange[es]

test_finance.py::TestFinance::test_stock_exchange[es]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_ticker[de-at]

test_finance.py::TestFinance::test_stock_ticker[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[pl-True-abbr]

test_finance.py::TestFinance::test_company_type[pl-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['S.A.', 's.c.', 'sp.j.', 'sp.k.', 'S.K.A.', 'sp.p.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[nl-False-title]

test_finance.py::TestFinance::test_company_type[nl-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Vennootschap onder firma', 'Commanditaire vennootschap', 'Besloten vennootschap', 'Naamloze vennootschap']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_name[uk]

test_finance.py::TestFinance::test_stock_name[uk]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_stock_name[no]

test_finance.py::TestFinance::test_stock_name[no]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company[uk]

test_finance.py::TestFinance::test_company[uk]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Нафтогаз', 'Метінвест', 'ДП Енергоринок', 'Укрзалізниця', 'ІСД', 'ДТЕК', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_currency_symbol[ja]

test_finance.py::TestFinance::test_currency_symbol[ja]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_exchange[cs]

test_finance.py::TestFinance::test_stock_exchange[cs]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_price[ru]

test_finance.py::TestFinance::test_price[ru]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_exchange[da]

test_finance.py::TestFinance::test_stock_exchange[da]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_currency_symbol[de-ch]

test_finance.py::TestFinance::test_currency_symbol[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[en-au]

test_finance.py::TestFinance::test_stock_exchange[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[tr]

test_finance.py::TestFinance::test_stock_ticker[tr]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_exchange[de]

test_finance.py::TestFinance::test_stock_exchange[de]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[es]

test_finance.py::TestFinance::test_cryptocurrency_symbol[es]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[nl]

test_finance.py::TestFinance::test_currency_iso_code[nl]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[tr]

test_finance.py::TestFinance::test_currency_iso_code[tr]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_stock_name[es]

test_finance.py::TestFinance::test_stock_name[es]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company[es]

test_finance.py::TestFinance::test_company[es]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['3scale', 'ASTANO', 'Abengoa', 'Abertis', 'Acciona', 'Acerinox', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_name[da]

test_finance.py::TestFinance::test_stock_name[da]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_stock_ticker[es]

test_finance.py::TestFinance::test_stock_ticker[es]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[pl]

test_finance.py::TestFinance::test_cryptocurrency_symbol[pl]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_stock_name[fi]

test_finance.py::TestFinance::test_stock_name[fi]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[nl-be]

test_finance.py::TestFinance::test_currency_iso_code[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[ko]

test_finance.py::TestFinance::test_company[ko]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['21세기조선', '가온전선', '강남도시가스', '강원랜드', '개성약품', '건설화학공업', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company_type[ru-True-abbr]

test_finance.py::TestFinance::test_company_type[ru-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['ПAO', 'АО', 'ООО']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company[nl]

test_finance.py::TestFinance::test_company[nl]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Aalberts Industries', 'Abab', 'ABN AMRO', 'Accell Group', 'AEGON', 'AFC Ajax', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_name[en-au]

test_finance.py::TestFinance::test_stock_name[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[fr]

test_finance.py::TestFinance::test_cryptocurrency_symbol[fr]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company[es-mx]

test_finance.py::TestFinance::test_company[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[de-at]

test_finance.py::TestFinance::test_bank[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_str[en-ca]

test_finance.py::TestFinance::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[et]

test_finance.py::TestFinance::test_stock_name[et]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_stock_exchange[pt-br]

test_finance.py::TestFinance::test_stock_exchange[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[zh]

test_finance.py::TestFinance::test_cryptocurrency_symbol[zh]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_bank[hr]

test_finance.py::TestFinance::test_bank[hr]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Addiko Bank D.D.', 'Agram Banka D.D.', 'Banka Kovanica D.D.', 'Bks Bank Ag, Glavna Podružnica Hrvatska', 'Croatia Banka D.D.', 'Erste & Steiermärkische Bank D.D.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[nl-be-True-abbr]

test_finance.py::TestFinance::test_company_type[nl-be-True-abbr]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[ja]

test_finance.py::TestFinance::test_company[ja]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['キッツ', '神戸製鋼所', '住友軽金属', '同和鉱業', '日鉱金属加工', '日立電線', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[nl-be]

test_finance.py::TestFinance::test_cryptocurrency_symbol[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_iso_code[ja]

test_finance.py::TestFinance::test_currency_iso_code[ja]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_company_type[et-False-title]

test_finance.py::TestFinance::test_company_type[et-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['täisühing', 'usaldusühing', 'osaühing', 'aktsiaselts', 'tulundusühistu', 'füüsilisest isikust ettevõtja ehk FIE']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_exchange[tr]

test_finance.py::TestFinance::test_stock_exchange[tr]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_name[es-mx]

test_finance.py::TestFinance::test_stock_name[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[en-ca]

test_finance.py::TestFinance::test_stock_ticker[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[el-False-title]

test_finance.py::TestFinance::test_company_type[el-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Ανώνυμη Εταιρεία', 'Ανώνυμη Ναυτιλιακή εταιρεία', 'Εταιρεία Περιορισμένης Ευθύνης', 'Ετερόρρυθμη Εταιρεία', 'Ιδιωτική Κεφαλαιουχική Εταιρία', 'Καλαθοσφαιρικές Ανώνυμες Επιχειρήσεις', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[zh]

test_finance.py::TestFinance::test_bank[zh]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Industrial and Commercial Bank of China Limited (ICBC)', 'China Construction Bank Corporation (CCB)', 'Agricultural ...k of China Limited (BOC)', 'China Development Bank Corporation (CDB)', 'Bank of Communications Co., Ltd. (BoCom)', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[en-au-False-title]

test_finance.py::TestFinance::test_company_type[en-au-False-title]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[it]

test_finance.py::TestFinance::test_stock_exchange[it]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[es-mx]

test_finance.py::TestFinance::test_cryptocurrency_symbol[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[de]

test_finance.py::TestFinance::test_cryptocurrency_symbol[de]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_bank[cs]

test_finance.py::TestFinance::test_bank[cs]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['AXA Bank', 'AXA pojišťovna', 'Air Bank', 'Allianz Bank', 'Allianz pojišťovna', 'BNP Paribas', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[kk]

test_finance.py::TestFinance::test_cryptocurrency_symbol[kk]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company_type[hr-False-title]

test_finance.py::TestFinance::test_company_type[hr-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['dioničko društvo', 'društvo s ograničenom odgovornošću', 'javna ustanova', 'javno dioničko društvo', 'komanditno društvo', 'udruga', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[pt-br-True-abbr]

test_finance.py::TestFinance::test_company_type[pt-br-True-abbr]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[is]

test_finance.py::TestFinance::test_price[is]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_price[pt]

test_finance.py::TestFinance::test_price[pt]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[it]

test_finance.py::TestFinance::test_currency_iso_code[it]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_symbol[hu]

test_finance.py::TestFinance::test_currency_symbol[hu]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_str[es-mx]

test_finance.py::TestFinance::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[ko-False-title]

test_finance.py::TestFinance::test_company_type[ko-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['유한회사', '유한책임회사', '주식회사', '합명회사', '합자회사']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[uk]

test_finance.py::TestFinance::test_currency_iso_code[uk]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_company_type[tr-False-title]

test_finance.py::TestFinance::test_company_type[tr-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Limited Şirketi', 'Holding', 'Anonim Şirketi']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[fr-True-abbr]

test_finance.py::TestFinance::test_company_type[fr-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['FCP', 'SEL', 'EI', 'EURL', 'SICAV', 'GIE', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[es-mx]

test_finance.py::TestFinance::test_currency_iso_code[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[nl]

test_finance.py::TestFinance::test_cryptocurrency_symbol[nl]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company[de-ch]

test_finance.py::TestFinance::test_company[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[sk]

test_finance.py::TestFinance::test_stock_exchange[sk]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_name[hr]

test_finance.py::TestFinance::test_stock_name[hr]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[hu]

test_finance.py::TestFinance::test_cryptocurrency_symbol[hu]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_currency_symbol[sv]

test_finance.py::TestFinance::test_currency_symbol[sv]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company_type[uk-True-abbr]

test_finance.py::TestFinance::test_company_type[uk-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['ПАТ', 'ПрАТ', 'ТОВ', 'ТДВ', 'КТ', 'ДАТ', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[da]

test_finance.py::TestFinance::test_stock_ticker[da]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[no]

test_finance.py::TestFinance::test_currency_iso_code[no]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_bank[is]

test_finance.py::TestFinance::test_bank[is]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Arion Banki hf.', 'Islandsbanki hf.', 'Landsbankinn hf.']

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_symbol[el]

test_finance.py::TestFinance::test_currency_symbol[el]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company[pt]

test_finance.py::TestFinance::test_company[pt]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Altri', 'Banco Comercial Português', 'Bascol', 'Bial', 'Biotecnol', 'CMS-Helmets', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_name[nl-be]

test_finance.py::TestFinance::test_stock_name[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[uk]

test_finance.py::TestFinance::test_cryptocurrency_symbol[uk]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[en-ca]

test_finance.py::TestFinance::test_price[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[es-mx]

test_finance.py::TestFinance::test_bank[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[de-at]

test_finance.py::TestFinance::test_price[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[en-gb]

test_finance.py::TestFinance::test_stock_exchange[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[fi]

test_finance.py::TestFinance::test_company[fi]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['9lives', 'A-insinöörit', 'A-katsastus', 'A. honko', 'Aalto university executive education', 'Adara pakkaus', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_ticker[kk]

test_finance.py::TestFinance::test_stock_ticker[kk]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_ticker[sk]

test_finance.py::TestFinance::test_stock_ticker[sk]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_company_type[ja-True-abbr]

test_finance.py::TestFinance::test_company_type[ja-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['株式会社', '有限会社', '合資会社', '合名会社']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_exchange[es-mx]

test_finance.py::TestFinance::test_stock_exchange[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[fr]

test_finance.py::TestFinance::test_stock_name[fr]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_symbol[es-mx]

test_finance.py::TestFinance::test_currency_symbol[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[no]

test_finance.py::TestFinance::test_stock_exchange[no]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[de-ch]

test_finance.py::TestFinance::test_currency_iso_code[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[is-True-abbr]

test_finance.py::TestFinance::test_company_type[is-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['ehf.', 'hf.', 'ohf.', 'sf.']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_symbol[zh]

test_finance.py::TestFinance::test_currency_symbol[zh]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_bank[sk]

test_finance.py::TestFinance::test_bank[sk]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Slovenská sporiteľňa, a.s.', 'Tatra banka, a.s.', 'Všeobecná úverová banka, a.s.', 'UniCredit Bank Czech Republic and Slovakia, a.s.', 'ČSOB, a.s.', 'Sberbank Slovensko, a.s.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_stock_ticker[en-au]

test_finance.py::TestFinance::test_stock_ticker[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[hu]

test_finance.py::TestFinance::test_stock_ticker[hu]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_price[de-ch]

test_finance.py::TestFinance::test_price[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[fi-True-abbr]

test_finance.py::TestFinance::test_company_type[fi-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Ay', 'EEIG', 'Ky', 'Oy', 'Oyj', 'Ry', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_price[zh]

test_finance.py::TestFinance::test_price[zh]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_currency_symbol[fi]

test_finance.py::TestFinance::test_currency_symbol[fi]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company_type[de-ch-False-title]

test_finance.py::TestFinance::test_company_type[de-ch-False-title]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[ja]

test_finance.py::TestFinance::test_bank[ja]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['三菱UFJフィナンシャル・グループ', '三井住友フィナンシャルグループ', 'みずほフィナンシャルグループ', 'りそなグループ', '三菱UFJ信託銀行', '北海道銀行', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[fa]

test_finance.py::TestFinance::test_currency_iso_code[fa]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_price[kk]

test_finance.py::TestFinance::test_price[kk]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[et-True-abbr]

test_finance.py::TestFinance::test_company_type[et-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['OÜ', 'AS', 'FIE', 'TÜ']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[ru-False-title]

test_finance.py::TestFinance::test_company_type[ru-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Публичное акционерное общество', 'Акционерное общество', 'Общество с ограниченной ответственностью']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[kk-True-abbr]

test_finance.py::TestFinance::test_company_type[kk-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['ЖШС', 'ЖК', 'ЖАҚ', 'ААҚ']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_name[sv]

test_finance.py::TestFinance::test_stock_name[sv]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_price[es]

test_finance.py::TestFinance::test_price[es]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_bank[fa]

test_finance.py::TestFinance::test_bank[fa]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Bank Melli Iran', 'Bank Mellat', 'Bank Saderat Iran', 'Export Development Bank of Iran', 'Bank Pasargad', 'Karafarin Bank', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[cs-True-abbr]

test_finance.py::TestFinance::test_company_type[cs-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['a.s.', 'akc.', 'k.s.', 'o.p.s.', 's.p.', 's.r.o.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[uk]

test_finance.py::TestFinance::test_stock_ticker[uk]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_ticker[fr]

test_finance.py::TestFinance::test_stock_ticker[fr]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_ticker[et]

test_finance.py::TestFinance::test_stock_ticker[et]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_ticker[no]

test_finance.py::TestFinance::test_stock_ticker[no]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_exchange[ko]

test_finance.py::TestFinance::test_stock_exchange[ko]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_company_type[fa-False-title]

test_finance.py::TestFinance::test_company_type[fa-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['شرکت', 'سهامی عام\u200c', 'سهامی خاص', 'شرکت با مسئولیت محدود', 'شرکت تضامنی', 'شرکت مختلط غیرسهامی', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[ko-True-abbr]

test_finance.py::TestFinance::test_company_type[ko-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['(유)', 'LLC', '(주)', '(합)', '(자)']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[hr]

test_finance.py::TestFinance::test_stock_ticker[hr]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_price_in_btc[4-16]

test_finance.py::TestFinance::test_price_in_btc[4-16]
self = 
_finance = 
minimum = 4, maximum = 16

    @pytest.mark.parametrize(
        "minimum, maximum",
        [
            (1, 2),
            (2, 4),
            (4, 16),
        ],
    )
    def test_price_in_btc(self, _finance, minimum, maximum):
        price = _finance.price_in_btc(minimum, maximum)
>       assert float(price) >= minimum
E       TypeError: float() argument must be a string or a real number, not 'NoneType'

tests/test_providers/test_finance.py:92: TypeError

test_finance.py::TestFinance::test_stock_ticker[fa]

test_finance.py::TestFinance::test_stock_ticker[fa]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_exchange[de-at]

test_finance.py::TestFinance::test_stock_exchange[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[pl]

test_finance.py::TestFinance::test_stock_ticker[pl]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_exchange[de-ch]

test_finance.py::TestFinance::test_stock_exchange[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[et]

test_finance.py::TestFinance::test_cryptocurrency_symbol[et]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[pl]

test_finance.py::TestFinance::test_currency_iso_code[pl]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_price_in_btc[2-4]

test_finance.py::TestFinance::test_price_in_btc[2-4]
self = 
_finance = 
minimum = 2, maximum = 4

    @pytest.mark.parametrize(
        "minimum, maximum",
        [
            (1, 2),
            (2, 4),
            (4, 16),
        ],
    )
    def test_price_in_btc(self, _finance, minimum, maximum):
        price = _finance.price_in_btc(minimum, maximum)
>       assert float(price) >= minimum
E       TypeError: float() argument must be a string or a real number, not 'NoneType'

tests/test_providers/test_finance.py:92: TypeError

test_finance.py::TestFinance::test_company_type[en-ca-False-title]

test_finance.py::TestFinance::test_company_type[en-ca-False-title]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[it-False-title]

test_finance.py::TestFinance::test_company_type[it-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Società semplice', 'Società in nome collettivo', 'Società in accomandita semplice', 'Società per azioni', 'Società in accomandita per azioni', 'Società a responsabilità limitata', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[et]

test_finance.py::TestFinance::test_bank[et]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Swedbank AS', 'SEB Pank AS', 'LHV Pank AS', 'Luminor Bank AS', 'Coop Pank AS', 'Citadele Banka Eesti Filiaal', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-ca]

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[hr]

test_finance.py::TestFinance::test_cryptocurrency_symbol[hr]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[en-gb]

test_finance.py::TestFinance::test_price[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[it]

test_finance.py::TestFinance::test_currency_symbol[it]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_bank[en-au]

test_finance.py::TestFinance::test_bank[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[zh-True-abbr]

test_finance.py::TestFinance::test_company_type[zh-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['公司', '有限公司', '总公司', '责任公司', '集团']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[nl-be]

test_finance.py::TestFinance::test_bank[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[en-gb]

test_finance.py::TestFinance::test_stock_ticker[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[el]

test_finance.py::TestFinance::test_stock_exchange[el]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_company_type[de-True-abbr]

test_finance.py::TestFinance::test_company_type[de-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['AG', 'GEN', 'GbR', 'GmbH', 'GmbH & Co. KG', 'KGaA', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company[en-gb]

test_finance.py::TestFinance::test_company[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[is]

test_finance.py::TestFinance::test_currency_symbol[is]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_name[pt-br]

test_finance.py::TestFinance::test_stock_name[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[ko]

test_finance.py::TestFinance::test_price[ko]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_bank[ru]

test_finance.py::TestFinance::test_bank[ru]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Абсолют Банк', 'Авангард Банк', 'Ак Барс Банк', 'Альфа-Банк', 'Банк Бинбанк', 'Банк Восточный', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_price[fi]

test_finance.py::TestFinance::test_price[fi]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_ticker[nl]

test_finance.py::TestFinance::test_stock_ticker[nl]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_name[de-at]

test_finance.py::TestFinance::test_stock_name[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[ru]

test_finance.py::TestFinance::test_stock_name[ru]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_bank[it]

test_finance.py::TestFinance::test_bank[it]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Intesa Sanpaolo S.p.A.', 'Unicredit S.p.A.', 'Credito Emiliano S.p.A.', 'Banco BPM S.p.A.', 'Credito Valtellinese S.C.', 'Banca di Credito Cooperativo di Roma Scrl', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[pl-False-title]

test_finance.py::TestFinance::test_company_type[pl-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Spółka akcyjna', 'Spółka cywilna', 'Spółka jawna', 'Spółka komandytowa', 'Spółka komandytowo-akcyjna', 'Spółka partnerska', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[es-mx-True-abbr]

test_finance.py::TestFinance::test_company_type[es-mx-True-abbr]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[sv-False-title]

test_finance.py::TestFinance::test_company_type[sv-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Aktiebolag', 'Publikt aktiebolag', 'Ekonomisk förening', 'Handelsbolag', 'Kommanditbolag', 'Enskild firma', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[hu]

test_finance.py::TestFinance::test_bank[hu]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Magyar Nemzeti Bank', 'OTP Bank Nyrt.', 'K&H Bank Zrt.', 'Erste Bank Hungary Zrt.', 'Raiffeisen Bank Zrt.', 'UniCredit Bank Hungary Zrt.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[hu-False-title]

test_finance.py::TestFinance::test_company_type[hu-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Egyéni vállalkozó', 'Egyéni cég', 'Betéti társaság', 'Közkereseti társaság', 'Korlátolt felelősségű társaság', 'Közhasznú társaság', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[pt-False-title]

test_finance.py::TestFinance::test_company_type[pt-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Cooperativa de Responsabilidade Limitada', 'Sociedade Anónima', 'Sociedade Abert', 'Sociedade Fechada', 'Limitada', 'Sociedade Gestora de Participações Sociais']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[de-at]

test_finance.py::TestFinance::test_currency_iso_code[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[fi]

test_finance.py::TestFinance::test_bank[fi]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Aktia Bank plc', 'Danske Bank plc', 'Handelsbanken', 'Nordea Bank', 'Oma Säästöpankki', 'OP Financial Group', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[el-True-abbr]

test_finance.py::TestFinance::test_company_type[el-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['EΠΕ', 'ΑΕ', 'ΑΝΕ', 'ΕΕ', 'ΙΚΕ', 'ΚΑΕ', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[en-ca]

test_finance.py::TestFinance::test_bank[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[fr-False-title]

test_finance.py::TestFinance::test_company_type[fr-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       assert None in ['Fonds commun de placement', "Société d'exercice libéral", 'Entreprise individuelle', 'Entreprise unipersonnelle à responsabilité limitée', "Société d'investissement à capital variable", "Groupement d'intérêt économique", ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[sv]

test_finance.py::TestFinance::test_stock_ticker[sv]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_exchange[fr]

test_finance.py::TestFinance::test_stock_exchange[fr]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_company[sv]

test_finance.py::TestFinance::test_company[sv]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['3H Biomedical', 'AB Svensk Filmindustri', 'ABU Garcia', 'AGA', 'AP&T', 'ASEA', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company[sk]

test_finance.py::TestFinance::test_company[sk]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Kvetináreň', 'Paštikáreň', 'Záhradkáreň', 'Šalátičkáreň', 'Šróbikáreň']

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[en-gb]

test_finance.py::TestFinance::test_currency_iso_code[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_iso_code[is]

test_finance.py::TestFinance::test_currency_iso_code[is]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_company_type[sk-False-title]

test_finance.py::TestFinance::test_company_type[sk-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Akciová spoločnosť', 'Spoločnosť s ručením obmedzeným']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_symbol[tr]

test_finance.py::TestFinance::test_currency_symbol[tr]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_exchange[zh]

test_finance.py::TestFinance::test_stock_exchange[zh]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[is]

test_finance.py::TestFinance::test_cryptocurrency_symbol[is]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company[de-at]

test_finance.py::TestFinance::test_company[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[sk]

test_finance.py::TestFinance::test_price[sk]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[da-False-title]

test_finance.py::TestFinance::test_company_type[da-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Aktieselskab', 'Andelsselskab med begrænset ansvar', 'Anpartsselskab', 'Enkeltmandsvirksomhed', 'Forening', 'Forening med begrænset ansvar', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_price[et]

test_finance.py::TestFinance::test_price[et]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[de-at-False-title]

test_finance.py::TestFinance::test_company_type[de-at-False-title]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_iso_code[pt]

test_finance.py::TestFinance::test_currency_iso_code[pt]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_bank[fr]

test_finance.py::TestFinance::test_bank[fr]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['BNP Paribas', 'Crédit Agricole', 'Société Générale', 'Groupe BPCE', 'Crédit Mutuel Alliance Fédérale', 'La Banque Postale', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_symbol[no]

test_finance.py::TestFinance::test_currency_symbol[no]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company_type[is-False-title]

test_finance.py::TestFinance::test_company_type[is-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Einkahlutafélag', 'Einstaklingsfyrirtæki', 'Hlutafélag', 'Opinbert hlutafélag', 'Sameignarfélag', 'Samlagsfélag', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[hr]

test_finance.py::TestFinance::test_currency_iso_code[hr]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_company_type[es-False-title]

test_finance.py::TestFinance::test_company_type[es-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Sociedad Anónima', 'Sociedad Limitada', 'Sociedad Limitada Nueva Empres', 'Sociedad Anónima Deportiva', 'Sociedad Limitada Laboral', 'Sociedad Colectiva', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[no-True-abbr]

test_finance.py::TestFinance::test_company_type[no-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['ASA', 'AS', 'ANS', 'BA', 'BL', 'DA', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[fa]

test_finance.py::TestFinance::test_cryptocurrency_symbol[fa]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_currency_symbol[da]

test_finance.py::TestFinance::test_currency_symbol[da]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[el]

test_finance.py::TestFinance::test_cryptocurrency_symbol[el]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[pl]

test_finance.py::TestFinance::test_price[pl]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[zh-False-title]

test_finance.py::TestFinance::test_company_type[zh-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['公司', '有限公司', '总公司', '责任公司', '集团']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_symbol[de-at]

test_finance.py::TestFinance::test_currency_symbol[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_str[en-au]

test_finance.py::TestFinance::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[pt-br]

test_finance.py::TestFinance::test_cryptocurrency_symbol[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[sk]

test_finance.py::TestFinance::test_cryptocurrency_symbol[sk]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_currency_symbol[kk]

test_finance.py::TestFinance::test_currency_symbol[kk]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company[tr]

test_finance.py::TestFinance::test_company[tr]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Acıselsan Acıpayam Selüloz', 'Adana', 'Adel Kalemcilik Ticaret ve Sanayi', 'Adese Alışveriş Merkezleri Ticaret A.Ş', 'Afyon', 'Akbank', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_price[uk]

test_finance.py::TestFinance::test_price[uk]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_company_type[nl-True-abbr]

test_finance.py::TestFinance::test_company_type[nl-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['VOF', 'C.V.', 'BV', 'N.V.']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company[it]

test_finance.py::TestFinance::test_company[it]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['55dsl', 'ALAN', 'Abici', 'Air Dolomiti', 'Air Italy', 'Air One', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_currency_symbol[en-au]

test_finance.py::TestFinance::test_currency_symbol[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[fa]

test_finance.py::TestFinance::test_stock_exchange[fa]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_ticker[ko]

test_finance.py::TestFinance::test_stock_ticker[ko]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[de]

test_finance.py::TestFinance::test_currency_iso_code[de]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_price[nl-be]

test_finance.py::TestFinance::test_price[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[ja-False-title]

test_finance.py::TestFinance::test_company_type[ja-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['株式会社', '有限会社', '合資会社', '合名会社']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company[is]

test_finance.py::TestFinance::test_company[is]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['365 - miðlar', 'Actavis Group', 'Advania', 'Arctic Trucks Ísland', 'Bakkavör Group', 'BankNordik', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[sv]

test_finance.py::TestFinance::test_currency_iso_code[sv]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[es]

test_finance.py::TestFinance::test_currency_iso_code[es]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_company[fr]

test_finance.py::TestFinance::test_company[fr]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['ACMAT', 'ALTEN', 'AT Internet', 'Adixen Vacuum Products', 'AgileBio', 'Air France', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company[fa]

test_finance.py::TestFinance::test_company[fa]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['شرکت ملی نفت ایران', 'معادن ایران', 'سازمان نوسازی ', 'ایران خودرو', 'امیدان تجارت کیش ', 'سایپا', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_bank[el]

test_finance.py::TestFinance::test_bank[el]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Αlpha Βank Α.Ε.', 'Eurobank Ergasias Α.Ε.', 'National Bank of Greece Α.Ε.', 'Piraeus Bank Α.Ε.', 'Attica Bank Α.Ε.', 'Cooperative Bank of Chania Α.Ε.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[fi]

test_finance.py::TestFinance::test_cryptocurrency_symbol[fi]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company[zh]

test_finance.py::TestFinance::test_company[zh]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['中国石油', '中国建设银行', '中国石化', '中国移动(香港)', '和记黄埔', '中国电信', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_ticker[nl-be]

test_finance.py::TestFinance::test_stock_ticker[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[en-au-True-abbr]

test_finance.py::TestFinance::test_company_type[en-au-True-abbr]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[es-mx-False-title]

test_finance.py::TestFinance::test_company_type[es-mx-False-title]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[zh]

test_finance.py::TestFinance::test_stock_ticker[zh]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_ticker[ja]

test_finance.py::TestFinance::test_stock_ticker[ja]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_company_type[en-ca-True-abbr]

test_finance.py::TestFinance::test_company_type[en-ca-True-abbr]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[da]

test_finance.py::TestFinance::test_company[da]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['A. Enggaard', 'A. Enggaard Holding', 'A.P. Møller Holding', 'AVK', 'Actona', 'Andelsbevægelsen i Danmark', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_name[en-gb]

test_finance.py::TestFinance::test_stock_name[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[ru]

test_finance.py::TestFinance::test_stock_ticker[ru]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[zh]

test_finance.py::TestFinance::test_currency_iso_code[zh]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_stock_exchange[kk]

test_finance.py::TestFinance::test_stock_exchange[kk]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_bank[ko]

test_finance.py::TestFinance::test_bank[ko]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['국민은행', '신한은행', '하나은행', '우리은행', '기업은행', 'SC제일은행', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_stock_exchange[fi]

test_finance.py::TestFinance::test_stock_exchange[fi]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_company[hu]

test_finance.py::TestFinance::test_company[hu]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Borsod Brewery', 'Dreher Brewery', 'Győri Keksz', 'Hell Energy', 'Pick Szeged', 'Pécs Brewery', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_price[es-mx]

test_finance.py::TestFinance::test_price[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_str[de-ch]

test_finance.py::TestFinance::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[zh]

test_finance.py::TestFinance::test_stock_name[zh]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_stock_name[fa]

test_finance.py::TestFinance::test_stock_name[fa]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[it]

test_finance.py::TestFinance::test_cryptocurrency_symbol[it]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_stock_name[el]

test_finance.py::TestFinance::test_stock_name[el]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company_type[pt-True-abbr]

test_finance.py::TestFinance::test_company_type[pt-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['CRL', 'S.A.', 'S.A.', 'S.F.', 'Lda.', 'SGPS']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[tr]

test_finance.py::TestFinance::test_bank[tr]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Akbank T.A.S.', 'Turkiye Garanti Bankasi A.S.', 'Turkiye Is Bankasi A.S.', 'Turkiye Halk Bankasi A.S.', 'Turkiye Vakiflar Bankasi T.A.O.', 'Yapi ve Kredi Bankasi A.S.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[de-ch-True-abbr]

test_finance.py::TestFinance::test_company_type[de-ch-True-abbr]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[pt-br]

test_finance.py::TestFinance::test_currency_symbol[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[uk]

test_finance.py::TestFinance::test_currency_symbol[uk]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_exchange[pl]

test_finance.py::TestFinance::test_stock_exchange[pl]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_bank[pl]

test_finance.py::TestFinance::test_bank[pl]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Bank Polska Kasa Opieki SA', 'Bank Pekao SA', 'Bank Gospodarstwa Krajowego', 'Santander Bank Polska SA', 'mBank SA', 'ING Bank Śląski SA', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_currency_symbol[de]

test_finance.py::TestFinance::test_currency_symbol[de]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_bank[pt]

test_finance.py::TestFinance::test_bank[pt]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Banco Comercial Português, SA', 'Caixa Geral de Depósitos, SA', 'Novo Banco, SA', 'Banco Santander Totta, SA', 'Banco BPI, SA', 'Banco Português de Investimento, SA', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company[no]

test_finance.py::TestFinance::test_company[no]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['A Wilhelmsen', 'A-K Holding Auctus', 'A-Pressen', 'ABB Holding', 'ABG Sundal Colliera', 'AF Gruppena', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_exchange[ja]

test_finance.py::TestFinance::test_stock_exchange[ja]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[en-au]

test_finance.py::TestFinance::test_currency_iso_code[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[ru]

test_finance.py::TestFinance::test_company[ru]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Crocus Group', 'Dixis', 'Genser', 'Google', 'IBS', 'JFC', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_iso_code

test_finance.py::TestFinance::test_cryptocurrency_iso_code
self = 
_finance = 

    def test_cryptocurrency_iso_code(self, _finance):
        result = _finance.cryptocurrency_iso_code()
>       assert result in CRYPTOCURRENCY_ISO_CODES
E       AssertionError: assert None in ['BCH', 'BNB', 'BTC', 'DASH', 'DOT', 'EOS', ...]

tests/test_providers/test_finance.py:49: AssertionError

test_finance.py::TestFinance::test_price[pt-br]

test_finance.py::TestFinance::test_price[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_iso_code[cs]

test_finance.py::TestFinance::test_currency_iso_code[cs]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_currency_symbol[en-ca]

test_finance.py::TestFinance::test_currency_symbol[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_ticker[es-mx]

test_finance.py::TestFinance::test_stock_ticker[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_price[de]

test_finance.py::TestFinance::test_price[de]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_ticker[el]

test_finance.py::TestFinance::test_stock_ticker[el]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_stock_name[kk]

test_finance.py::TestFinance::test_stock_name[kk]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company_type[kk-False-title]

test_finance.py::TestFinance::test_company_type[kk-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Жауапкершілігі шектеулі серіктестік', 'Жеке кәсіпкер', 'Жабық акционерлік қоғамы', 'Ашық акционерлік қоғамы']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[de-ch]

test_finance.py::TestFinance::test_stock_ticker[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[hu]

test_finance.py::TestFinance::test_stock_name[hu]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company_type[hr-True-abbr]

test_finance.py::TestFinance::test_company_type[hr-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['d.d.', 'd.o.o.', 'j.d.o.o.', 'j.u.', 'k.d.', 's.d.d.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_exchange[hu]

test_finance.py::TestFinance::test_stock_exchange[hu]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_currency_symbol[en-gb]

test_finance.py::TestFinance::test_currency_symbol[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[de-at-True-abbr]

test_finance.py::TestFinance::test_company_type[de-at-True-abbr]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[it-True-abbr]

test_finance.py::TestFinance::test_company_type[it-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['S.s.', 'S.n.c.', 'S.a.s.', 'S.p.a.', 'S.a.p.a.', 'S.r.l.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company[kk]

test_finance.py::TestFinance::test_company[kk]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['ADVANCE MANAGEMENT', 'ADVANCED BUSINESS TECHNOLOGIES', 'AFL-ASTANA', 'AISSANA', 'AJE&N', 'ASTANA ADVANCE', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company[et]

test_finance.py::TestFinance::test_company[et]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['A.L.A.R.A.', 'A. Le Coq Group', 'A. Tõnisson & Ko', 'ABB AS', 'Abja Linavabrik', 'AB Kindlustuse Grupp', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_stock_exchange[is]

test_finance.py::TestFinance::test_stock_exchange[is]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-gb]

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[es-True-abbr]

test_finance.py::TestFinance::test_company_type[es-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['S.A.', 'S.L.', 'S.L.N.E.', 'S.A.D.', 'S.L.L.', 'S.C.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_company_type[cs-False-title]

test_finance.py::TestFinance::test_company_type[cs-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Akciová společnost', 'Komanditní společnost', 'Obecně prospěšná společnost', 'Společnost s ručením omezeným', 'Státní podnik', 'Veřejná obchodní společnost', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_exchange[et]

test_finance.py::TestFinance::test_stock_exchange[et]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_ticker[pt]

test_finance.py::TestFinance::test_stock_ticker[pt]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_company[en-au]

test_finance.py::TestFinance::test_company[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[fa-True-abbr]

test_finance.py::TestFinance::test_company_type[fa-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['شرکت', 'سازمان']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[nl]

test_finance.py::TestFinance::test_bank[nl]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['ABN AMRO Bank N.V.', 'Rabobank Nederland', 'ING Bank N.V.', 'De Volksbank N.V.', 'Coöperatieve Rabobank U.A.', 'F. van Lanschot Bankiers N.V.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_stock_name[tr]

test_finance.py::TestFinance::test_stock_name[tr]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_stock_ticker[fi]

test_finance.py::TestFinance::test_stock_ticker[fi]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[ru]

test_finance.py::TestFinance::test_cryptocurrency_symbol[ru]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_price[no]

test_finance.py::TestFinance::test_price[no]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_currency_symbol[fa]

test_finance.py::TestFinance::test_currency_symbol[fa]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_currency_symbol[nl]

test_finance.py::TestFinance::test_currency_symbol[nl]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_exchange[en-ca]

test_finance.py::TestFinance::test_stock_exchange[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[ko]

test_finance.py::TestFinance::test_stock_name[ko]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[en-ca]

test_finance.py::TestFinance::test_currency_iso_code[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_bank[da]

test_finance.py::TestFinance::test_bank[da]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Danske Bank', 'Jyske Bank', 'Sydbank', 'Nykredit Bank', 'Nordea Bank Danmark', 'Arbejdernes Landsbank', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[sk-True-abbr]

test_finance.py::TestFinance::test_company_type[sk-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['a.s.', 's.r.o.']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_bank[es]

test_finance.py::TestFinance::test_bank[es]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Banco Santander, S.A.', 'Banco Bilbao Vizcaya Argentaria, S.A.', 'CaixaBank, S.A.', 'Banco Sabadell, S.A.', 'Bankinter, S.A.', 'Banco Popular Español, S.A.', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_company_type[en-gb-True-abbr]

test_finance.py::TestFinance::test_company_type[en-gb-True-abbr]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_iso_code[fi]

test_finance.py::TestFinance::test_currency_iso_code[fi]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_bank[pt-br]

test_finance.py::TestFinance::test_bank[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[de-ch]

test_finance.py::TestFinance::test_cryptocurrency_symbol[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[et]

test_finance.py::TestFinance::test_currency_symbol[et]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_str[nl-be]

test_finance.py::TestFinance::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[pt]

test_finance.py::TestFinance::test_stock_exchange[pt]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[da]

test_finance.py::TestFinance::test_cryptocurrency_symbol[da]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_bank[uk]

test_finance.py::TestFinance::test_bank[uk]
self = 
finance = 

    def test_bank(self, finance):
        result = finance.bank()
>       assert result in finance._dataset["banks"]
E       AssertionError: assert None in ['Абанк', 'Аваль', 'Альфа-Банк', 'Альянс', 'Асвіо Банк', 'Банк Восток', ...]

tests/test_providers/test_finance.py:72: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-au]

test_finance.py::TestFinance::test_cryptocurrency_symbol[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[sk]

test_finance.py::TestFinance::test_stock_name[sk]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company[de]

test_finance.py::TestFinance::test_company[de]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Agfa', 'Allianz', 'Axa', 'Bayer', 'DHL', 'DOVO Solingen', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_price[fa]

test_finance.py::TestFinance::test_price[fa]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_price[en-au]

test_finance.py::TestFinance::test_price[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[hr]

test_finance.py::TestFinance::test_company[hr]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['ACI d.d.', 'Ad Plastik', 'Adriatic Croatia International Club', 'Adris grupa', 'Agrokor', 'Atlantic grupa', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company_type[no-False-title]

test_finance.py::TestFinance::test_company_type[no-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Allmennaksjeselskap', 'Aksjeselskap', 'Ansvarlig selskap', 'Selskap med begrenset ansvar', 'Borettslag', 'Selskap med delt ansvar', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_price[hu]

test_finance.py::TestFinance::test_price[hu]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_name[pl]

test_finance.py::TestFinance::test_stock_name[pl]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_price[fr]

test_finance.py::TestFinance::test_price[fr]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_stock_name[is]

test_finance.py::TestFinance::test_stock_name[is]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company[pt-br]

test_finance.py::TestFinance::test_company[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_cryptocurrency_symbol[pt]

test_finance.py::TestFinance::test_cryptocurrency_symbol[pt]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_str[de-at]

test_finance.py::TestFinance::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[it]

test_finance.py::TestFinance::test_stock_name[it]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_company_type[sv-True-abbr]

test_finance.py::TestFinance::test_company_type[sv-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['AB', 'AB', 'Ek. för.', 'HB', 'KB', 'Enskild firma', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[cs]

test_finance.py::TestFinance::test_cryptocurrency_symbol[cs]
self = 
finance = 

    def test_cryptocurrency_symbol(self, finance):
        result = finance.cryptocurrency_symbol()
>       assert result in CRYPTOCURRENCY_SYMBOLS
E       AssertionError: assert None in ['₿', 'Ł', 'Ξ']

tests/test_providers/test_finance.py:57: AssertionError

test_finance.py::TestFinance::test_company[el]

test_finance.py::TestFinance::test_company[el]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['ANEK Lines', 'Alpha Bank', 'Alumil S.A', 'Attica Bank', 'Eurobank', 'Forthnet', ...]

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_currency_symbol[nl-be]

test_finance.py::TestFinance::test_currency_symbol[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_name[cs]

test_finance.py::TestFinance::test_stock_name[cs]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_str[pt-br]

test_finance.py::TestFinance::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[da-True-abbr]

test_finance.py::TestFinance::test_company_type[da-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['A.M.B.A.', 'A/S', 'ApS', 'F.M.B.A.', 'G/S', 'I/S', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[it]

test_finance.py::TestFinance::test_stock_ticker[it]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[el]

test_finance.py::TestFinance::test_currency_iso_code[el]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_finance.py::TestFinance::test_stock_name[de]

test_finance.py::TestFinance::test_stock_name[de]
self = 
finance = 

    def test_stock_name(self, finance):
        result = finance.stock_name()
>       assert result in STOCK_NAMES
E       AssertionError: assert None in ['1-800 FLOWERS.COM', '10x Genomics', '111', '1347 Property Insurance Holdings', '180 Degree Capital Corp.', '1895 Bancorp of Wisconsin', ...]

tests/test_providers/test_finance.py:33: AssertionError

test_finance.py::TestFinance::test_currency_symbol[ko]

test_finance.py::TestFinance::test_currency_symbol[ko]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_price[el]

test_finance.py::TestFinance::test_price[el]
self = 
finance = 

    def test_price(self, finance):
        result = finance.price(minimum=100.00, maximum=1999.99)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_finance.py:80: AssertionError

test_finance.py::TestFinance::test_cryptocurrency_symbol[de-at]

test_finance.py::TestFinance::test_cryptocurrency_symbol[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company[cs]

test_finance.py::TestFinance::test_company[cs]
self = 
finance = 

    def test_company(self, finance):
        result = finance.company()
>       assert result in finance._dataset["company"]["name"]
E       AssertionError: assert None in ['Building Audit', 'DATASCAN']

tests/test_providers/test_finance.py:76: AssertionError

test_finance.py::TestFinance::test_company[en-ca]

test_finance.py::TestFinance::test_company[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[tr-True-abbr]

test_finance.py::TestFinance::test_company_type[tr-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Ltd. Şti.', 'Hld.', 'A.Ş.']

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_ticker[cs]

test_finance.py::TestFinance::test_stock_ticker[cs]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_company[nl-be]

test_finance.py::TestFinance::test_company[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[hr]

test_finance.py::TestFinance::test_currency_symbol[hr]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_exchange[ru]

test_finance.py::TestFinance::test_stock_exchange[ru]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_currency_symbol[fr]

test_finance.py::TestFinance::test_currency_symbol[fr]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_bank[en-gb]

test_finance.py::TestFinance::test_bank[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_stock_exchange[uk]

test_finance.py::TestFinance::test_stock_exchange[uk]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_ticker[is]

test_finance.py::TestFinance::test_stock_ticker[is]
self = 
finance = 

    def test_stock_ticker(self, finance):
        result = finance.stock_ticker()
>       assert result in STOCK_TICKERS
E       AssertionError: assert None in ['A', 'AA', 'AABA', 'AAC', 'AAL', 'AAMC', ...]

tests/test_providers/test_finance.py:29: AssertionError

test_finance.py::TestFinance::test_currency_symbol[ru]

test_finance.py::TestFinance::test_currency_symbol[ru]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_stock_ticker[pt-br]

test_finance.py::TestFinance::test_stock_ticker[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_company_type[hu-True-abbr]

test_finance.py::TestFinance::test_company_type[hu-True-abbr]
self = 
finance = 
abbr = True, key = 'abbr'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['e.v.', 'e.c.', 'bt.', 'kkt.', 'kft.', 'kht.', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_stock_exchange[hr]

test_finance.py::TestFinance::test_stock_exchange[hr]
self = 
finance = 

    def test_stock_exchange(self, finance):
        result = finance.stock_exchange()
>       assert result in STOCK_EXCHANGES
E       AssertionError: assert None in ['NYSE', 'NASDAQ', 'AMEX', 'JPX', 'SSE', 'HKEX', ...]

tests/test_providers/test_finance.py:37: AssertionError

test_finance.py::TestFinance::test_stock_name[en-ca]

test_finance.py::TestFinance::test_stock_name[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def finance(request):
>       return mimesis.Finance(request.param)

tests/conftest.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_finance.py::TestFinance::test_currency_symbol[sk]

test_finance.py::TestFinance::test_currency_symbol[sk]
self = 
finance = 

    def test_currency_symbol(self, finance):
        result = finance.currency_symbol()
>       assert result in CURRENCY_SYMBOLS.values()
E       AssertionError: assert None in dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$'])
E        +  where dict_values(['Kč', 'kr', '€', '€', 'Fr.', '€', '$', '$', '£', '$', '€', '$', '€', '﷼', '€', '€', '€', 'Ft', 'kr', '€', '¥', '₸', '₩', '€', '€', 'kr', 'zł', '€', 'R$', '₽', '€', 'kr', '₺', '₴', '¥', '$']) = ()
E        +    where  = {'cs': 'Kč', 'da': 'kr', 'de': '€', 'de-at': '€', ...}.values

tests/test_providers/test_finance.py:53: AssertionError

test_finance.py::TestFinance::test_company_type[de-False-title]

test_finance.py::TestFinance::test_company_type[de-False-title]
self = 
finance = 
abbr = False, key = 'title'

    @pytest.mark.parametrize(
        "abbr, key",
        [
            (False, "title"),
            (True, "abbr"),
        ],
    )
    def test_company_type(self, finance, abbr, key):
        result = finance.company_type(abbr=abbr)
>       assert result in finance._dataset["company"]["type"][key]
E       AssertionError: assert None in ['Aktiengesellschaft', 'Europäische Gesellschaft', 'Genossenschaft', 'Gesellschaft bürgerlichen Rechts', 'Gesellschaft mit beschränkter Haftung', 'Gesellschaft mit beschränkter Haftung & Compagnie Kommanditgesellschaft', ...]

tests/test_providers/test_finance.py:68: AssertionError

test_finance.py::TestFinance::test_currency_iso_code[sk]

test_finance.py::TestFinance::test_currency_iso_code[sk]
self = 
finance = 

    def test_currency_iso_code(self, finance):
        result1 = finance.currency_iso_code()
        result2 = finance.currency_iso_code()
        assert result1 == result2

        result = finance.currency_iso_code(allow_random=True)
>       assert result in CURRENCY_ISO_CODES
E       AssertionError: assert None in ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', ...]

tests/test_providers/test_finance.py:45: AssertionError

test_development.py::TestDevelopment::test_system_quality_attribute

test_development.py::TestDevelopment::test_system_quality_attribute
self = 
dev = 

    def test_system_quality_attribute(self, dev):
        result = dev.system_quality_attribute()
>       assert result in datasets.SYSTEM_QUALITY_ATTRIBUTES
E       AssertionError: assert None in ('accessibility', 'accountability', 'accuracy', 'adaptability', 'administrability', 'affordability', ...)
E        +  where ('accessibility', 'accountability', 'accuracy', 'adaptability', 'administrability', 'affordability', ...) = datasets.SYSTEM_QUALITY_ATTRIBUTES

tests/test_providers/test_development.py:25: AssertionError

test_development.py::TestDevelopment::test_stage

test_development.py::TestDevelopment::test_stage
self = 
dev = 

    def test_stage(self, dev):
>       assert dev.stage() in datasets.STAGES
E       AssertionError: assert None in ('Pre-alpha', 'Alpha', 'Beta', 'RC', 'Stable')
E        +  where None = stage()
E        +    where stage = .stage
E        +  and   ('Pre-alpha', 'Alpha', 'Beta', 'RC', 'Stable') = datasets.STAGES

tests/test_providers/test_development.py:46: AssertionError

test_development.py::TestDevelopment::test_str

test_development.py::TestDevelopment::test_str
self = 
dev = 

    def test_str(self, dev):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(dev))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_development.py:17: AssertionError

test_development.py::TestDevelopment::test_license

test_development.py::TestDevelopment::test_license
self = 
dev = 

    def test_license(self, dev):
        result = dev.software_license()
>       assert result in datasets.LICENSES
E       AssertionError: assert None in ['Apache License, 2.0 (Apache-2.0)', 'The BSD 3-Clause License', 'The BSD 2-Clause License', 'GNU General Public License (GPL)', 'General Public License (LGPL)', 'MIT License (MIT)', ...]
E        +  where ['Apache License, 2.0 (Apache-2.0)', 'The BSD 3-Clause License', 'The BSD 2-Clause License', 'GNU General Public License (GPL)', 'General Public License (LGPL)', 'MIT License (MIT)', ...] = datasets.LICENSES

tests/test_providers/test_development.py:21: AssertionError

test_development.py::TestDevelopment::test_version

test_development.py::TestDevelopment::test_version
self = 
dev = 

    def test_version(self, dev):
>       result = dev.version().split(".")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_development.py:32: AttributeError

test_development.py::TestDevelopment::test_calver

test_development.py::TestDevelopment::test_calver
self = 
dev = 

    def test_calver(self, dev):
        calver = dev.calver()
>       year = calver.split(".")[0]
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_development.py:42: AttributeError

test_development.py::TestDevelopment::test_os

test_development.py::TestDevelopment::test_os
self = 
dev = 

    def test_os(self, dev):
        result = dev.os()
>       assert result in datasets.OS
E       AssertionError: assert None in ['Arch', 'CentOS', 'Debian', 'Fedora', 'FreeBSD', 'Gentoo', ...]
E        +  where ['Arch', 'CentOS', 'Debian', 'Fedora', 'FreeBSD', 'Gentoo', ...] = datasets.OS

tests/test_providers/test_development.py:54: AssertionError

test_development.py::TestDevelopment::test_programming_language

test_development.py::TestDevelopment::test_programming_language
self = 
dev = 

    def test_programming_language(self, dev):
        result = dev.programming_language()
>       assert result in datasets.PROGRAMMING_LANGS
E       AssertionError: assert None in ['ASP', 'Assembly', 'AutoIt', 'Awk', 'Bash', 'C', ...]
E        +  where ['ASP', 'Assembly', 'AutoIt', 'Awk', 'Bash', 'C', ...] = datasets.PROGRAMMING_LANGS

tests/test_providers/test_development.py:50: AssertionError

test_development.py::TestDevelopment::test_ility

test_development.py::TestDevelopment::test_ility
self = 
dev = 

    def test_ility(self, dev):
        result = dev.ility()
>       assert result in datasets.SYSTEM_QUALITY_ATTRIBUTES
E       AssertionError: assert None in ('accessibility', 'accountability', 'accuracy', 'adaptability', 'administrability', 'affordability', ...)
E        +  where ('accessibility', 'accountability', 'accuracy', 'adaptability', 'administrability', 'affordability', ...) = datasets.SYSTEM_QUALITY_ATTRIBUTES

tests/test_providers/test_development.py:29: AssertionError

test_field_params.py::test_guest_factory_different_data

test_field_params.py::test_guest_factory_different_data
guest_factory = 

    def test_guest_factory_different_data(guest_factory):
        guest1 = guest_factory()
        guest2 = guest_factory()

        assert isinstance(guest1, Guest)
        assert isinstance(guest2, Guest)
        assert guest1 != guest2
>       assert guest1.full_name != guest2.full_name
E       assert None != None
E        +  where None = .full_name
E        +  and   None = .full_name

tests/test_plugins/test_factory/test_field_params.py:34: AssertionError

test_field_params.py::test_guest_factory_create_batch

test_field_params.py::test_guest_factory_create_batch
guest_factory = 

    def test_guest_factory_create_batch(guest_factory):
        guests = guest_factory.create_batch(50)
        names = {guest.full_name for guest in guests}

>       assert len(guests) == len(names)
E       assert 50 == 1
E        +  where 50 = len([, , , ...])
E        +  and   1 = len({None})

tests/test_plugins/test_factory/test_field_params.py:43: AssertionError

test_field_params.py::test_guest_instance_data

test_field_params.py::test_guest_instance_data
guest = 

    def test_guest_instance_data(guest):
        assert isinstance(guest, Guest)
        assert guest.full_name != ""
>       assert MIN_AGE <= guest.age <= MAX_AGE
E       TypeError: '<=' not supported between instances of 'int' and 'NoneType'

tests/test_plugins/test_factory/test_field_params.py:64: TypeError

test_field_params.py::test_guest_factory_build_batch

test_field_params.py::test_guest_factory_build_batch
guest_factory = 

    def test_guest_factory_build_batch(guest_factory):
        guests = guest_factory.build_batch(50)
        names = {guest.full_name for guest in guests}

>       assert len(guests) == len(names)
E       assert 50 == 1
E        +  where 50 = len([, , , ...])
E        +  and   1 = len({None})

tests/test_plugins/test_factory/test_field_params.py:54: AssertionError

test_locale_override.py::test_data_with_override_defined_locale

test_locale_override.py::test_data_with_override_defined_locale
person_factory = 

    def test_data_with_override_defined_locale(person_factory):
>       with FactoryField.override_locale(Locale.EN):

tests/test_plugins/test_factory/test_locale_override.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 

    def __enter__(self):
        # do not keep args and kwds alive unnecessarily
        # they are only needed for recreation, which is not possible anymore
        del self.args, self.kwds, self.func
        try:
>           return next(self.gen)
E           TypeError: 'NoneType' object is not an iterator

/usr/lib/python3.10/contextlib.py:135: TypeError

test_locale_override.py::test_data_with_different_locales

test_locale_override.py::test_data_with_different_locales
person = 

    def test_data_with_different_locales(person):
>       for letter in person.full_name_en:

tests/test_plugins/test_factory/test_locale_override.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 

    @property
    def full_name_en(self) -> str:
        """Some names have special symbols in them."""
>       return self._full_name_en.replace(" ", "").replace("'", "")
E       AttributeError: 'NoneType' object has no attribute 'replace'

tests/test_plugins/test_factory/test_locale_override.py:18: AttributeError

test_locale_override.py::test_data_with_override_locale

test_locale_override.py::test_data_with_override_locale
person_factory = 

    def test_data_with_override_locale(person_factory):
>       with FactoryField.override_locale(Locale.RU):

tests/test_plugins/test_factory/test_locale_override.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 

    def __enter__(self):
        # do not keep args and kwds alive unnecessarily
        # they are only needed for recreation, which is not possible anymore
        del self.args, self.kwds, self.func
        try:
>           return next(self.gen)
E           TypeError: 'NoneType' object is not an iterator

/usr/lib/python3.10/contextlib.py:135: TypeError

test_science.py::TestScience::test_str

test_science.py::TestScience::test_str
self = 
science = 

    def test_str(self, science):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(science))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_science.py:19: AssertionError

test_italy_spec.py::test_noun

test_italy_spec.py::test_noun
italy = 

    def test_noun(italy):
        result = italy.fiscal_code(gender=Gender.MALE)
>       assert re.fullmatch(
            r"^[A-Z]{6}\d{2}[A-EHLMPR-T][0123][0-9][A-MZ]\d{3}[A-Z]$", result
        )

tests/test_builtins/test_italy_spec.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pattern = '^[A-Z]{6}\\d{2}[A-EHLMPR-T][0123][0-9][A-MZ]\\d{3}[A-Z]$'
string = None, flags = 0

    def fullmatch(pattern, string, flags=0):
        """Try to apply the pattern to all of the string, returning
        a Match object, or None if no match was found."""
>       return _compile(pattern, flags).fullmatch(string)
E       TypeError: expected string or bytes-like object

/usr/lib/python3.10/re.py:195: TypeError

test_schema.py::test_field_error[Locale.PT_BR-person.full_name.invalid]

test_schema.py::test_field_error[Locale.PT_BR-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.PT_BR-person:title]

test_schema.py::test_field_different_separator[Locale.PT_BR-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.PT_BR-text title]

test_schema.py::test_field_different_separator[Locale.PT_BR-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.PT_BR]

test_schema.py::test_schema_to_pickle[Locale.PT_BR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_get_random_instance[Locale.PT_BR]

test_schema.py::test_field_get_random_instance[Locale.PT_BR]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.PT_BR-unsupported_field]

test_schema.py::test_field_error[Locale.PT_BR-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.PT_BR]

test_schema.py::test_schema_create[Locale.PT_BR]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_json[Locale.PT_BR]

test_schema.py::test_schema_to_json[Locale.PT_BR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.PT_BR-person.title]

test_schema.py::test_field_different_separator[Locale.PT_BR-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-foo]

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.PT_BR-invalid_field]

test_schema.py::test_field_error[Locale.PT_BR-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.PT_BR-uuid]

test_schema.py::test_field[Locale.PT_BR-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.PT_BR]

test_schema.py::test_fuzzy_lookup[Locale.PT_BR]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.PT_BR]

test_schema.py::test_field_with_key_function[Locale.PT_BR]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_csv[Locale.PT_BR]

test_schema.py::test_schema_to_csv[Locale.PT_BR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_B0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_B0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_B0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.PT_BR-street_name]

test_schema.py::test_field[Locale.PT_BR-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-]

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.PT_BR]

test_schema.py::test_explicit_lookup[Locale.PT_BR]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_choice_field[Locale.PT_BR]

test_schema.py::test_choice_field[Locale.PT_BR]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.PT_BR-full_name]

test_schema.py::test_field[Locale.PT_BR-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.PT_BR]

test_schema.py::test_field_with_key_function_two_parameters[Locale.PT_BR]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.PT_BR-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.DA]

test_schema.py::test_field_get_random_instance[Locale.DA]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.DA]

test_schema.py::test_fuzzy_lookup[Locale.DA]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.DA]

test_schema.py::test_schema_to_csv[Locale.DA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DA_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DA_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DA_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.DA-person:title]

test_schema.py::test_field_different_separator[Locale.DA-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.DA-full_name]

test_schema.py::test_field[Locale.DA-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.DA]

test_schema.py::test_field_with_key_function_two_parameters[Locale.DA]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_json[Locale.DA]

test_schema.py::test_schema_to_json[Locale.DA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DA_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DA_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DA_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.DA-invalid_field]

test_schema.py::test_field_error[Locale.DA-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.DA]

test_schema.py::test_schema_create[Locale.DA]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_with_key_function[Locale.DA]

test_schema.py::test_field_with_key_function[Locale.DA]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.DA-person.title]

test_schema.py::test_field_different_separator[Locale.DA-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.DA-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.DA-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.DA-person.full_name.invalid]

test_schema.py::test_field_error[Locale.DA-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.DA-]

test_schema.py::test_lookup_method_field_error[Locale.DA-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.DA-unsupported_field]

test_schema.py::test_field_error[Locale.DA-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.DA-street_name]

test_schema.py::test_field[Locale.DA-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.DA-text title]

test_schema.py::test_field_different_separator[Locale.DA-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_explicit_lookup[Locale.DA]

test_schema.py::test_explicit_lookup[Locale.DA]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.DA-foo]

test_schema.py::test_lookup_method_field_error[Locale.DA-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_pickle[Locale.DA]

test_schema.py::test_schema_to_pickle[Locale.DA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.DA-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.DA-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.DA-uuid]

test_schema.py::test_field[Locale.DA-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.DA]

test_schema.py::test_choice_field[Locale.DA]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.PT-uuid]

test_schema.py::test_field[Locale.PT-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_csv[Locale.PT]

test_schema.py::test_schema_to_csv[Locale.PT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PT_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.PT-street_name]

test_schema.py::test_field[Locale.PT-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.PT-full_name]

test_schema.py::test_field[Locale.PT-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.PT-invalid_field]

test_schema.py::test_field_error[Locale.PT-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.PT]

test_schema.py::test_field_with_key_function_two_parameters[Locale.PT]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_json[Locale.PT]

test_schema.py::test_schema_to_json[Locale.PT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_1')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_1/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PT_1/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.PT-person.full_name.invalid]

test_schema.py::test_field_error[Locale.PT-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.PT-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.PT-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.PT-foo]

test_schema.py::test_lookup_method_field_error[Locale.PT-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.PT-person.title]

test_schema.py::test_field_different_separator[Locale.PT-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PT-]

test_schema.py::test_lookup_method_field_error[Locale.PT-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_pickle[Locale.PT]

test_schema.py::test_schema_to_pickle[Locale.PT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.PT]

test_schema.py::test_fuzzy_lookup[Locale.PT]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_explicit_lookup[Locale.PT]

test_schema.py::test_explicit_lookup[Locale.PT]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_error[Locale.PT-unsupported_field]

test_schema.py::test_field_error[Locale.PT-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_choice_field[Locale.PT]

test_schema.py::test_choice_field[Locale.PT]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_different_separator[Locale.PT-person:title]

test_schema.py::test_field_different_separator[Locale.PT-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PT-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.PT-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.PT]

test_schema.py::test_field_with_key_function[Locale.PT]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_create[Locale.PT]

test_schema.py::test_schema_create[Locale.PT]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.PT-text title]

test_schema.py::test_field_different_separator[Locale.PT-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.PT]

test_schema.py::test_field_get_random_instance[Locale.PT]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.NL-unsupported_field]

test_schema.py::test_field_error[Locale.NL-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.NL-person:title]

test_schema.py::test_field_different_separator[Locale.NL-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.NL-uuid]

test_schema.py::test_field[Locale.NL-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.NL]

test_schema.py::test_schema_to_json[Locale.NL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.NL-foo]

test_schema.py::test_lookup_method_field_error[Locale.NL-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.NL]

test_schema.py::test_choice_field[Locale.NL]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.NL-]

test_schema.py::test_lookup_method_field_error[Locale.NL-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.NL-person.title]

test_schema.py::test_field_different_separator[Locale.NL-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.NL-street_name]

test_schema.py::test_field[Locale.NL-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NL-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.NL-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.NL-invalid_field]

test_schema.py::test_field_error[Locale.NL-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.NL-person.full_name.invalid]

test_schema.py::test_field_error[Locale.NL-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.NL-text title]

test_schema.py::test_field_different_separator[Locale.NL-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NL-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.NL-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.NL]

test_schema.py::test_field_with_key_function[Locale.NL]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_create[Locale.NL]

test_schema.py::test_schema_create[Locale.NL]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.NL-full_name]

test_schema.py::test_field[Locale.NL-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_get_random_instance[Locale.NL]

test_schema.py::test_field_get_random_instance[Locale.NL]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.NL]

test_schema.py::test_field_with_key_function_two_parameters[Locale.NL]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_pickle[Locale.NL]

test_schema.py::test_schema_to_pickle[Locale.NL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.NL]

test_schema.py::test_fuzzy_lookup[Locale.NL]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.NL]

test_schema.py::test_schema_to_csv[Locale.NL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_explicit_lookup[Locale.NL]

test_schema.py::test_explicit_lookup[Locale.NL]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_explicit_lookup[Locale.HU]

test_schema.py::test_explicit_lookup[Locale.HU]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.HU]

test_schema.py::test_schema_to_pickle[Locale.HU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.HU-person.full_name.invalid]

test_schema.py::test_field_error[Locale.HU-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.HU]

test_schema.py::test_field_with_key_function_two_parameters[Locale.HU]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_choice_field[Locale.HU]

test_schema.py::test_choice_field[Locale.HU]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.HU-uuid]

test_schema.py::test_field[Locale.HU-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.HU]

test_schema.py::test_fuzzy_lookup[Locale.HU]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.HU-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.HU-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.HU]

test_schema.py::test_field_with_key_function[Locale.HU]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.HU-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.HU-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.HU-invalid_field]

test_schema.py::test_field_error[Locale.HU-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.HU]

test_schema.py::test_schema_create[Locale.HU]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_csv[Locale.HU]

test_schema.py::test_schema_to_csv[Locale.HU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HU_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HU_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HU_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.HU-text title]

test_schema.py::test_field_different_separator[Locale.HU-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.HU]

test_schema.py::test_field_get_random_instance[Locale.HU]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.HU-full_name]

test_schema.py::test_field[Locale.HU-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.HU-person:title]

test_schema.py::test_field_different_separator[Locale.HU-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.HU-person.title]

test_schema.py::test_field_different_separator[Locale.HU-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.HU-]

test_schema.py::test_lookup_method_field_error[Locale.HU-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.HU-foo]

test_schema.py::test_lookup_method_field_error[Locale.HU-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.HU-street_name]

test_schema.py::test_field[Locale.HU-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.HU-unsupported_field]

test_schema.py::test_field_error[Locale.HU-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.HU]

test_schema.py::test_schema_to_json[Locale.HU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HU_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HU_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HU_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.IT-uuid]

test_schema.py::test_field[Locale.IT-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.IT-full_name]

test_schema.py::test_field[Locale.IT-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.IT]

test_schema.py::test_fuzzy_lookup[Locale.IT]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.IT-text title]

test_schema.py::test_field_different_separator[Locale.IT-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.IT]

test_schema.py::test_schema_create[Locale.IT]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_with_key_function[Locale.IT]

test_schema.py::test_field_with_key_function[Locale.IT]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.IT-person:title]

test_schema.py::test_field_different_separator[Locale.IT-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.IT-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.IT-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.IT-unsupported_field]

test_schema.py::test_field_error[Locale.IT-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_csv[Locale.IT]

test_schema.py::test_schema_to_csv[Locale.IT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IT_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IT_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IT_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.IT-person.full_name.invalid]

test_schema.py::test_field_error[Locale.IT-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.IT-person.title]

test_schema.py::test_field_different_separator[Locale.IT-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.IT]

test_schema.py::test_schema_to_json[Locale.IT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IT_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IT_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IT_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.IT-invalid_field]

test_schema.py::test_field_error[Locale.IT-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_pickle[Locale.IT]

test_schema.py::test_schema_to_pickle[Locale.IT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_choice_field[Locale.IT]

test_schema.py::test_choice_field[Locale.IT]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_with_key_function_two_parameters[Locale.IT]

test_schema.py::test_field_with_key_function_two_parameters[Locale.IT]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_explicit_lookup[Locale.IT]

test_schema.py::test_explicit_lookup[Locale.IT]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.IT-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.IT-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.IT-foo]

test_schema.py::test_lookup_method_field_error[Locale.IT-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.IT]

test_schema.py::test_field_get_random_instance[Locale.IT]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.IT-]

test_schema.py::test_lookup_method_field_error[Locale.IT-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.IT-street_name]

test_schema.py::test_field[Locale.IT-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KK-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.KK-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.KK-unsupported_field]

test_schema.py::test_field_error[Locale.KK-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.KK]

test_schema.py::test_schema_to_json[Locale.KK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KK_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KK_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KK_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.KK-foo]

test_schema.py::test_lookup_method_field_error[Locale.KK-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.KK-street_name]

test_schema.py::test_field[Locale.KK-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_csv[Locale.KK]

test_schema.py::test_schema_to_csv[Locale.KK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KK_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KK_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KK_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.KK]

test_schema.py::test_fuzzy_lookup[Locale.KK]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.KK-person:title]

test_schema.py::test_field_different_separator[Locale.KK-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_choice_field[Locale.KK]

test_schema.py::test_choice_field[Locale.KK]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_error[Locale.KK-person.full_name.invalid]

test_schema.py::test_field_error[Locale.KK-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.KK]

test_schema.py::test_field_get_random_instance[Locale.KK]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_with_key_function[Locale.KK]

test_schema.py::test_field_with_key_function[Locale.KK]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.KK-person.title]

test_schema.py::test_field_different_separator[Locale.KK-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.KK]

test_schema.py::test_schema_create[Locale.KK]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_explicit_lookup[Locale.KK]

test_schema.py::test_explicit_lookup[Locale.KK]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KK-]

test_schema.py::test_lookup_method_field_error[Locale.KK-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_pickle[Locale.KK]

test_schema.py::test_schema_to_pickle[Locale.KK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.KK-uuid]

test_schema.py::test_field[Locale.KK-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.KK-full_name]

test_schema.py::test_field[Locale.KK-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.KK]

test_schema.py::test_field_with_key_function_two_parameters[Locale.KK]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_error[Locale.KK-invalid_field]

test_schema.py::test_field_error[Locale.KK-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.KK-text title]

test_schema.py::test_field_different_separator[Locale.KK-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KK-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.KK-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.KO-uuid]

test_schema.py::test_field[Locale.KO-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.KO-person.title]

test_schema.py::test_field_different_separator[Locale.KO-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KO-foo]

test_schema.py::test_lookup_method_field_error[Locale.KO-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.KO-person.full_name.invalid]

test_schema.py::test_field_error[Locale.KO-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_fuzzy_lookup[Locale.KO]

test_schema.py::test_fuzzy_lookup[Locale.KO]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KO-]

test_schema.py::test_lookup_method_field_error[Locale.KO-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.KO]

test_schema.py::test_field_with_key_function_two_parameters[Locale.KO]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_pickle[Locale.KO]

test_schema.py::test_schema_to_pickle[Locale.KO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_K1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.KO-text title]

test_schema.py::test_field_different_separator[Locale.KO-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.KO]

test_schema.py::test_schema_create[Locale.KO]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_csv[Locale.KO]

test_schema.py::test_schema_to_csv[Locale.KO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KO_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KO_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_KO_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function[Locale.KO]

test_schema.py::test_field_with_key_function[Locale.KO]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KO-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.KO-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.KO]

test_schema.py::test_choice_field[Locale.KO]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.KO-full_name]

test_schema.py::test_field[Locale.KO-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_get_random_instance[Locale.KO]

test_schema.py::test_field_get_random_instance[Locale.KO]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.KO-street_name]

test_schema.py::test_field[Locale.KO-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.KO]

test_schema.py::test_schema_to_json[Locale.KO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KO_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KO_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_KO_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.KO-person:title]

test_schema.py::test_field_different_separator[Locale.KO-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.KO-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.KO-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.KO-unsupported_field]

test_schema.py::test_field_error[Locale.KO-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.KO-invalid_field]

test_schema.py::test_field_error[Locale.KO-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_explicit_lookup[Locale.KO]

test_schema.py::test_explicit_lookup[Locale.KO]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field[Locale.EN_AU-street_name]

test_schema.py::test_field[Locale.EN_AU-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.EN_AU]

test_schema.py::test_explicit_lookup[Locale.EN_AU]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_to_csv[Locale.EN_AU]

test_schema.py::test_schema_to_csv[Locale.EN_AU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_A0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_A0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_A0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_AU]

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_AU]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field[Locale.EN_AU-full_name]

test_schema.py::test_field[Locale.EN_AU-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.EN_AU-unsupported_field]

test_schema.py::test_field_error[Locale.EN_AU-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.EN_AU]

test_schema.py::test_schema_to_json[Locale.EN_AU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_get_random_instance[Locale.EN_AU]

test_schema.py::test_field_get_random_instance[Locale.EN_AU]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.EN_AU-uuid]

test_schema.py::test_field[Locale.EN_AU-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_AU-text title]

test_schema.py::test_field_different_separator[Locale.EN_AU-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_AU-person.title]

test_schema.py::test_field_different_separator[Locale.EN_AU-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.EN_AU-invalid_field]

test_schema.py::test_field_error[Locale.EN_AU-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function[Locale.EN_AU]

test_schema.py::test_field_with_key_function[Locale.EN_AU]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_AU-person:title]

test_schema.py::test_field_different_separator[Locale.EN_AU-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.EN_AU]

test_schema.py::test_schema_to_pickle[Locale.EN_AU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_create[Locale.EN_AU]

test_schema.py::test_schema_create[Locale.EN_AU]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_fuzzy_lookup[Locale.EN_AU]

test_schema.py::test_fuzzy_lookup[Locale.EN_AU]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_error[Locale.EN_AU-person.full_name.invalid]

test_schema.py::test_field_error[Locale.EN_AU-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-]

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-foo]

test_schema.py::test_lookup_method_field_error[Locale.EN_AU-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.EN_AU]

test_schema.py::test_choice_field[Locale.EN_AU]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.FR-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.FR-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.FR-uuid]

test_schema.py::test_field[Locale.FR-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.FR]

test_schema.py::test_field_with_key_function_two_parameters[Locale.FR]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_error[Locale.FR-invalid_field]

test_schema.py::test_field_error[Locale.FR-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.FR-text title]

test_schema.py::test_field_different_separator[Locale.FR-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.FR-person:title]

test_schema.py::test_field_different_separator[Locale.FR-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.FR-]

test_schema.py::test_lookup_method_field_error[Locale.FR-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.FR-street_name]

test_schema.py::test_field[Locale.FR-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.FR-person.full_name.invalid]

test_schema.py::test_field_error[Locale.FR-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.FR]

test_schema.py::test_schema_create[Locale.FR]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_pickle[Locale.FR]

test_schema.py::test_schema_to_pickle[Locale.FR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_explicit_lookup[Locale.FR]

test_schema.py::test_explicit_lookup[Locale.FR]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_get_random_instance[Locale.FR]

test_schema.py::test_field_get_random_instance[Locale.FR]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_schema_to_csv[Locale.FR]

test_schema.py::test_schema_to_csv[Locale.FR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FR_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FR_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FR_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.FR-foo]

test_schema.py::test_lookup_method_field_error[Locale.FR-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.FR]

test_schema.py::test_choice_field[Locale.FR]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_with_key_function[Locale.FR]

test_schema.py::test_field_with_key_function[Locale.FR]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_json[Locale.FR]

test_schema.py::test_schema_to_json[Locale.FR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FR_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FR_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FR_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.FR]

test_schema.py::test_fuzzy_lookup[Locale.FR]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field[Locale.FR-full_name]

test_schema.py::test_field[Locale.FR-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.FR-person.title]

test_schema.py::test_field_different_separator[Locale.FR-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.FR-unsupported_field]

test_schema.py::test_field_error[Locale.FR-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.FR-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.FR-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_csv[Locale.SK]

test_schema.py::test_schema_to_csv[Locale.SK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SK_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SK_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SK_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.SK-invalid_field]

test_schema.py::test_field_error[Locale.SK-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.SK-person.title]

test_schema.py::test_field_different_separator[Locale.SK-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.SK-text title]

test_schema.py::test_field_different_separator[Locale.SK-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.SK]

test_schema.py::test_schema_to_json[Locale.SK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SK_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SK_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SK_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.SK-person:title]

test_schema.py::test_field_different_separator[Locale.SK-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.SK-full_name]

test_schema.py::test_field[Locale.SK-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.SK-person.full_name.invalid]

test_schema.py::test_field_error[Locale.SK-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.SK]

test_schema.py::test_field_get_random_instance[Locale.SK]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.SK-uuid]

test_schema.py::test_field[Locale.SK-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.SK]

test_schema.py::test_field_with_key_function_two_parameters[Locale.SK]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.SK]

test_schema.py::test_field_with_key_function[Locale.SK]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.SK]

test_schema.py::test_fuzzy_lookup[Locale.SK]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_pickle[Locale.SK]

test_schema.py::test_schema_to_pickle[Locale.SK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.SK-]

test_schema.py::test_lookup_method_field_error[Locale.SK-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.SK-street_name]

test_schema.py::test_field[Locale.SK-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_create[Locale.SK]

test_schema.py::test_schema_create[Locale.SK]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_choice_field[Locale.SK]

test_schema.py::test_choice_field[Locale.SK]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.SK-foo]

test_schema.py::test_lookup_method_field_error[Locale.SK-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.SK-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.SK-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.SK-unsupported_field]

test_schema.py::test_field_error[Locale.SK-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.SK-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.SK-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.SK]

test_schema.py::test_explicit_lookup[Locale.SK]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN-person.title]

test_schema.py::test_field_different_separator[Locale.EN-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN-text title]

test_schema.py::test_field_different_separator[Locale.EN-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.EN-uuid]

test_schema.py::test_field[Locale.EN-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN-foo]

test_schema.py::test_lookup_method_field_error[Locale.EN-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.EN]

test_schema.py::test_choice_field[Locale.EN]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.EN-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.EN-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.EN]

test_schema.py::test_schema_to_json[Locale.EN]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_1')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_1/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_1/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_to_pickle[Locale.EN]

test_schema.py::test_schema_to_pickle[Locale.EN]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.EN-person.full_name.invalid]

test_schema.py::test_field_error[Locale.EN-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_fuzzy_lookup[Locale.EN]

test_schema.py::test_fuzzy_lookup[Locale.EN]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_error[Locale.EN-unsupported_field]

test_schema.py::test_field_error[Locale.EN-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.EN-invalid_field]

test_schema.py::test_field_error[Locale.EN-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.EN-person:title]

test_schema.py::test_field_different_separator[Locale.EN-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.EN-street_name]

test_schema.py::test_field[Locale.EN-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN-]

test_schema.py::test_lookup_method_field_error[Locale.EN-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_csv[Locale.EN]

test_schema.py::test_schema_to_csv[Locale.EN]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.EN-full_name]

test_schema.py::test_field[Locale.EN-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN]

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_explicit_lookup[Locale.EN]

test_schema.py::test_explicit_lookup[Locale.EN]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_create[Locale.EN]

test_schema.py::test_schema_create[Locale.EN]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_lookup_method_field_error[Locale.EN-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.EN-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.EN]

test_schema.py::test_field_with_key_function[Locale.EN]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_get_random_instance[Locale.EN]

test_schema.py::test_field_get_random_instance[Locale.EN]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.NL_BE-street_name]

test_schema.py::test_field[Locale.NL_BE-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.NL_BE]

test_schema.py::test_explicit_lookup[Locale.NL_BE]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_error[Locale.NL_BE-invalid_field]

test_schema.py::test_field_error[Locale.NL_BE-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.NL_BE]

test_schema.py::test_field_with_key_function_two_parameters[Locale.NL_BE]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_with_key_function[Locale.NL_BE]

test_schema.py::test_field_with_key_function[Locale.NL_BE]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field[Locale.NL_BE-uuid]

test_schema.py::test_field[Locale.NL_BE-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-foo]

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.NL_BE-person:title]

test_schema.py::test_field_different_separator[Locale.NL_BE-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.NL_BE]

test_schema.py::test_choice_field[Locale.NL_BE]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_different_separator[Locale.NL_BE-text title]

test_schema.py::test_field_different_separator[Locale.NL_BE-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.NL_BE-full_name]

test_schema.py::test_field[Locale.NL_BE-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.NL_BE]

test_schema.py::test_schema_to_json[Locale.NL_BE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_1')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_1/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NL_1/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.NL_BE-person.full_name.invalid]

test_schema.py::test_field_error[Locale.NL_BE-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_pickle[Locale.NL_BE]

test_schema.py::test_schema_to_pickle[Locale.NL_BE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.NL_BE-unsupported_field]

test_schema.py::test_field_error[Locale.NL_BE-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.NL_BE]

test_schema.py::test_field_get_random_instance[Locale.NL_BE]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_different_separator[Locale.NL_BE-person.title]

test_schema.py::test_field_different_separator[Locale.NL_BE-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.NL_BE]

test_schema.py::test_fuzzy_lookup[Locale.NL_BE]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.NL_BE]

test_schema.py::test_schema_to_csv[Locale.NL_BE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_B0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_B0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NL_B0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-]

test_schema.py::test_lookup_method_field_error[Locale.NL_BE-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.NL_BE]

test_schema.py::test_schema_create[Locale.NL_BE]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_choice_field[Locale.ZH]

test_schema.py::test_choice_field[Locale.ZH]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.ZH-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.ZH-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.ZH]

test_schema.py::test_field_with_key_function_two_parameters[Locale.ZH]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_json[Locale.ZH]

test_schema.py::test_schema_to_json[Locale.ZH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ZH_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ZH_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ZH_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.ZH]

test_schema.py::test_fuzzy_lookup[Locale.ZH]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field[Locale.ZH-uuid]

test_schema.py::test_field[Locale.ZH-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.ZH]

test_schema.py::test_explicit_lookup[Locale.ZH]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_create[Locale.ZH]

test_schema.py::test_schema_create[Locale.ZH]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.ZH-invalid_field]

test_schema.py::test_field_error[Locale.ZH-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.ZH-foo]

test_schema.py::test_lookup_method_field_error[Locale.ZH-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.ZH-person.full_name.invalid]

test_schema.py::test_field_error[Locale.ZH-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.ZH-full_name]

test_schema.py::test_field[Locale.ZH-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.ZH-person.title]

test_schema.py::test_field_different_separator[Locale.ZH-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ZH-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.ZH-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.ZH-street_name]

test_schema.py::test_field[Locale.ZH-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_get_random_instance[Locale.ZH]

test_schema.py::test_field_get_random_instance[Locale.ZH]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_different_separator[Locale.ZH-text title]

test_schema.py::test_field_different_separator[Locale.ZH-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.ZH]

test_schema.py::test_field_with_key_function[Locale.ZH]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.ZH-person:title]

test_schema.py::test_field_different_separator[Locale.ZH-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.ZH]

test_schema.py::test_schema_to_pickle[Locale.ZH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_Z0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_Z0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_Z0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_to_csv[Locale.ZH]

test_schema.py::test_schema_to_csv[Locale.ZH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ZH_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ZH_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ZH_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.ZH-]

test_schema.py::test_lookup_method_field_error[Locale.ZH-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.ZH-unsupported_field]

test_schema.py::test_field_error[Locale.ZH-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.CS-person.title]

test_schema.py::test_field_different_separator[Locale.CS-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.CS-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.CS-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.CS]

test_schema.py::test_schema_to_json[Locale.CS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_CS_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_CS_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_CS_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_to_csv[Locale.CS]

test_schema.py::test_schema_to_csv[Locale.CS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_CS_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_CS_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_CS_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_get_random_instance[Locale.CS]

test_schema.py::test_field_get_random_instance[Locale.CS]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.CS-unsupported_field]

test_schema.py::test_field_error[Locale.CS-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.CS-invalid_field]

test_schema.py::test_field_error[Locale.CS-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.CS-foo]

test_schema.py::test_lookup_method_field_error[Locale.CS-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.CS]

test_schema.py::test_schema_create[Locale.CS]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_explicit_lookup[Locale.CS]

test_schema.py::test_explicit_lookup[Locale.CS]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.CS-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.CS-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.CS]

test_schema.py::test_field_with_key_function[Locale.CS]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_pickle[Locale.CS]

test_schema.py::test_schema_to_pickle[Locale.CS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_C0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_C0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_C0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.CS-text title]

test_schema.py::test_field_different_separator[Locale.CS-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.CS]

test_schema.py::test_fuzzy_lookup[Locale.CS]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.CS-person:title]

test_schema.py::test_field_different_separator[Locale.CS-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.CS-]

test_schema.py::test_lookup_method_field_error[Locale.CS-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.CS]

test_schema.py::test_field_with_key_function_two_parameters[Locale.CS]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field[Locale.CS-uuid]

test_schema.py::test_field[Locale.CS-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.CS-street_name]

test_schema.py::test_field[Locale.CS-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.CS-person.full_name.invalid]

test_schema.py::test_field_error[Locale.CS-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.CS-full_name]

test_schema.py::test_field[Locale.CS-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.CS]

test_schema.py::test_choice_field[Locale.CS]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.SV]

test_schema.py::test_field_with_key_function[Locale.SV]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.SV]

test_schema.py::test_schema_create[Locale.SV]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.SV-uuid]

test_schema.py::test_field[Locale.SV-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.SV]

test_schema.py::test_explicit_lookup[Locale.SV]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.SV-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.SV-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_fuzzy_lookup[Locale.SV]

test_schema.py::test_fuzzy_lookup[Locale.SV]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.SV]

test_schema.py::test_schema_to_csv[Locale.SV]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SV_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SV_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_SV_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function_two_parameters[Locale.SV]

test_schema.py::test_field_with_key_function_two_parameters[Locale.SV]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field[Locale.SV-street_name]

test_schema.py::test_field[Locale.SV-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.SV-full_name]

test_schema.py::test_field[Locale.SV-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_pickle[Locale.SV]

test_schema.py::test_schema_to_pickle[Locale.SV]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_S1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.SV-]

test_schema.py::test_lookup_method_field_error[Locale.SV-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.SV-text title]

test_schema.py::test_field_different_separator[Locale.SV-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_choice_field[Locale.SV]

test_schema.py::test_choice_field[Locale.SV]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.SV-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.SV-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.SV-unsupported_field]

test_schema.py::test_field_error[Locale.SV-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.SV-person.title]

test_schema.py::test_field_different_separator[Locale.SV-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.SV-person:title]

test_schema.py::test_field_different_separator[Locale.SV-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.SV]

test_schema.py::test_schema_to_json[Locale.SV]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SV_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SV_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_SV_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.SV-person.full_name.invalid]

test_schema.py::test_field_error[Locale.SV-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.SV]

test_schema.py::test_field_get_random_instance[Locale.SV]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.SV-invalid_field]

test_schema.py::test_field_error[Locale.SV-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.SV-foo]

test_schema.py::test_lookup_method_field_error[Locale.SV-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.EN_GB-person.title]

test_schema.py::test_field_different_separator[Locale.EN_GB-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_GB-person:title]

test_schema.py::test_field_different_separator[Locale.EN_GB-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.EN_GB]

test_schema.py::test_field_with_key_function[Locale.EN_GB]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_error[Locale.EN_GB-unsupported_field]

test_schema.py::test_field_error[Locale.EN_GB-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_pickle[Locale.EN_GB]

test_schema.py::test_schema_to_pickle[Locale.EN_GB]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E2')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E2/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E2/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.EN_GB-full_name]

test_schema.py::test_field[Locale.EN_GB-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.EN_GB]

test_schema.py::test_fuzzy_lookup[Locale.EN_GB]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_get_random_instance[Locale.EN_GB]

test_schema.py::test_field_get_random_instance[Locale.EN_GB]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_choice_field[Locale.EN_GB]

test_schema.py::test_choice_field[Locale.EN_GB]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_different_separator[Locale.EN_GB-text title]

test_schema.py::test_field_different_separator[Locale.EN_GB-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.EN_GB-street_name]

test_schema.py::test_field[Locale.EN_GB-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.EN_GB]

test_schema.py::test_schema_to_json[Locale.EN_GB]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_2')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_2/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_2/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.EN_GB-uuid]

test_schema.py::test_field[Locale.EN_GB-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_csv[Locale.EN_GB]

test_schema.py::test_schema_to_csv[Locale.EN_GB]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_G0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_G0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_G0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_GB]

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_GB]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_error[Locale.EN_GB-invalid_field]

test_schema.py::test_field_error[Locale.EN_GB-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.EN_GB-person.full_name.invalid]

test_schema.py::test_field_error[Locale.EN_GB-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_explicit_lookup[Locale.EN_GB]

test_schema.py::test_explicit_lookup[Locale.EN_GB]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-]

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-foo]

test_schema.py::test_lookup_method_field_error[Locale.EN_GB-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.EN_GB]

test_schema.py::test_schema_create[Locale.EN_GB]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_get_random_instance[Locale.ET]

test_schema.py::test_field_get_random_instance[Locale.ET]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ET-foo]

test_schema.py::test_lookup_method_field_error[Locale.ET-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_csv[Locale.ET]

test_schema.py::test_schema_to_csv[Locale.ET]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ET_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ET_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ET_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.ET-unsupported_field]

test_schema.py::test_field_error[Locale.ET-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.ET-uuid]

test_schema.py::test_field[Locale.ET-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_pickle[Locale.ET]

test_schema.py::test_schema_to_pickle[Locale.ET]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E3')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E3/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E3/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_to_json[Locale.ET]

test_schema.py::test_schema_to_json[Locale.ET]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ET_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ET_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ET_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.ET-person.title]

test_schema.py::test_field_different_separator[Locale.ET-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.ET-text title]

test_schema.py::test_field_different_separator[Locale.ET-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ET-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.ET-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.ET-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.ET-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.ET]

test_schema.py::test_field_with_key_function_two_parameters[Locale.ET]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_different_separator[Locale.ET-person:title]

test_schema.py::test_field_different_separator[Locale.ET-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.ET]

test_schema.py::test_fuzzy_lookup[Locale.ET]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_error[Locale.ET-invalid_field]

test_schema.py::test_field_error[Locale.ET-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.ET-]

test_schema.py::test_lookup_method_field_error[Locale.ET-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.ET-street_name]

test_schema.py::test_field[Locale.ET-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_create[Locale.ET]

test_schema.py::test_schema_create[Locale.ET]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.ET-person.full_name.invalid]

test_schema.py::test_field_error[Locale.ET-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_explicit_lookup[Locale.ET]

test_schema.py::test_explicit_lookup[Locale.ET]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field[Locale.ET-full_name]

test_schema.py::test_field[Locale.ET-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function[Locale.ET]

test_schema.py::test_field_with_key_function[Locale.ET]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_choice_field[Locale.ET]

test_schema.py::test_choice_field[Locale.ET]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_with_key_function_two_parameters[Locale.EL]

test_schema.py::test_field_with_key_function_two_parameters[Locale.EL]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_json[Locale.EL]

test_schema.py::test_schema_to_json[Locale.EL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EL_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EL_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EL_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.EL-uuid]

test_schema.py::test_field[Locale.EL-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.EL-unsupported_field]

test_schema.py::test_field_error[Locale.EL-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.EL-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.EL-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.EL-person.full_name.invalid]

test_schema.py::test_field_error[Locale.EL-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_fuzzy_lookup[Locale.EL]

test_schema.py::test_fuzzy_lookup[Locale.EL]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.EL-person.title]

test_schema.py::test_field_different_separator[Locale.EL-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_csv[Locale.EL]

test_schema.py::test_schema_to_csv[Locale.EL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EL_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EL_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EL_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.EL]

test_schema.py::test_field_with_key_function[Locale.EL]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EL-foo]

test_schema.py::test_lookup_method_field_error[Locale.EL-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.EL-invalid_field]

test_schema.py::test_field_error[Locale.EL-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_choice_field[Locale.EL]

test_schema.py::test_choice_field[Locale.EL]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.EL-street_name]

test_schema.py::test_field[Locale.EL-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_create[Locale.EL]

test_schema.py::test_schema_create[Locale.EL]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_different_separator[Locale.EL-text title]

test_schema.py::test_field_different_separator[Locale.EL-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.EL]

test_schema.py::test_schema_to_pickle[Locale.EL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E4')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E4/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E4/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.EL-full_name]

test_schema.py::test_field[Locale.EL-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EL-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.EL-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.EL]

test_schema.py::test_field_get_random_instance[Locale.EL]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_different_separator[Locale.EL-person:title]

test_schema.py::test_field_different_separator[Locale.EL-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EL-]

test_schema.py::test_lookup_method_field_error[Locale.EL-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.EL]

test_schema.py::test_explicit_lookup[Locale.EL]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_choice_field[Locale.DE_AT]

test_schema.py::test_choice_field[Locale.DE_AT]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_different_separator[Locale.DE_AT-person:title]

test_schema.py::test_field_different_separator[Locale.DE_AT-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.DE_AT-uuid]

test_schema.py::test_field[Locale.DE_AT-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.DE_AT]

test_schema.py::test_explicit_lookup[Locale.DE_AT]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE_AT]

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE_AT]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field[Locale.DE_AT-full_name]

test_schema.py::test_field[Locale.DE_AT-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.DE_AT-street_name]

test_schema.py::test_field[Locale.DE_AT-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.DE_AT]

test_schema.py::test_schema_to_json[Locale.DE_AT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_to_csv[Locale.DE_AT]

test_schema.py::test_schema_to_csv[Locale.DE_AT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_A0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_A0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_A0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.DE_AT-person.full_name.invalid]

test_schema.py::test_field_error[Locale.DE_AT-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-]

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-foo]

test_schema.py::test_lookup_method_field_error[Locale.DE_AT-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.DE_AT-unsupported_field]

test_schema.py::test_field_error[Locale.DE_AT-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.DE_AT]

test_schema.py::test_field_get_random_instance[Locale.DE_AT]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.DE_AT-invalid_field]

test_schema.py::test_field_error[Locale.DE_AT-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_pickle[Locale.DE_AT]

test_schema.py::test_schema_to_pickle[Locale.DE_AT]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.DE_AT-person.title]

test_schema.py::test_field_different_separator[Locale.DE_AT-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function[Locale.DE_AT]

test_schema.py::test_field_with_key_function[Locale.DE_AT]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.DE_AT]

test_schema.py::test_fuzzy_lookup[Locale.DE_AT]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.DE_AT-text title]

test_schema.py::test_field_different_separator[Locale.DE_AT-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.DE_AT]

test_schema.py::test_schema_create[Locale.DE_AT]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_csv[Locale.HR]

test_schema.py::test_schema_to_csv[Locale.HR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HR_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HR_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_HR_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_choice_field[Locale.HR]

test_schema.py::test_choice_field[Locale.HR]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.HR-street_name]

test_schema.py::test_field[Locale.HR-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.HR-uuid]

test_schema.py::test_field[Locale.HR-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_pickle[Locale.HR]

test_schema.py::test_schema_to_pickle[Locale.HR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_H1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.HR-text title]

test_schema.py::test_field_different_separator[Locale.HR-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.HR]

test_schema.py::test_fuzzy_lookup[Locale.HR]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.HR-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.HR-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.HR-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.HR-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.HR-invalid_field]

test_schema.py::test_field_error[Locale.HR-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function[Locale.HR]

test_schema.py::test_field_with_key_function[Locale.HR]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.HR-person:title]

test_schema.py::test_field_different_separator[Locale.HR-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.HR-foo]

test_schema.py::test_lookup_method_field_error[Locale.HR-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.HR]

test_schema.py::test_field_get_random_instance[Locale.HR]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_explicit_lookup[Locale.HR]

test_schema.py::test_explicit_lookup[Locale.HR]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_create[Locale.HR]

test_schema.py::test_schema_create[Locale.HR]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_error[Locale.HR-person.full_name.invalid]

test_schema.py::test_field_error[Locale.HR-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.HR]

test_schema.py::test_field_with_key_function_two_parameters[Locale.HR]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.HR-person.title]

test_schema.py::test_field_different_separator[Locale.HR-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.HR-full_name]

test_schema.py::test_field[Locale.HR-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.HR]

test_schema.py::test_schema_to_json[Locale.HR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HR_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HR_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_HR_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.HR-unsupported_field]

test_schema.py::test_field_error[Locale.HR-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.HR-]

test_schema.py::test_lookup_method_field_error[Locale.HR-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_unregister_handler

test_schema.py::test_unregister_handler
default_field = 

    def test_unregister_handler(default_field):
        # Make sure that there are no handlers.
        default_field.unregister_all_handlers()
        # Register fields first
        default_field.register_handler("my_field", my_field_handler)
        # Make sure that registration is done.
>       assert len(default_field._handlers.keys()) > 0
E       assert 0 > 0
E        +  where 0 = len(dict_keys([]))
E        +    where dict_keys([]) = ()
E        +      where  = {}.keys
E        +        where {} = ._handlers

tests/test_schema.py:476: AssertionError

test_schema.py::test_field_error[Locale.ES-unsupported_field]

test_schema.py::test_field_error[Locale.ES-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.ES-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.ES-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.ES-street_name]

test_schema.py::test_field[Locale.ES-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.ES-person.title]

test_schema.py::test_field_different_separator[Locale.ES-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_choice_field[Locale.ES]

test_schema.py::test_choice_field[Locale.ES]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.ES-uuid]

test_schema.py::test_field[Locale.ES-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.ES-text title]

test_schema.py::test_field_different_separator[Locale.ES-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.ES-invalid_field]

test_schema.py::test_field_error[Locale.ES-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.ES-person.full_name.invalid]

test_schema.py::test_field_error[Locale.ES-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.ES]

test_schema.py::test_schema_to_json[Locale.ES]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_create[Locale.ES]

test_schema.py::test_schema_create[Locale.ES]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_fuzzy_lookup[Locale.ES]

test_schema.py::test_fuzzy_lookup[Locale.ES]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ES-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.ES-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_csv[Locale.ES]

test_schema.py::test_schema_to_csv[Locale.ES]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.ES-full_name]

test_schema.py::test_field[Locale.ES-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ES-foo]

test_schema.py::test_lookup_method_field_error[Locale.ES-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ES-]

test_schema.py::test_lookup_method_field_error[Locale.ES-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.ES]

test_schema.py::test_field_get_random_instance[Locale.ES]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.ES]

test_schema.py::test_field_with_key_function_two_parameters[Locale.ES]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_pickle[Locale.ES]

test_schema.py::test_schema_to_pickle[Locale.ES]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E5')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E5/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E5/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function[Locale.ES]

test_schema.py::test_field_with_key_function[Locale.ES]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.ES-person:title]

test_schema.py::test_field_different_separator[Locale.ES-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_explicit_lookup[Locale.ES]

test_schema.py::test_explicit_lookup[Locale.ES]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_to_csv[Locale.EN_CA]

test_schema.py::test_schema_to_csv[Locale.EN_CA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_C0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_C0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_EN_C0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_CA]

test_schema.py::test_field_with_key_function_two_parameters[Locale.EN_CA]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_get_random_instance[Locale.EN_CA]

test_schema.py::test_field_get_random_instance[Locale.EN_CA]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_with_key_function[Locale.EN_CA]

test_schema.py::test_field_with_key_function[Locale.EN_CA]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_error[Locale.EN_CA-invalid_field]

test_schema.py::test_field_error[Locale.EN_CA-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.EN_CA-person.full_name.invalid]

test_schema.py::test_field_error[Locale.EN_CA-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.EN_CA-street_name]

test_schema.py::test_field[Locale.EN_CA-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.EN_CA]

test_schema.py::test_schema_create[Locale.EN_CA]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.EN_CA-full_name]

test_schema.py::test_field[Locale.EN_CA-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.EN_CA]

test_schema.py::test_fuzzy_lookup[Locale.EN_CA]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_error[Locale.EN_CA-unsupported_field]

test_schema.py::test_field_error[Locale.EN_CA-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.EN_CA-person.title]

test_schema.py::test_field_different_separator[Locale.EN_CA-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-foo]

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.EN_CA-uuid]

test_schema.py::test_field[Locale.EN_CA-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_CA-person:title]

test_schema.py::test_field_different_separator[Locale.EN_CA-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.EN_CA-text title]

test_schema.py::test_field_different_separator[Locale.EN_CA-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_explicit_lookup[Locale.EN_CA]

test_schema.py::test_explicit_lookup[Locale.EN_CA]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_to_pickle[Locale.EN_CA]

test_schema.py::test_schema_to_pickle[Locale.EN_CA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E6')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E6/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E6/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_choice_field[Locale.EN_CA]

test_schema.py::test_choice_field[Locale.EN_CA]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_schema_to_json[Locale.EN_CA]

test_schema.py::test_schema_to_json[Locale.EN_CA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_3')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_3/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_EN_3/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-]

test_schema.py::test_lookup_method_field_error[Locale.EN_CA-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.TR-person.title]

test_schema.py::test_field_different_separator[Locale.TR-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.TR-unsupported_field]

test_schema.py::test_field_error[Locale.TR-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.TR]

test_schema.py::test_schema_create[Locale.TR]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.TR-full_name]

test_schema.py::test_field[Locale.TR-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.TR-uuid]

test_schema.py::test_field[Locale.TR-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function[Locale.TR]

test_schema.py::test_field_with_key_function[Locale.TR]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_explicit_lookup[Locale.TR]

test_schema.py::test_explicit_lookup[Locale.TR]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.TR-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.TR-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.TR-person.full_name.invalid]

test_schema.py::test_field_error[Locale.TR-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.TR-street_name]

test_schema.py::test_field[Locale.TR-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.TR-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.TR-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.TR-person:title]

test_schema.py::test_field_different_separator[Locale.TR-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.TR]

test_schema.py::test_schema_to_pickle[Locale.TR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_T0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_T0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_T0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_choice_field[Locale.TR]

test_schema.py::test_choice_field[Locale.TR]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_with_key_function_two_parameters[Locale.TR]

test_schema.py::test_field_with_key_function_two_parameters[Locale.TR]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_get_random_instance[Locale.TR]

test_schema.py::test_field_get_random_instance[Locale.TR]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.TR]

test_schema.py::test_fuzzy_lookup[Locale.TR]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.TR]

test_schema.py::test_schema_to_csv[Locale.TR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_TR_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_TR_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_TR_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.TR-text title]

test_schema.py::test_field_different_separator[Locale.TR-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.TR]

test_schema.py::test_schema_to_json[Locale.TR]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_TR_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_TR_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_TR_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.TR-]

test_schema.py::test_lookup_method_field_error[Locale.TR-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.TR-invalid_field]

test_schema.py::test_field_error[Locale.TR-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.TR-foo]

test_schema.py::test_lookup_method_field_error[Locale.TR-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.JA]

test_schema.py::test_schema_create[Locale.JA]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.JA-full_name]

test_schema.py::test_field[Locale.JA-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.JA-street_name]

test_schema.py::test_field[Locale.JA-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.JA-person:title]

test_schema.py::test_field_different_separator[Locale.JA-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.JA-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.JA-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.JA]

test_schema.py::test_schema_to_json[Locale.JA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_JA_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_JA_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_JA_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.JA]

test_schema.py::test_fuzzy_lookup[Locale.JA]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_with_key_function[Locale.JA]

test_schema.py::test_field_with_key_function[Locale.JA]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field[Locale.JA-uuid]

test_schema.py::test_field[Locale.JA-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.JA-unsupported_field]

test_schema.py::test_field_error[Locale.JA-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_choice_field[Locale.JA]

test_schema.py::test_choice_field[Locale.JA]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.JA-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.JA-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.JA]

test_schema.py::test_field_with_key_function_two_parameters[Locale.JA]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_pickle[Locale.JA]

test_schema.py::test_schema_to_pickle[Locale.JA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_J0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_J0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_J0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.JA-person.full_name.invalid]

test_schema.py::test_field_error[Locale.JA-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.JA]

test_schema.py::test_field_get_random_instance[Locale.JA]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.JA-]

test_schema.py::test_lookup_method_field_error[Locale.JA-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.JA-person.title]

test_schema.py::test_field_different_separator[Locale.JA-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.JA-invalid_field]

test_schema.py::test_field_error[Locale.JA-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.JA-foo]

test_schema.py::test_lookup_method_field_error[Locale.JA-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.JA]

test_schema.py::test_explicit_lookup[Locale.JA]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_different_separator[Locale.JA-text title]

test_schema.py::test_field_different_separator[Locale.JA-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_csv[Locale.JA]

test_schema.py::test_schema_to_csv[Locale.JA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_JA_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_JA_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_JA_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-]

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.DE_CH-person.title]

test_schema.py::test_field_different_separator[Locale.DE_CH-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.DE_CH]

test_schema.py::test_schema_to_pickle[Locale.DE_CH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D2')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D2/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D2/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_explicit_lookup[Locale.DE_CH]

test_schema.py::test_explicit_lookup[Locale.DE_CH]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field[Locale.DE_CH-full_name]

test_schema.py::test_field[Locale.DE_CH-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.DE_CH-street_name]

test_schema.py::test_field[Locale.DE_CH-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_csv[Locale.DE_CH]

test_schema.py::test_schema_to_csv[Locale.DE_CH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_C0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_C0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_C0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_with_key_function[Locale.DE_CH]

test_schema.py::test_field_with_key_function[Locale.DE_CH]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field[Locale.DE_CH-uuid]

test_schema.py::test_field[Locale.DE_CH-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.DE_CH-invalid_field]

test_schema.py::test_field_error[Locale.DE_CH-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE_CH]

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE_CH]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_choice_field[Locale.DE_CH]

test_schema.py::test_choice_field[Locale.DE_CH]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-foo]

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.DE_CH]

test_schema.py::test_schema_create[Locale.DE_CH]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_json[Locale.DE_CH]

test_schema.py::test_schema_to_json[Locale.DE_CH]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_1')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_1/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_1/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.DE_CH-unsupported_field]

test_schema.py::test_field_error[Locale.DE_CH-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.DE_CH-person.full_name.invalid]

test_schema.py::test_field_error[Locale.DE_CH-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.DE_CH]

test_schema.py::test_field_get_random_instance[Locale.DE_CH]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_different_separator[Locale.DE_CH-person:title]

test_schema.py::test_field_different_separator[Locale.DE_CH-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.DE_CH-text title]

test_schema.py::test_field_different_separator[Locale.DE_CH-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.DE_CH]

test_schema.py::test_fuzzy_lookup[Locale.DE_CH]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.DE_CH-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_get_random_instance[Locale.RU]

test_schema.py::test_field_get_random_instance[Locale.RU]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.RU-uuid]

test_schema.py::test_field[Locale.RU-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.RU-foo]

test_schema.py::test_lookup_method_field_error[Locale.RU-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.RU-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.RU-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.RU-text title]

test_schema.py::test_field_different_separator[Locale.RU-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.RU-invalid_field]

test_schema.py::test_field_error[Locale.RU-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.RU-unsupported_field]

test_schema.py::test_field_error[Locale.RU-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_explicit_lookup[Locale.RU]

test_schema.py::test_explicit_lookup[Locale.RU]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_with_key_function[Locale.RU]

test_schema.py::test_field_with_key_function[Locale.RU]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.RU]

test_schema.py::test_field_with_key_function_two_parameters[Locale.RU]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field[Locale.RU-street_name]

test_schema.py::test_field[Locale.RU-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.RU-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.RU-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.RU-person.full_name.invalid]

test_schema.py::test_field_error[Locale.RU-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.RU-person.title]

test_schema.py::test_field_different_separator[Locale.RU-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.RU]

test_schema.py::test_schema_to_json[Locale.RU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_RU_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_RU_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_RU_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_create[Locale.RU]

test_schema.py::test_schema_create[Locale.RU]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_different_separator[Locale.RU-person:title]

test_schema.py::test_field_different_separator[Locale.RU-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_choice_field[Locale.RU]

test_schema.py::test_choice_field[Locale.RU]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_fuzzy_lookup[Locale.RU]

test_schema.py::test_fuzzy_lookup[Locale.RU]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.RU]

test_schema.py::test_schema_to_csv[Locale.RU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_RU_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_RU_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_RU_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.RU-]

test_schema.py::test_lookup_method_field_error[Locale.RU-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_pickle[Locale.RU]

test_schema.py::test_schema_to_pickle[Locale.RU]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_R0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_R0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_R0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.RU-full_name]

test_schema.py::test_field[Locale.RU-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field[Locale.FI-street_name]

test_schema.py::test_field[Locale.FI-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.FI-person.full_name.invalid]

test_schema.py::test_field_error[Locale.FI-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.FI-uuid]

test_schema.py::test_field[Locale.FI-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_get_random_instance[Locale.FI]

test_schema.py::test_field_get_random_instance[Locale.FI]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.FI-unsupported_field]

test_schema.py::test_field_error[Locale.FI-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.FI-foo]

test_schema.py::test_lookup_method_field_error[Locale.FI-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.FI-invalid_field]

test_schema.py::test_field_error[Locale.FI-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_pickle[Locale.FI]

test_schema.py::test_schema_to_pickle[Locale.FI]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_schema_create[Locale.FI]

test_schema.py::test_schema_create[Locale.FI]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_with_key_function[Locale.FI]

test_schema.py::test_field_with_key_function[Locale.FI]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_csv[Locale.FI]

test_schema.py::test_schema_to_csv[Locale.FI]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FI_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FI_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FI_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.FI-text title]

test_schema.py::test_field_different_separator[Locale.FI-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.FI]

test_schema.py::test_fuzzy_lookup[Locale.FI]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.FI-person:title]

test_schema.py::test_field_different_separator[Locale.FI-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.FI-]

test_schema.py::test_lookup_method_field_error[Locale.FI-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.FI]

test_schema.py::test_choice_field[Locale.FI]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.FI-full_name]

test_schema.py::test_field[Locale.FI-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.FI]

test_schema.py::test_field_with_key_function_two_parameters[Locale.FI]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_lookup_method_field_error[Locale.FI-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.FI-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.FI]

test_schema.py::test_schema_to_json[Locale.FI]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FI_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FI_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FI_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.FI-person.title]

test_schema.py::test_field_different_separator[Locale.FI-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_explicit_lookup[Locale.FI]

test_schema.py::test_explicit_lookup[Locale.FI]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.FI-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.FI-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.PL-uuid]

test_schema.py::test_field[Locale.PL-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PL-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.PL-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_csv[Locale.PL]

test_schema.py::test_schema_to_csv[Locale.PL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PL_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PL_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_PL_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.PL-]

test_schema.py::test_lookup_method_field_error[Locale.PL-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.PL-person:title]

test_schema.py::test_field_different_separator[Locale.PL-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.PL]

test_schema.py::test_field_get_random_instance[Locale.PL]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.PL-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.PL-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.PL-invalid_field]

test_schema.py::test_field_error[Locale.PL-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.PL]

test_schema.py::test_field_with_key_function_two_parameters[Locale.PL]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_lookup_method_field_error[Locale.PL-foo]

test_schema.py::test_lookup_method_field_error[Locale.PL-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.PL]

test_schema.py::test_field_with_key_function[Locale.PL]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_pickle[Locale.PL]

test_schema.py::test_schema_to_pickle[Locale.PL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P2')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P2/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_P2/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.PL-person.full_name.invalid]

test_schema.py::test_field_error[Locale.PL-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.PL-text title]

test_schema.py::test_field_different_separator[Locale.PL-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_json[Locale.PL]

test_schema.py::test_schema_to_json[Locale.PL]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PL_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PL_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_PL_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.PL]

test_schema.py::test_fuzzy_lookup[Locale.PL]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.PL-person.title]

test_schema.py::test_field_different_separator[Locale.PL-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.PL-full_name]

test_schema.py::test_field[Locale.PL-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.PL]

test_schema.py::test_choice_field[Locale.PL]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.PL-street_name]

test_schema.py::test_field[Locale.PL-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.PL]

test_schema.py::test_explicit_lookup[Locale.PL]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_error[Locale.PL-unsupported_field]

test_schema.py::test_field_error[Locale.PL-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_create[Locale.PL]

test_schema.py::test_schema_create[Locale.PL]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_fieldset_handle_decorator

test_schema.py::test_fieldset_handle_decorator
default_fieldset = 

    def test_fieldset_handle_decorator(default_fieldset):
        @default_fieldset.handle()
>       def my_field(random, **kwargs):
E       TypeError: 'NoneType' object is not callable

tests/test_schema.py:413: TypeError

test_schema.py::test_field_with_key_function_two_parameters[Locale.NO]

test_schema.py::test_field_with_key_function_two_parameters[Locale.NO]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_field_error[Locale.NO-invalid_field]

test_schema.py::test_field_error[Locale.NO-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NO-]

test_schema.py::test_lookup_method_field_error[Locale.NO-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.NO]

test_schema.py::test_field_with_key_function[Locale.NO]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_csv[Locale.NO]

test_schema.py::test_schema_to_csv[Locale.NO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NO_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NO_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_NO_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.NO-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.NO-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.NO-street_name]

test_schema.py::test_field[Locale.NO-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_create[Locale.NO]

test_schema.py::test_schema_create[Locale.NO]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_schema_to_pickle[Locale.NO]

test_schema.py::test_schema_to_pickle[Locale.NO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N2')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N2/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_N2/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.NO-uuid]

test_schema.py::test_field[Locale.NO-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.NO-unsupported_field]

test_schema.py::test_field_error[Locale.NO-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.NO]

test_schema.py::test_schema_to_json[Locale.NO]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NO_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NO_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_NO_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_get_random_instance[Locale.NO]

test_schema.py::test_field_get_random_instance[Locale.NO]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field[Locale.NO-full_name]

test_schema.py::test_field[Locale.NO-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.NO]

test_schema.py::test_fuzzy_lookup[Locale.NO]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_explicit_lookup[Locale.NO]

test_schema.py::test_explicit_lookup[Locale.NO]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NO-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.NO-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.NO-person.full_name.invalid]

test_schema.py::test_field_error[Locale.NO-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.NO-text title]

test_schema.py::test_field_different_separator[Locale.NO-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.NO-person.title]

test_schema.py::test_field_different_separator[Locale.NO-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.NO-person:title]

test_schema.py::test_field_different_separator[Locale.NO-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.NO-foo]

test_schema.py::test_lookup_method_field_error[Locale.NO-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.NO]

test_schema.py::test_choice_field[Locale.NO]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_unregister_all_handlers

test_schema.py::test_unregister_all_handlers
default_field = 

    def test_unregister_all_handlers(default_field):
        fields = [
            ("a", lambda rnd, **kwargs: kwargs),
            ("b", lambda rnd, **kwargs: kwargs),
            ("c", lambda rnd, **kwargs: kwargs),
        ]

        # Register fields first
        default_field.register_handlers(fields=fields)
>       assert len(default_field._handlers.keys()) == 3
E       assert 0 == 3
E        +  where 0 = len(dict_keys([]))
E        +    where dict_keys([]) = ()
E        +      where  = {}.keys
E        +        where {} = ._handlers

tests/test_schema.py:518: AssertionError

test_schema.py::test_register_handler_with_invalid_name[1a]

test_schema.py::test_register_handler_with_invalid_name[1a]
default_field = 
invalid_field_name = '1a'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

test_schema.py::test_schema_create[Locale.IS]

test_schema.py::test_schema_create[Locale.IS]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_with_key_function_two_parameters[Locale.IS]

test_schema.py::test_field_with_key_function_two_parameters[Locale.IS]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_lookup_method_field_error[Locale.IS-foo]

test_schema.py::test_lookup_method_field_error[Locale.IS-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.IS-unsupported_field]

test_schema.py::test_field_error[Locale.IS-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_csv[Locale.IS]

test_schema.py::test_schema_to_csv[Locale.IS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IS_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IS_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_IS_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.IS-]

test_schema.py::test_lookup_method_field_error[Locale.IS-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.IS-text title]

test_schema.py::test_field_different_separator[Locale.IS-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.IS-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.IS-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field[Locale.IS-full_name]

test_schema.py::test_field[Locale.IS-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_json[Locale.IS]

test_schema.py::test_schema_to_json[Locale.IS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IS_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IS_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_IS_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_different_separator[Locale.IS-person:title]

test_schema.py::test_field_different_separator[Locale.IS-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.IS-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.IS-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_choice_field[Locale.IS]

test_schema.py::test_choice_field[Locale.IS]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_explicit_lookup[Locale.IS]

test_schema.py::test_explicit_lookup[Locale.IS]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_different_separator[Locale.IS-person.title]

test_schema.py::test_field_different_separator[Locale.IS-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.IS]

test_schema.py::test_field_get_random_instance[Locale.IS]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.IS-invalid_field]

test_schema.py::test_field_error[Locale.IS-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_fuzzy_lookup[Locale.IS]

test_schema.py::test_fuzzy_lookup[Locale.IS]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field[Locale.IS-uuid]

test_schema.py::test_field[Locale.IS-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.IS-person.full_name.invalid]

test_schema.py::test_field_error[Locale.IS-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function[Locale.IS]

test_schema.py::test_field_with_key_function[Locale.IS]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_pickle[Locale.IS]

test_schema.py::test_schema_to_pickle[Locale.IS]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I1')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I1/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_I1/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.IS-street_name]

test_schema.py::test_field[Locale.IS-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_invalid_aliases[aliases0]

test_schema.py::test_field_invalid_aliases[aliases0]
default_field = 
aliases = {'🇺🇸': }

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_field_different_separator[Locale.ES_MX-text title]

test_schema.py::test_field_different_separator[Locale.ES_MX-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_pickle[Locale.ES_MX]

test_schema.py::test_schema_to_pickle[Locale.ES_MX]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E7')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E7/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_E7/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fuzzy_lookup[Locale.ES_MX]

test_schema.py::test_fuzzy_lookup[Locale.ES_MX]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-]

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.ES_MX-person.title]

test_schema.py::test_field_different_separator[Locale.ES_MX-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.ES_MX-full_name]

test_schema.py::test_field[Locale.ES_MX-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.ES_MX]

test_schema.py::test_choice_field[Locale.ES_MX]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field[Locale.ES_MX-uuid]

test_schema.py::test_field[Locale.ES_MX-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.ES_MX-invalid_field]

test_schema.py::test_field_error[Locale.ES_MX-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function_two_parameters[Locale.ES_MX]

test_schema.py::test_field_with_key_function_two_parameters[Locale.ES_MX]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_to_csv[Locale.ES_MX]

test_schema.py::test_schema_to_csv[Locale.ES_MX]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_M0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_M0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_ES_M0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.ES_MX-unsupported_field]

test_schema.py::test_field_error[Locale.ES_MX-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-foo]

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.ES_MX-person:title]

test_schema.py::test_field_different_separator[Locale.ES_MX-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_create[Locale.ES_MX]

test_schema.py::test_schema_create[Locale.ES_MX]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_with_key_function[Locale.ES_MX]

test_schema.py::test_field_with_key_function[Locale.ES_MX]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.ES_MX-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_to_json[Locale.ES_MX]

test_schema.py::test_schema_to_json[Locale.ES_MX]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_1')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_1/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_ES_1/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.ES_MX-street_name]

test_schema.py::test_field[Locale.ES_MX-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_get_random_instance[Locale.ES_MX]

test_schema.py::test_field_get_random_instance[Locale.ES_MX]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_error[Locale.ES_MX-person.full_name.invalid]

test_schema.py::test_field_error[Locale.ES_MX-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_explicit_lookup[Locale.ES_MX]

test_schema.py::test_explicit_lookup[Locale.ES_MX]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_error[Locale.FA-invalid_field]

test_schema.py::test_field_error[Locale.FA-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_get_random_instance[Locale.FA]

test_schema.py::test_field_get_random_instance[Locale.FA]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.FA]

test_schema.py::test_field_with_key_function_two_parameters[Locale.FA]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_create[Locale.FA]

test_schema.py::test_schema_create[Locale.FA]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field[Locale.FA-uuid]

test_schema.py::test_field[Locale.FA-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_choice_field[Locale.FA]

test_schema.py::test_choice_field[Locale.FA]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_schema_to_pickle[Locale.FA]

test_schema.py::test_schema_to_pickle[Locale.FA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F2')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F2/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_F2/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.FA-street_name]

test_schema.py::test_field[Locale.FA-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_different_separator[Locale.FA-person.title]

test_schema.py::test_field_different_separator[Locale.FA-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.FA-person.full_name.invalid]

test_schema.py::test_field_error[Locale.FA-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_with_key_function[Locale.FA]

test_schema.py::test_field_with_key_function[Locale.FA]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_fuzzy_lookup[Locale.FA]

test_schema.py::test_fuzzy_lookup[Locale.FA]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_schema_to_csv[Locale.FA]

test_schema.py::test_schema_to_csv[Locale.FA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FA_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FA_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_FA_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.FA-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.FA-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.FA-]

test_schema.py::test_lookup_method_field_error[Locale.FA-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.FA-foo]

test_schema.py::test_lookup_method_field_error[Locale.FA-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.FA-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.FA-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_different_separator[Locale.FA-text title]

test_schema.py::test_field_different_separator[Locale.FA-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_error[Locale.FA-unsupported_field]

test_schema.py::test_field_error[Locale.FA-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.FA-person:title]

test_schema.py::test_field_different_separator[Locale.FA-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.FA-full_name]

test_schema.py::test_field[Locale.FA-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_explicit_lookup[Locale.FA]

test_schema.py::test_explicit_lookup[Locale.FA]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_schema_to_json[Locale.FA]

test_schema.py::test_schema_to_json[Locale.FA]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FA_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FA_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_FA_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_get_random_instance[Locale.DE]

test_schema.py::test_field_get_random_instance[Locale.DE]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

test_schema.py::test_schema_to_pickle[Locale.DE]

test_schema.py::test_schema_to_pickle[Locale.DE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D3')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D3/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_D3/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.DE-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.DE-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_schema_create[Locale.DE]

test_schema.py::test_schema_create[Locale.DE]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_fuzzy_lookup[Locale.DE]

test_schema.py::test_fuzzy_lookup[Locale.DE]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field_different_separator[Locale.DE-person.title]

test_schema.py::test_field_different_separator[Locale.DE-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.DE-full_name]

test_schema.py::test_field[Locale.DE-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.DE]

test_schema.py::test_choice_field[Locale.DE]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_different_separator[Locale.DE-person:title]

test_schema.py::test_field_different_separator[Locale.DE-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE]

test_schema.py::test_field_with_key_function_two_parameters[Locale.DE]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_lookup_method_field_error[Locale.DE-foo]

test_schema.py::test_lookup_method_field_error[Locale.DE-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.DE-invalid_field]

test_schema.py::test_field_error[Locale.DE-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE-]

test_schema.py::test_lookup_method_field_error[Locale.DE-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_lookup_method_field_error[Locale.DE-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.DE-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.DE]

test_schema.py::test_field_with_key_function[Locale.DE]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_field_different_separator[Locale.DE-text title]

test_schema.py::test_field_different_separator[Locale.DE-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field[Locale.DE-uuid]

test_schema.py::test_field[Locale.DE-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_error[Locale.DE-person.full_name.invalid]

test_schema.py::test_field_error[Locale.DE-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_error[Locale.DE-unsupported_field]

test_schema.py::test_field_error[Locale.DE-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.DE]

test_schema.py::test_schema_to_json[Locale.DE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_2')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_2/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_DE_2/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_explicit_lookup[Locale.DE]

test_schema.py::test_explicit_lookup[Locale.DE]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field[Locale.DE-street_name]

test_schema.py::test_field[Locale.DE-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_schema_to_csv[Locale.DE]

test_schema.py::test_schema_to_csv[Locale.DE]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_DE_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_lookup_method_field_error[Locale.UK-person.surname.male]

test_schema.py::test_lookup_method_field_error[Locale.UK-person.surname.male]
localized_field = 
field_name = 'person.surname.male'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_explicit_lookup[Locale.UK]

test_schema.py::test_explicit_lookup[Locale.UK]
localized_field = 

    def test_explicit_lookup(localized_field):
        result = localized_field._explicit_lookup("person.surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:245: AssertionError

test_schema.py::test_field_with_key_function_two_parameters[Locale.UK]

test_schema.py::test_field_with_key_function_two_parameters[Locale.UK]
localized_field = 

    def test_field_with_key_function_two_parameters(localized_field):
        def key_function(value, random):
            return f"{value}_{random.randint(1, 100)}"

        result = localized_field("person.name", key=key_function)
>       name, number = result.split("_")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_schema.py:168: AttributeError

test_schema.py::test_schema_create[Locale.UK]

test_schema.py::test_schema_create[Locale.UK]
schema = 

    def test_schema_create(schema):
        result = schema.create()

>       assert len(result) == schema.iterations
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:297: TypeError

test_schema.py::test_field_different_separator[Locale.UK-person:title]

test_schema.py::test_field_different_separator[Locale.UK-person:title]
localized_field = 
field_name = 'person:title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person:title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.UK-foo.bar]

test_schema.py::test_lookup_method_field_error[Locale.UK-foo.bar]
localized_field = 
field_name = 'foo.bar'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_with_key_function[Locale.UK]

test_schema.py::test_field_with_key_function[Locale.UK]
localized_field = 

    def test_field_with_key_function(localized_field):
        result = localized_field("person.name", key=list)
>       assert isinstance(result, list) and len(result) >= 1
E       assert (False)
E        +  where False = isinstance(None, list)

tests/test_schema.py:160: AssertionError

test_schema.py::test_schema_to_pickle[Locale.UK]

test_schema.py::test_schema_to_pickle[Locale.UK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_U0')
schema = 

    def test_schema_to_pickle(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.pkl"
        schema.to_pickle(str(file))

>       data = pickle.loads(file.read_bytes())

tests/test_schema.py:341: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1126: in read_bytes
    with self.open(mode='rb') as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_U0/test.pkl')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_pickle_Locale_U0/test.pkl'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field[Locale.UK-full_name]

test_schema.py::test_field[Locale.UK-full_name]
localized_field = 
field_name = 'full_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('full_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_field_get_random_instance[Locale.UK]

test_schema.py::test_field_get_random_instance[Locale.UK]
localized_field = 

    def test_field_get_random_instance(localized_field):
>       assert isinstance(localized_field.get_random_instance(), Random)
E       assert False
E        +  where False = isinstance(None, Random)
E        +    where None = get_random_instance()
E        +      where get_random_instance = .get_random_instance

tests/test_schema.py:124: AssertionError

title]

title]
localized_field = 
field_name = 'person/title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person/title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_field_different_separator[Locale.UK-text title]

test_schema.py::test_field_different_separator[Locale.UK-text title]
localized_field = 
field_name = 'text title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('text title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.UK-foo]

test_schema.py::test_lookup_method_field_error[Locale.UK-foo]
localized_field = 
field_name = 'foo'

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_field_error[Locale.UK-person.full_name.invalid]

test_schema.py::test_field_error[Locale.UK-person.full_name.invalid]
localized_field = 
field_name = 'person.full_name.invalid'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field[Locale.UK-uuid]

test_schema.py::test_field[Locale.UK-uuid]
localized_field = 
field_name = 'uuid'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('uuid')

tests/test_schema.py:94: AssertionError

test_schema.py::test_lookup_method_field_error[Locale.UK-]

test_schema.py::test_lookup_method_field_error[Locale.UK-]
localized_field = 
field_name = ''

    @pytest.mark.parametrize(
        "field_name",
        [
            "",
            "foo",
            "foo.bar",
            "person.surname.male",
        ],
    )
    def test_lookup_method_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:266: Failed

test_schema.py::test_fuzzy_lookup[Locale.UK]

test_schema.py::test_fuzzy_lookup[Locale.UK]
localized_field = 

    def test_fuzzy_lookup(localized_field):
        result = localized_field._fuzzy_lookup("surname")

>       assert callable(result)
E       assert False
E        +  where False = callable(None)

tests/test_schema.py:252: AssertionError

test_schema.py::test_field[Locale.UK-street_name]

test_schema.py::test_field[Locale.UK-street_name]
localized_field = 
field_name = 'street_name'

    @pytest.mark.parametrize(
        "field_name",
        [
            "uuid",
            "full_name",
            "street_name",
        ],
    )
    def test_field(localized_field, field_name):
>       assert localized_field(field_name)
E       AssertionError: assert None
E        +  where None = ('street_name')

tests/test_schema.py:94: AssertionError

test_schema.py::test_choice_field[Locale.UK]

test_schema.py::test_choice_field[Locale.UK]
localized_field = 

    def test_choice_field(localized_field):
        result = localized_field("choice", items=["a", "b", "c", "d"], length=2)
>       assert len(result) == 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_schema.py:291: TypeError

test_schema.py::test_field_error[Locale.UK-invalid_field]

test_schema.py::test_field_error[Locale.UK-invalid_field]
localized_field = 
field_name = 'invalid_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_field_different_separator[Locale.UK-person.title]

test_schema.py::test_field_different_separator[Locale.UK-person.title]
localized_field = 
field_name = 'person.title'

    @pytest.mark.parametrize(
        "field_name",
        [
            "text title",
            "person.title",
            "person/title",
            "person:title",
        ],
    )
    def test_field_different_separator(localized_field, field_name):
>       assert isinstance(localized_field(field_name), str)
E       AssertionError: assert False
E        +  where False = isinstance(None, str)
E        +    where None = ('person.title')

tests/test_schema.py:107: AssertionError

test_schema.py::test_schema_to_csv[Locale.UK]

test_schema.py::test_schema_to_csv[Locale.UK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_UK_0')
schema = 

    def test_schema_to_csv(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.csv"
        schema.to_csv(str(file))

>       dict_reader = csv.DictReader(file.read_text("UTF-8").splitlines())

tests/test_schema.py:319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_UK_0/test.csv')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_csv_Locale_UK_0/test.csv'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_field_error[Locale.UK-unsupported_field]

test_schema.py::test_field_error[Locale.UK-unsupported_field]
localized_field = 
field_name = 'unsupported_field'

    @pytest.mark.parametrize(
        "field_name", ["person.full_name.invalid", "invalid_field", "unsupported_field"]
    )
    def test_field_error(localized_field, field_name):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:224: Failed

test_schema.py::test_schema_to_json[Locale.UK]

test_schema.py::test_schema_to_json[Locale.UK]
tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_UK_0')
schema = 

    def test_schema_to_json(tmp_path: "Path", schema: Schema):
        file = tmp_path / "test.json"
        schema.to_json(str(file), sort_keys=True, ensure_ascii=False)

>       data = json.loads(file.read_text("UTF-8"))

tests/test_schema.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/pathlib.py:1134: in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_UK_0/test.json')
mode = 'r', buffering = -1, encoding = 'UTF-8', errors = None, newline = None

    def open(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None):
        """
        Open the file pointed by this path and return a file object, as
        the built-in open() function does.
        """
        if "b" not in mode:
            encoding = io.text_encoding(encoding)
>       return self._accessor.open(self, mode, buffering, encoding, errors,
                                   newline)
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-root/pytest-0/test_schema_to_json_Locale_UK_0/test.json'

/usr/lib/python3.10/pathlib.py:1119: FileNotFoundError

test_schema.py::test_fieldset_field_error

test_schema.py::test_fieldset_field_error
default_fieldset = 

    def test_fieldset_field_error(default_fieldset):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:216: Failed

test_schema.py::test_field_invalid_aliases[aliases1]

test_schema.py::test_field_invalid_aliases[aliases1]
default_field = 
aliases = {'hey': 22}

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_register_handler_with_invalid_name[a\b]

test_schema.py::test_register_handler_with_invalid_name[a\\b]
default_field = 
invalid_field_name = 'a\\b'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

test_schema.py::test_field_aliasing

test_schema.py::test_field_aliasing
default_field = 

    def test_field_aliasing(default_field):
        default_field.aliases = {
            "🇺🇸": "country_code",
        }
>       assert default_field("🇺🇸")
E       AssertionError: assert None
E        +  where None = ('🇺🇸')

tests/test_schema.py:529: AssertionError

test_schema.py::test_register_handler_with_invalid_name[a-b]

test_schema.py::test_register_handler_with_invalid_name[a-b]
default_field = 
invalid_field_name = 'a-b'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

test_schema.py::test_field_invalid_aliases[aliases5]

test_schema.py::test_field_invalid_aliases[aliases5]
default_field = , aliases = []

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_register_handler_with_invalid_name[a.b]

test_schema.py::test_register_handler_with_invalid_name[a.b]
default_field = 
invalid_field_name = 'a.b'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

b]

b]
default_field = 
invalid_field_name = 'a/b'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

test_schema.py::test_unregister_handlers

test_schema.py::test_unregister_handlers
default_field = 

    def test_unregister_handlers(default_field):
        default_field.unregister_all_handlers()
        fields = [
            ("a", lambda rnd, **kwargs: kwargs),
            ("b", lambda rnd, **kwargs: kwargs),
            ("c", lambda rnd, **kwargs: kwargs),
        ]

        # Register fields first
        default_field.register_handlers(fields=fields)
>       assert len(default_field._handlers.keys()) == 3
E       assert 0 == 3
E        +  where 0 = len(dict_keys([]))
E        +    where dict_keys([]) = ()
E        +      where  = {}.keys
E        +        where {} = ._handlers

tests/test_schema.py:497: AssertionError

test_schema.py::test_field_raises_field_error

test_schema.py::test_field_raises_field_error
default_field = 

    def test_field_raises_field_error(default_field):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:229: Failed

test_schema.py::test_register_handler_with_invalid_name[a b]

test_schema.py::test_register_handler_with_invalid_name[a b]
default_field = 
invalid_field_name = 'a b'

    @pytest.mark.parametrize(
        "invalid_field_name",
        [
            "a.b",
            "a b",
            "a-b",
            "a/b",
            "a\\b",
            "1a",
        ],
    )
    def test_register_handler_with_invalid_name(default_field, invalid_field_name):
>       with pytest.raises(FieldNameError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:452: Failed

test_schema.py::test_register_handler[wow-my_field_handler]

test_schema.py::test_register_handler[wow-my_field_handler]
default_field = 
default_fieldset = 
field_name = 'wow', handler = 

    @pytest.mark.parametrize(
        "field_name, handler",
        [
            ("wow", MyFieldHandler()),
            ("wow", my_field_handler),
            ("wow", lambda rnd, a="a", c="d", **kwargs: rnd.choice([a, c])),
        ],
    )
    def test_register_handler(default_field, default_fieldset, field_name, handler):
        default_field.register_handler(field_name, handler)
        default_fieldset.register_handler(field_name, handler)

        res_1 = default_field(field_name, key=str.upper)
        res_2 = default_field(field_name, key=str.lower, a="a", c="c", d="e")

>       assert res_1.isupper() and res_2.islower()
E       AttributeError: 'NoneType' object has no attribute 'isupper'

tests/test_schema.py:390: AttributeError

test_schema.py::test_field_with_romanize[Locale.RU]

test_schema.py::test_field_with_romanize[Locale.RU]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_field_with_romanize(locale):
        localized_field = Field(locale=locale)
        result = localized_field("name", key=romanize(locale))
>       assert not all(unicodedata.category(char).startswith("C") for char in result)
E       TypeError: 'NoneType' object is not iterable

tests/test_schema.py:184: TypeError

test_schema.py::test_field_with_romanize[Locale.UK]

test_schema.py::test_field_with_romanize[Locale.UK]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_field_with_romanize(locale):
        localized_field = Field(locale=locale)
        result = localized_field("name", key=romanize(locale))
>       assert not all(unicodedata.category(char).startswith("C") for char in result)
E       TypeError: 'NoneType' object is not iterable

tests/test_schema.py:184: TypeError

test_schema.py::test_register_handler_callable_with_wrong_arity

test_schema.py::test_register_handler_callable_with_wrong_arity
default_field = 

    def test_register_handler_callable_with_wrong_arity(default_field):
        def wrong_arity(**kwargs):
            return "error"

>       with pytest.raises(FieldArityError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:428: Failed

test_schema.py::test_field_handle_decorator

test_schema.py::test_field_handle_decorator
default_field = 

    def test_field_handle_decorator(default_field):
        @default_field.handle("my_field")
>       def my_field(random, **kwargs):
E       TypeError: 'NoneType' object is not callable

tests/test_schema.py:400: TypeError

test_schema.py::test_field_invalid_aliases[aliases2]

test_schema.py::test_field_invalid_aliases[aliases2]
default_field = 
aliases = {12: 'email'}

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_custom_fieldset

test_schema.py::test_custom_fieldset
custom_fieldset = .MyFieldSet object at 0x7f01df8a7760>

    def test_custom_fieldset(custom_fieldset):
        result = custom_fieldset("name", iterations=3)
        assert isinstance(result, list) and len(result) == 3

>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:146: Failed

test_schema.py::test_fieldset_with_romanize[Locale.KK]

test_schema.py::test_fieldset_with_romanize[Locale.KK]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_fieldset_with_romanize(locale):
        localized_fieldset = Fieldset(locale=locale, i=5)
        romanized_results = localized_fieldset("name", key=romanize(locale))
        for result in romanized_results:
>           assert not all(unicodedata.category(char).startswith("C") for char in result)
E           TypeError: 'NoneType' object is not iterable

tests/test_schema.py:199: TypeError

test_schema.py::test_register_handler[wow-handler0]

test_schema.py::test_register_handler[wow-handler0]
default_field = 
default_fieldset = 
field_name = 'wow'
handler = 

    @pytest.mark.parametrize(
        "field_name, handler",
        [
            ("wow", MyFieldHandler()),
            ("wow", my_field_handler),
            ("wow", lambda rnd, a="a", c="d", **kwargs: rnd.choice([a, c])),
        ],
    )
    def test_register_handler(default_field, default_fieldset, field_name, handler):
        default_field.register_handler(field_name, handler)
        default_fieldset.register_handler(field_name, handler)

        res_1 = default_field(field_name, key=str.upper)
        res_2 = default_field(field_name, key=str.lower, a="a", c="c", d="e")

>       assert res_1.isupper() and res_2.islower()
E       AttributeError: 'NoneType' object has no attribute 'isupper'

tests/test_schema.py:390: AttributeError

test_schema.py::test_register_handler[wow-]

test_schema.py::test_register_handler[wow-]
default_field = 
default_fieldset = 
field_name = 'wow', handler =  at 0x7f01e45b13f0>

    @pytest.mark.parametrize(
        "field_name, handler",
        [
            ("wow", MyFieldHandler()),
            ("wow", my_field_handler),
            ("wow", lambda rnd, a="a", c="d", **kwargs: rnd.choice([a, c])),
        ],
    )
    def test_register_handler(default_field, default_fieldset, field_name, handler):
        default_field.register_handler(field_name, handler)
        default_fieldset.register_handler(field_name, handler)

        res_1 = default_field(field_name, key=str.upper)
        res_2 = default_field(field_name, key=str.lower, a="a", c="c", d="e")

>       assert res_1.isupper() and res_2.islower()
E       AttributeError: 'NoneType' object has no attribute 'isupper'

tests/test_schema.py:390: AttributeError

test_schema.py::test_register_handler_non_callable

test_schema.py::test_register_handler_non_callable
default_field = 

    def test_register_handler_non_callable(default_field):
>       with pytest.raises(TypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:433: Failed

test_schema.py::test_field_invalid_aliases[aliases3]

test_schema.py::test_field_invalid_aliases[aliases3]
default_field = 
aliases = {b'hey': 'email'}

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_field_with_romanize[Locale.KK]

test_schema.py::test_field_with_romanize[Locale.KK]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_field_with_romanize(locale):
        localized_field = Field(locale=locale)
        result = localized_field("name", key=romanize(locale))
>       assert not all(unicodedata.category(char).startswith("C") for char in result)
E       TypeError: 'NoneType' object is not iterable

tests/test_schema.py:184: TypeError

test_schema.py::test_fieldset_with_romanize[Locale.UK]

test_schema.py::test_fieldset_with_romanize[Locale.UK]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_fieldset_with_romanize(locale):
        localized_fieldset = Fieldset(locale=locale, i=5)
        romanized_results = localized_fieldset("name", key=romanize(locale))
        for result in romanized_results:
>           assert not all(unicodedata.category(char).startswith("C") for char in result)
E           TypeError: 'NoneType' object is not iterable

tests/test_schema.py:199: TypeError

test_schema.py::test_fieldset_with_romanize[Locale.RU]

test_schema.py::test_fieldset_with_romanize[Locale.RU]
locale = 

    @pytest.mark.parametrize(
        "locale",
        (
            Locale.RU,
            Locale.UK,
            Locale.KK,
        ),
    )
    def test_fieldset_with_romanize(locale):
        localized_fieldset = Fieldset(locale=locale, i=5)
        romanized_results = localized_fieldset("name", key=romanize(locale))
        for result in romanized_results:
>           assert not all(unicodedata.category(char).startswith("C") for char in result)
E           TypeError: 'NoneType' object is not iterable

tests/test_schema.py:199: TypeError

test_schema.py::test_field_invalid_aliases[aliases6]

test_schema.py::test_field_invalid_aliases[aliases6]
default_field = , aliases = ()

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_schema.py::test_register_handlers

test_schema.py::test_register_handlers
default_field = 

    def test_register_handlers(default_field):
        _kwargs = {"a": "a", "b": "b"}
        default_field.register_handlers(
            fields=[
                ("a", lambda rnd, **kwargs: kwargs),
                ("b", lambda rnd, **kwargs: kwargs),
                ("c", lambda rnd, lol="lol", **kwargs: kwargs),
            ]
        )

        result = default_field("a", **_kwargs)
>       assert result["a"] == _kwargs["a"] and result["b"] == _kwargs["b"]
E       TypeError: 'NoneType' object is not subscriptable

tests/test_schema.py:467: TypeError

test_schema.py::test_field_with_maybe

test_schema.py::test_field_with_maybe
default_field = 

    def test_field_with_maybe(default_field):
        result = default_field("person.name", key=maybe("foo", probability=1))
>       assert result == "foo"
E       AssertionError: assert None == 'foo'

tests/test_schema.py:204: AssertionError

test_schema.py::test_field_invalid_aliases[None]

test_schema.py::test_field_invalid_aliases[None]
default_field = , aliases = None

    @pytest.mark.parametrize(
        "aliases",
        [
            {"🇺🇸": tuple},
            {"hey": 22},
            {12: "email"},
            {b"hey": "email"},
            None,
            [],
            tuple(),
        ],
    )
    def test_field_invalid_aliases(default_field, aliases):
        default_field.aliases = aliases
>       with pytest.raises(AliasesTypeError):
E       Failed: DID NOT RAISE 

tests/test_schema.py:550: Failed

test_raw_objects.py::test_account_data

test_raw_objects.py::test_account_data
account = 

    def test_account_data(account):
        assert isinstance(account, Account)
        assert account.uid > 0
        assert account.username != ""
>       assert validators.email(account.email)
E       AssertionError: assert ValidationFailure(func=email, args={'value': 'None@exampleNone', 'whitelist': None})
E        +  where ValidationFailure(func=email, args={'value': 'None@exampleNone', 'whitelist': None}) = ('None@exampleNone')
E        +    where  = validators.email
E        +    and   'None@exampleNone' = .email

tests/test_plugins/test_factory/test_raw_objects.py:91: AssertionError

test_raw_objects.py::test_account_factory_different_data

test_raw_objects.py::test_account_factory_different_data
account_factory = 

    def test_account_factory_different_data(account_factory):
        account1 = account_factory()
        account2 = account_factory()

        assert isinstance(account1, Account)
        assert isinstance(account2, Account)
        assert account1 != account2
        assert account1.uid != account2.uid
>       assert account1.username != account2.username
E       assert None != None
E        +  where None = .username
E        +  and   None = .username

tests/test_plugins/test_factory/test_raw_objects.py:43: AssertionError

test_raw_objects.py::test_account_factory_create_batch

test_raw_objects.py::test_account_factory_create_batch
account_factory = 

    def test_account_factory_create_batch(account_factory):
        accounts = account_factory.create_batch(10)
        uids = {account.uid for account in accounts}
        usernames = {account.username for account in accounts}

        assert len(accounts) == len(uids)
>       assert len(accounts) == len(usernames)
E       assert 10 == 1
E        +  where 10 = len([, , , ...])
E        +  and   1 = len({None})

tests/test_plugins/test_factory/test_raw_objects.py:63: AssertionError

test_raw_objects.py::test_account_factory_build_batch

test_raw_objects.py::test_account_factory_build_batch
account_factory = 

    def test_account_factory_build_batch(account_factory):
        accounts = account_factory.build_batch(10)
        uids = {account.uid for account in accounts}
        usernames = {account.username for account in accounts}

        assert len(accounts) == len(uids)
>       assert len(accounts) == len(usernames)
E       assert 10 == 1
E        +  where 10 = len([, , , ...])
E        +  and   1 = len({None})

tests/test_plugins/test_factory/test_raw_objects.py:78: AssertionError

test_ukraine_spec.py::test_patronymic[Gender.FEMALE]

test_ukraine_spec.py::test_patronymic[Gender.FEMALE]
ukraine = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_patronymic(ukraine, gender):
        result = ukraine.patronymic(gender=gender)

>       assert result is not None
E       assert None is not None

tests/test_builtins/test_ukraine_spec.py:23: AssertionError

test_ukraine_spec.py::test_patronymic[Gender.MALE]

test_ukraine_spec.py::test_patronymic[Gender.MALE]
ukraine = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_patronymic(ukraine, gender):
        result = ukraine.patronymic(gender=gender)

>       assert result is not None
E       assert None is not None

tests/test_builtins/test_ukraine_spec.py:23: AssertionError

test_transport.py::TestTransport::test_car

test_transport.py::TestTransport::test_car
self = 
transport = 

    def test_car(self, transport):
        result = transport.car()
>       assert result in CARS
E       AssertionError: assert None in ['Alfa Romeo 145', 'Alfa Romeo 146', 'Alfa Romeo 147', 'Alfa Romeo 155', 'Alfa Romeo 156', 'Alfa Romeo 156 Sportwagon', ...]

tests/test_providers/test_transport.py:28: AssertionError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NL_BE]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NL_BE]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.CS]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.CS]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_str

test_transport.py::TestTransport::test_str
self = 
transport = 

    def test_str(self, transport):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(transport))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_transport.py:24: AssertionError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ES]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ES]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_airplane

test_transport.py::TestTransport::test_airplane
self = 
transport = 

    def test_airplane(self, transport):
        result = transport.airplane()
>       assert result in AIRPLANES
E       assert None in ['Aerospatiale SN.601 Corvette', 'Airbus A220-100', 'Airbus A220-300', 'Airbus A300-600', 'Airbus A300-600ST "Beluga"', 'Airbus A300-600ST "Super Transporter"', ...]

tests/test_providers/test_transport.py:35: AssertionError

test_transport.py::TestTransport::test_random_vehicle_registration_code

test_transport.py::TestTransport::test_random_vehicle_registration_code
self = 
transport = 

    def test_random_vehicle_registration_code(self, transport):
        result = transport.vehicle_registration_code(locale=None)
>       assert result in VR_CODES
E       AssertionError: assert None in ['A', 'ABH', 'AFG', 'AG', 'AL', 'AM', ...]

tests/test_providers/test_transport.py:44: AssertionError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PL]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PL]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.UK]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.UK]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.HU]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.HU]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE_AT]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE_AT]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FI]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FI]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_manufacturer

test_transport.py::TestTransport::test_manufacturer
self = 
transport = 

    def test_manufacturer(self, transport):
>       assert transport.manufacturer() in AUTO_MANUFACTURERS
E       AssertionError: assert None in ['Abarth', 'Alfa Romeo', 'Aston Martin', 'Audi', 'Bentley', 'BMW', ...]
E        +  where None = manufacturer()
E        +    where manufacturer = .manufacturer

tests/test_providers/test_transport.py:31: AssertionError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.SK]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.SK]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_GB]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_GB]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ZH]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ZH]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ES_MX]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ES_MX]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.HR]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.HR]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.KK]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.KK]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EL]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EL]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ET]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.ET]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PT]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PT]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE_CH]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE_CH]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FR]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FR]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_AU]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_AU]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.SV]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.SV]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DA]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DA]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NL]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NL]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.JA]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.JA]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.KO]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.KO]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FA]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.FA]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PT_BR]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.PT_BR]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.TR]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.TR]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.IT]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.IT]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NO]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.NO]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.DE]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.RU]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.RU]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_CA]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.EN_CA]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.IS]

test_transport.py::TestTransport::test_vehicle_registration_code[Locale.IS]
self = 
transport = 
locale = 

    @pytest.mark.parametrize("locale", Locale)
    def test_vehicle_registration_code(self, transport, locale):
        result = transport.vehicle_registration_code(locale=locale)
>       assert result in VRC_BY_LOCALES[locale.value]
E       TypeError: 'in ' requires string as left operand, not NoneType

tests/test_providers/test_transport.py:40: TypeError

test_field_handlers.py::test_factory_without_custom_field_handlers

test_field_handlers.py::test_factory_without_custom_field_handlers
factory_without_custom_field_handlers = 

    def test_factory_without_custom_field_handlers(factory_without_custom_field_handlers):
>       with pytest.raises(FieldError):
E       Failed: DID NOT RAISE 

tests/test_plugins/test_factory/test_field_handlers.py:40: Failed

test_field_handlers.py::test_factory_with_custom_field_handlers

test_field_handlers.py::test_factory_with_custom_field_handlers
factory_with_custom_field_handlers = 

    def test_factory_with_custom_field_handlers(factory_with_custom_field_handlers):
        guest = factory_with_custom_field_handlers()
        assert isinstance(guest, Guest)

>       assert 1 <= guest.age <= 99
E       TypeError: '<=' not supported between instances of 'int' and 'NoneType'

tests/test_plugins/test_factory/test_field_handlers.py:48: TypeError

test_locales.py::test_validate_locale_invalid_locale

test_locales.py::test_validate_locale_invalid_locale
def test_validate_locale_invalid_locale():
        with pytest.raises(LocaleError):
>           validate_locale(locale=None)

tests/test_locales.py:23: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = None

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
>           raise TypeError("The locale parameter is required.")
E           TypeError: The locale parameter is required.

mimesis/locales.py:20: TypeError

test_entrypoints.py::test_pytest_randomly

test_entrypoints.py::test_pytest_randomly
pytestconfig = <_pytest.config.Config object at 0x7f01e6e71360>

    def test_pytest_randomly(pytestconfig):
        try:
            randomly_seed = pytestconfig.getoption("randomly_seed")
        except ValueError:
            # Uninstall `pytest-randomly` to trigger this error.
            randomly_seed = MissingSeed

>       assert random.global_seed == randomly_seed
E       assert  == 3677741209
E        +  where  = random.global_seed

tests/test_entrypoints.py:14: AssertionError

test_file.py::TestFile::test_extension[FileType.AUDIO]

test_file.py::TestFile::test_extension[FileType.AUDIO]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.flac', '.mp3', '.m3u', '.m4a', '.wav', '.wma']

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_extension[FileType.TEXT]

test_file.py::TestFile::test_extension[FileType.TEXT]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.doc', '.docx', '.log', '.rtf', '.md', '.pdf', ...]

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_file_name[FileType.COMPRESSED]

test_file.py::TestFile::test_file_name[FileType.COMPRESSED]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.AUDIO]

test_file.py::TestFile::test_mime_type[MimeType.AUDIO]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['audio/1d-interleaved-parityfec', 'audio/32kadpcm', 'audio/3gpp', 'audio/3gpp2', 'audio/ac3', 'audio/AMR', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_file_name[FileType.EXECUTABLE]

test_file.py::TestFile::test_file_name[FileType.EXECUTABLE]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.MESSAGE]

test_file.py::TestFile::test_mime_type[MimeType.MESSAGE]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['message/CPIM', 'message/delivery-status', 'message/disposition-notification', 'message/example', 'message/external-body', 'message/feedback-report', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.VIDEO]

test_file.py::TestFile::test_mime_type[MimeType.VIDEO]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['video/1d-interleaved-parityfec', 'video/3gpp', 'video/3gpp-tt', 'video/3gpp2', 'video/BMPEG', 'video/BT656', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_file_name[FileType.AUDIO]

test_file.py::TestFile::test_file_name[FileType.AUDIO]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_extension[FileType.SOURCE]

test_file.py::TestFile::test_extension[FileType.SOURCE]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.a', '.asm', '.asp', '.awk', '.c', '.class', ...]

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_size

test_file.py::TestFile::test_size
self = 
file = 

    def test_size(self, file):
        result = file.size(10, 10)
>       size = result.split(" ")[0].strip()
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_providers/test_file.py:77: AttributeError

test_file.py::TestFile::test_file_name[FileType.IMAGE]

test_file.py::TestFile::test_file_name[FileType.IMAGE]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.TEXT]

test_file.py::TestFile::test_mime_type[MimeType.TEXT]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['text/1d-interleaved-parityfec', 'text/cache-manifest', 'text/calendar', 'text/css', 'text/csv', 'text/csv-schema', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_file_name[FileType.DATA]

test_file.py::TestFile::test_file_name[FileType.DATA]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_extension[FileType.EXECUTABLE]

test_file.py::TestFile::test_extension[FileType.EXECUTABLE]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.apk', '.app', '.bat', '.jar', '.com', '.exe']

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_extension[FileType.IMAGE]

test_file.py::TestFile::test_extension[FileType.IMAGE]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.bmp', '.jpg', '.jpeg', '.png', '.svg']

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_extension[FileType.COMPRESSED]

test_file.py::TestFile::test_extension[FileType.COMPRESSED]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.7z', '.war', '.zip', '.tar.gz', '.tar.xz', '.rar']

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.IMAGE]

test_file.py::TestFile::test_mime_type[MimeType.IMAGE]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['image/cgm', 'image/example', 'image/fits', 'image/g3fax', 'image/gif', 'image/ief', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_file_name[FileType.VIDEO]

test_file.py::TestFile::test_file_name[FileType.VIDEO]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_file_name[FileType.SOURCE]

test_file.py::TestFile::test_file_name[FileType.SOURCE]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_mime_type[MimeType.APPLICATION]

test_file.py::TestFile::test_mime_type[MimeType.APPLICATION]
self = 
file = 
type_ = 

    @pytest.mark.parametrize(
        "type_",
        [
            MimeType.APPLICATION,
            MimeType.AUDIO,
            MimeType.IMAGE,
            MimeType.MESSAGE,
            MimeType.TEXT,
            MimeType.VIDEO,
        ],
    )
    def test_mime_type(self, file, type_):
        result = file.mime_type(type_=type_)
>       assert result in MIME_TYPES[type_.value]
E       AssertionError: assert None in ['application/1d-interleaved-parityfec', 'application/3gpdash-qoe-report+xml', 'application/3gpp-ims+xml', 'application/A2L', 'application/activemessage', 'application/alto-costmap+json', ...]

tests/test_providers/test_file.py:51: AssertionError

test_file.py::TestFile::test_file_name[FileType.TEXT]

test_file.py::TestFile::test_file_name[FileType.TEXT]
self = 
file = 
file_type = 

    @pytest.mark.parametrize(
        "file_type",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_file_name(self, file, file_type):
        result = file.file_name(file_type=file_type)

>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_file.py:72: AssertionError

test_file.py::TestFile::test_str

test_file.py::TestFile::test_str
self = 
file = 

    def test_str(self, file):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(file))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_file.py:19: AssertionError

test_file.py::TestFile::test_extension[FileType.VIDEO]

test_file.py::TestFile::test_extension[FileType.VIDEO]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.3gp', '.mp4', '.abi', '.m4v', '.mov', '.mpg', ...]

tests/test_providers/test_file.py:36: AssertionError

test_file.py::TestFile::test_extension[FileType.DATA]

test_file.py::TestFile::test_extension[FileType.DATA]
self = 
file = 
extension = 

    @pytest.mark.parametrize(
        "extension",
        [
            FileType.AUDIO,
            FileType.COMPRESSED,
            FileType.DATA,
            FileType.EXECUTABLE,
            FileType.IMAGE,
            FileType.SOURCE,
            FileType.TEXT,
            FileType.VIDEO,
        ],
    )
    def test_extension(self, file, extension):
        ext = file.extension(file_type=extension)
>       assert ext in EXTENSIONS[extension.value]
E       AssertionError: assert None in ['.csv', '.dat', '.ged', '.pps', '.ppt', '.pptx']

tests/test_providers/test_file.py:36: AssertionError

test_pytest.py::test_mimesis_fixture_with_overridden_locale[Locale.RU]

test_pytest.py::test_mimesis_fixture_with_overridden_locale[Locale.RU]
file /testbed/tests/test_plugins/test_pytest.py, line 24
  @pytest.mark.parametrize("mimesis_locale", [Locale.RU])
  def test_mimesis_fixture_with_overridden_locale(mimesis, mimesis_locale):
file /testbed/mimesis/plugins/pytest.py, line 15
  @pytest.fixture()
  def mimesis(_mimesis_cache: _CacheCallable, mimesis_locale: Locale) -> Field:
E       fixture '_mimesis_cache' not found
>       available fixtures: __pytest_repeat_step_number, _session_faker, address, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, doctest_namespace, dt, factoryboy_request, faker, faker_seed, finance, food, generic, include_metadata_in_junit_xml, json_metadata, metadata, mimesis, mimesis_locale, mocker, module_mocker, monkeypatch, no_cover, package_mocker, path, person, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, seed, session_mocker, text, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/testbed/mimesis/plugins/pytest.py:15

test_pytest.py::test_locale_override[Locale.DE]

test_pytest.py::test_locale_override[Locale.DE]
file /testbed/tests/test_plugins/test_pytest.py, line 13
  @pytest.mark.parametrize("mimesis_locale", [Locale.DE])
  def test_locale_override(mimesis_locale, mimesis):
file /testbed/mimesis/plugins/pytest.py, line 15
  @pytest.fixture()
  def mimesis(_mimesis_cache: _CacheCallable, mimesis_locale: Locale) -> Field:
E       fixture '_mimesis_cache' not found
>       available fixtures: __pytest_repeat_step_number, _session_faker, address, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, doctest_namespace, dt, factoryboy_request, faker, faker_seed, finance, food, generic, include_metadata_in_junit_xml, json_metadata, metadata, mimesis, mimesis_locale, mocker, module_mocker, monkeypatch, no_cover, package_mocker, path, person, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, seed, session_mocker, text, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/testbed/mimesis/plugins/pytest.py:15

test_pytest.py::test_mimesis_fixture

test_pytest.py::test_mimesis_fixture
file /testbed/tests/test_plugins/test_pytest.py, line 19
  def test_mimesis_fixture(mimesis):
file /testbed/mimesis/plugins/pytest.py, line 15
  @pytest.fixture()
  def mimesis(_mimesis_cache: _CacheCallable, mimesis_locale: Locale) -> Field:
E       fixture '_mimesis_cache' not found
>       available fixtures: __pytest_repeat_step_number, _session_faker, address, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, doctest_namespace, dt, factoryboy_request, faker, faker_seed, finance, food, generic, include_metadata_in_junit_xml, json_metadata, metadata, mimesis, mimesis_locale, mocker, module_mocker, monkeypatch, no_cover, package_mocker, path, person, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, seed, session_mocker, text, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/testbed/mimesis/plugins/pytest.py:15

test_pytest.py::test_locale

test_pytest.py::test_locale
file /testbed/tests/test_plugins/test_pytest.py, line 8
  def test_locale(mimesis_locale, mimesis):
file /testbed/mimesis/plugins/pytest.py, line 15
  @pytest.fixture()
  def mimesis(_mimesis_cache: _CacheCallable, mimesis_locale: Locale) -> Field:
E       fixture '_mimesis_cache' not found
>       available fixtures: __pytest_repeat_step_number, _session_faker, address, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, doctest_namespace, dt, factoryboy_request, faker, faker_seed, finance, food, generic, include_metadata_in_junit_xml, json_metadata, metadata, mimesis, mimesis_locale, mocker, module_mocker, monkeypatch, no_cover, package_mocker, path, person, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, seed, session_mocker, text, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/testbed/mimesis/plugins/pytest.py:15

test_base.py::TestBase::test_str

test_base.py::TestBase::test_str
self = 
base_data_provider = .TestProvider object at 0x7f01e2b89840>

    def test_str(self, base_data_provider):
>       assert re.match(patterns.DATA_PROVIDER_STR_REGEX, str(base_data_provider))
E       AssertionError: assert None
E        +  where None = ('^(Address|Finance|Datetime|Food|Person|Text|BaseDataProvider|BaseField|Field) $', 'TestProvider ')
E        +    where  = re.match
E        +    and   '^(Address|Finance|Datetime|Food|Person|Text|BaseDataProvider|BaseField|Field) $' = patterns.DATA_PROVIDER_STR_REGEX
E        +    and   'TestProvider ' = str(.TestProvider object at 0x7f01e2b89840>)

tests/test_providers/test_base.py:201: AssertionError

test_binary.py::TestBinaryFile::test_all_methods[video-extensions0]

test_binary.py::TestBinaryFile::test_all_methods[video-extensions0]
self = 
binary = 
method_name = 'video'
extensions = (, )

    @pytest.mark.parametrize(
        "method_name, extensions",
        [
            ("video", (VideoFile.MP4, VideoFile.MOV)),
            ("audio", (AudioFile.MP3, AudioFile.AAC)),
            ("image", (ImageFile.PNG, ImageFile.JPG, ImageFile.GIF)),
            ("document", (DocumentFile.DOCX, DocumentFile.XLSX, DocumentFile.PDF)),
            ("compressed", (CompressedFile.ZIP, CompressedFile.GZIP)),
        ],
    )
    def test_all_methods(self, binary, method_name, extensions):
        method = getattr(binary, method_name)
        with pytest.raises(TypeError):
            for extension in extensions:
                method(extension)

        for extension in extensions:
            content = method(file_type=extension)
>           assert isinstance(content, bytes)
E           assert False
E            +  where False = isinstance(None, bytes)

tests/test_providers/test_binary.py:38: AssertionError

test_binary.py::TestBinaryFile::test_all_methods[audio-extensions1]

test_binary.py::TestBinaryFile::test_all_methods[audio-extensions1]
self = 
binary = 
method_name = 'audio'
extensions = (, )

    @pytest.mark.parametrize(
        "method_name, extensions",
        [
            ("video", (VideoFile.MP4, VideoFile.MOV)),
            ("audio", (AudioFile.MP3, AudioFile.AAC)),
            ("image", (ImageFile.PNG, ImageFile.JPG, ImageFile.GIF)),
            ("document", (DocumentFile.DOCX, DocumentFile.XLSX, DocumentFile.PDF)),
            ("compressed", (CompressedFile.ZIP, CompressedFile.GZIP)),
        ],
    )
    def test_all_methods(self, binary, method_name, extensions):
        method = getattr(binary, method_name)
        with pytest.raises(TypeError):
            for extension in extensions:
                method(extension)

        for extension in extensions:
            content = method(file_type=extension)
>           assert isinstance(content, bytes)
E           assert False
E            +  where False = isinstance(None, bytes)

tests/test_providers/test_binary.py:38: AssertionError

test_binary.py::TestBinaryFile::test_all_methods[compressed-extensions4]

test_binary.py::TestBinaryFile::test_all_methods[compressed-extensions4]
self = 
binary = 
method_name = 'compressed'
extensions = (, )

    @pytest.mark.parametrize(
        "method_name, extensions",
        [
            ("video", (VideoFile.MP4, VideoFile.MOV)),
            ("audio", (AudioFile.MP3, AudioFile.AAC)),
            ("image", (ImageFile.PNG, ImageFile.JPG, ImageFile.GIF)),
            ("document", (DocumentFile.DOCX, DocumentFile.XLSX, DocumentFile.PDF)),
            ("compressed", (CompressedFile.ZIP, CompressedFile.GZIP)),
        ],
    )
    def test_all_methods(self, binary, method_name, extensions):
        method = getattr(binary, method_name)
        with pytest.raises(TypeError):
            for extension in extensions:
                method(extension)

        for extension in extensions:
            content = method(file_type=extension)
>           assert isinstance(content, bytes)
E           assert False
E            +  where False = isinstance(None, bytes)

tests/test_providers/test_binary.py:38: AssertionError

test_binary.py::TestBinaryFile::test_all_methods[document-extensions3]

test_binary.py::TestBinaryFile::test_all_methods[document-extensions3]
self = 
binary = 
method_name = 'document'
extensions = (, , )

    @pytest.mark.parametrize(
        "method_name, extensions",
        [
            ("video", (VideoFile.MP4, VideoFile.MOV)),
            ("audio", (AudioFile.MP3, AudioFile.AAC)),
            ("image", (ImageFile.PNG, ImageFile.JPG, ImageFile.GIF)),
            ("document", (DocumentFile.DOCX, DocumentFile.XLSX, DocumentFile.PDF)),
            ("compressed", (CompressedFile.ZIP, CompressedFile.GZIP)),
        ],
    )
    def test_all_methods(self, binary, method_name, extensions):
        method = getattr(binary, method_name)
        with pytest.raises(TypeError):
            for extension in extensions:
                method(extension)

        for extension in extensions:
            content = method(file_type=extension)
>           assert isinstance(content, bytes)
E           assert False
E            +  where False = isinstance(None, bytes)

tests/test_providers/test_binary.py:38: AssertionError

test_binary.py::TestBinaryFile::test_all_methods[image-extensions2]

test_binary.py::TestBinaryFile::test_all_methods[image-extensions2]
self = 
binary = 
method_name = 'image'
extensions = (, , )

    @pytest.mark.parametrize(
        "method_name, extensions",
        [
            ("video", (VideoFile.MP4, VideoFile.MOV)),
            ("audio", (AudioFile.MP3, AudioFile.AAC)),
            ("image", (ImageFile.PNG, ImageFile.JPG, ImageFile.GIF)),
            ("document", (DocumentFile.DOCX, DocumentFile.XLSX, DocumentFile.PDF)),
            ("compressed", (CompressedFile.ZIP, CompressedFile.GZIP)),
        ],
    )
    def test_all_methods(self, binary, method_name, extensions):
        method = getattr(binary, method_name)
        with pytest.raises(TypeError):
            for extension in extensions:
                method(extension)

        for extension in extensions:
            content = method(file_type=extension)
>           assert isinstance(content, bytes)
E           assert False
E            +  where False = isinstance(None, bytes)

tests/test_providers/test_binary.py:38: AssertionError

test_russia_spec.py::test_bic

test_russia_spec.py::test_bic
russia = 

    def test_bic(russia):
        result = russia.bic()
>       assert len(result) == 9
E       TypeError: object of type 'NoneType' has no len()

tests/test_builtins/test_russia_spec.py:77: TypeError

test_russia_spec.py::test_snils

test_russia_spec.py::test_snils
russia = 

    def test_snils(russia):
        result = russia.snils()
>       assert len(result) == 11
E       TypeError: object of type 'NoneType' has no len()

tests/test_builtins/test_russia_spec.py:61: TypeError

test_russia_spec.py::test_generate_sentence

test_russia_spec.py::test_generate_sentence
russia = 

    def test_generate_sentence(russia):
        result = russia.generate_sentence()
>       assert len(result) >= 20
E       TypeError: object of type 'NoneType' has no len()

tests/test_builtins/test_russia_spec.py:55: TypeError

test_russia_spec.py::test_patronymic[Gender.FEMALE]

test_russia_spec.py::test_patronymic[Gender.FEMALE]
russia = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_patronymic(russia, gender):
        result = russia.patronymic(gender=gender)

>       assert result is not None
E       assert None is not None

tests/test_builtins/test_russia_spec.py:46: AssertionError

test_russia_spec.py::test_passport_series_parametrized

test_russia_spec.py::test_passport_series_parametrized
russia = 

    def test_passport_series_parametrized(russia):
        series = russia.passport_series(year=10)
>       region, year = series.split(" ")
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_builtins/test_russia_spec.py:20: AttributeError

test_russia_spec.py::test_inn

test_russia_spec.py::test_inn
russia = 

    def test_inn(russia):
        result = russia.inn()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_builtins/test_russia_spec.py:66: AssertionError

test_russia_spec.py::test_ogrn

test_russia_spec.py::test_ogrn
russia = 

    def test_ogrn(russia):
        result = russia.ogrn()
>       assert len(result) == 13
E       TypeError: object of type 'NoneType' has no len()

tests/test_builtins/test_russia_spec.py:72: TypeError

test_russia_spec.py::test_passport_number

test_russia_spec.py::test_passport_number
russia = 

    def test_passport_number(russia):
        result = russia.passport_number()
>       assert isinstance(result, int)
E       assert False
E        +  where False = isinstance(None, int)

tests/test_builtins/test_russia_spec.py:27: AssertionError

test_russia_spec.py::test_patronymic[Gender.MALE]

test_russia_spec.py::test_patronymic[Gender.MALE]
russia = 
gender = 

    @pytest.mark.parametrize(
        "gender",
        [
            Gender.FEMALE,
            Gender.MALE,
        ],
    )
    def test_patronymic(russia, gender):
        result = russia.patronymic(gender=gender)

>       assert result is not None
E       assert None is not None

tests/test_builtins/test_russia_spec.py:46: AssertionError

test_russia_spec.py::test_series_and_number

test_russia_spec.py::test_series_and_number
russia = 

    def test_series_and_number(russia):
        result = russia.series_and_number()
>       assert result is not None
E       assert None is not None

tests/test_builtins/test_russia_spec.py:33: AssertionError

test_russia_spec.py::test_passport_series

test_russia_spec.py::test_passport_series
russia = 

    def test_passport_series(russia):
        series = russia.passport_series()
>       assert isinstance(series.split(" "), list)
E       AttributeError: 'NoneType' object has no attribute 'split'

tests/test_builtins/test_russia_spec.py:15: AttributeError

test_russia_spec.py::test_kpp

test_russia_spec.py::test_kpp
russia = 

    def test_kpp(russia):
        result = russia.kpp()
>       assert len(result) == 9
E       TypeError: object of type 'NoneType' has no len()

tests/test_builtins/test_russia_spec.py:82: TypeError

test_food.py::TestFood::test_str[de-at]

test_food.py::TestFood::test_str[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[da]

test_food.py::TestFood::test_spices[da]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Allehånde', 'Anis', 'Asters', 'Basilikum', 'Bellis', 'Birkes', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_spices[es-mx]

test_food.py::TestFood::test_spices[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[sk]

test_food.py::TestFood::test_fruit[sk]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['banán', 'broskyňa', 'hruška', 'jablko', 'marhuľa', 'pomaranč', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[fr]

test_food.py::TestFood::test_spices[fr]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Ail', 'Arachide', 'Céleri', 'Curcuma', 'Échalote', 'Gingembre', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_dish[is]

test_food.py::TestFood::test_dish[is]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Hákarl', 'Súrir hrútspungar', 'Harðfiskur', 'Svið', 'Slátur', 'Hangikjöt', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_drink[ru]

test_food.py::TestFood::test_drink[ru]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Абсент', 'Авиация', 'Аквавит', 'Александр', 'Американо', 'Арак', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_vegetable[es-mx]

test_food.py::TestFood::test_vegetable[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[pt]

test_food.py::TestFood::test_drink[pt]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Super Bock', 'Sagres', 'Coral', 'Cergal', 'Cintra', 'Cristal', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_vegetable[is]

test_food.py::TestFood::test_vegetable[is]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Agúrka', 'Aspas', 'Beður', 'Blaðbeðja', 'Blaðkál', 'Blæjuber', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_dish[es-mx]

test_food.py::TestFood::test_dish[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[fi]

test_food.py::TestFood::test_fruit[fi]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Ananas', 'Ananaskirsikka', 'Annoona', 'Appelsiini', 'Aprikoosi', 'Avokado', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[es]

test_food.py::TestFood::test_spices[es]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Canela', 'Sal', 'Paprika', 'Pimienta', 'Canela', 'Sal', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[pt-br]

test_food.py::TestFood::test_drink[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[ko]

test_food.py::TestFood::test_dish[ko]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['가락국수', '가래떡', '가지볶음', '간장게장', '갈비찜', '갈비탕', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[cs]

test_food.py::TestFood::test_dish[cs]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Žemlovka', 'Vánočka', 'Trdelník', 'Svíčková', 'Smažený sýr', 'Palatschinke', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_drink[ko]

test_food.py::TestFood::test_drink[ko]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['갓마더', '갓파더', '건파이어', '겨우살이즙', '결명자차', '고량주', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_vegetable[de-at]

test_food.py::TestFood::test_vegetable[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[fi]

test_food.py::TestFood::test_drink[fi]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Absintit', 'Amaretto', 'Bacardi', 'Bacardi 151', 'Bacardi Breezer', 'Bacardi Superior', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_vegetable[de-ch]

test_food.py::TestFood::test_vegetable[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[et]

test_food.py::TestFood::test_spices[et]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       assert None in ['Aniis', 'Annatto', "Cayenne'i pipar", 'Fenugreek', 'Feerulavaik ehk juudavaik', 'Granaatõunaseemned', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[cs]

test_food.py::TestFood::test_drink[cs]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Víno', 'Vodka', 'Pivo', 'Cognac']

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_fruit[es-mx]

test_food.py::TestFood::test_fruit[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[pt-br]

test_food.py::TestFood::test_fruit[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_str[en-au]

test_food.py::TestFood::test_str[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[fa]

test_food.py::TestFood::test_drink[fa]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['آب', 'آبجو', 'آب معدنی', 'آبمیوه', 'چای', 'دم نوش', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_drink[hu]

test_food.py::TestFood::test_drink[hu]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Almalé', 'Ásványvíz', 'Búza sör', 'Fehérbor', 'Gin', 'Limonádé', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_spices[hr]

test_food.py::TestFood::test_spices[hr]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['anis', 'balzamovo sirće', 'biber', 'bijeli luk', 'bosiljak', 'celer', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[de]

test_food.py::TestFood::test_drink[de]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Altbier', 'Apfelsaft', 'Bier', 'Bockbier', 'Dunkles Lager/Export', 'Federweisser', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_vegetable[sv]

test_food.py::TestFood::test_vegetable[sv]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Arrowrot', 'Asiagurka', 'Aubergine', 'Avokado', 'Bittergurka', 'Bladgrönsaker', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[it]

test_food.py::TestFood::test_spices[it]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Aglio', 'Ajowan', 'Alloro', 'Aneto', 'Anice', 'Annatto', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_fruit[es]

test_food.py::TestFood::test_fruit[es]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Manzana', 'Fresa', 'Limón', 'Naranja', 'Pera', 'Piña', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[no]

test_food.py::TestFood::test_drink[no]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Absint', 'Likører', 'Vin']

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_drink[es]

test_food.py::TestFood::test_drink[es]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Agua', 'Alcohol', 'Alexander', 'Americano', 'Apple Martini', 'B-52', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_drink[sk]

test_food.py::TestFood::test_drink[sk]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['kofola', 'káva', 'pivo', 'slivovica', 'voda', 'víno', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_fruit[uk]

test_food.py::TestFood::test_fruit[uk]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Кизил', 'Карика дуболистна', 'Інжир', 'Cикомора', 'Виноград', 'Родзинки', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[en-au]

test_food.py::TestFood::test_spices[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[kk]

test_food.py::TestFood::test_drink[kk]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_spices[en-ca]

test_food.py::TestFood::test_spices[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[da]

test_food.py::TestFood::test_dish[da]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['And med agurkesalat og kål', 'Biksemad med rodfrugter', 'Boller i Karry', 'Boller i karry med hjemmelavet chutney', 'Brændende kærlighed', 'Dyreryg med kvædekompot', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_vegetable[fi]

test_food.py::TestFood::test_vegetable[fi]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Bataatti', 'Endiivi', 'Euroopanmerikaali', 'Fenkoli', 'Herne', 'Härkäpapu', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[is]

test_food.py::TestFood::test_spices[is]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Basilíka', 'Bergmynta', 'Blóðberg', 'Garðablóðberg', 'Hjartafró', 'Kóríander', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_fruit[pt]

test_food.py::TestFood::test_fruit[pt]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Maçã', 'Marmelo', 'Nêspera europeia', 'Nêspera', 'Pêra', 'Prunus virginiana', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[es]

test_food.py::TestFood::test_dish[es]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       assert None in ["Afuega'l pitu", 'Ajoblanco', 'Almogrote', 'Arroz a la cubana', 'Arroz con conejo y caracoles', 'Arroz con costra', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_fruit[et]

test_food.py::TestFood::test_fruit[et]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Aiva ehk küdoonia', 'Alõtša', 'Apelsin', 'Aprikoos', 'Avokaado', 'Bilimbi', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[tr]

test_food.py::TestFood::test_dish[tr]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Menemen', 'Köfte', 'Mantı', 'Kuzu Tandır', 'Lahmacun', 'Börek', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[uk]

test_food.py::TestFood::test_dish[uk]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Батончики із сиру', 'Биточки з баклажанів', 'Буряки з хріном', 'Жульєн із грибів', 'Закуска з баклажанів по-домашньому', 'Закуска із сиру по-верховинськи', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_vegetable[sk]

test_food.py::TestFood::test_vegetable[sk]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['mrkva', 'zemiak']

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[hr]

test_food.py::TestFood::test_vegetable[hr]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['batat', 'blitva', 'brokula', 'bukovače', 'bundeva', 'celer', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[no]

test_food.py::TestFood::test_vegetable[no]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Agurk', 'Amandine', 'Artiskokk', 'Asier', 'Asparge', 'Asparges', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[pl]

test_food.py::TestFood::test_fruit[pl]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Agrest', 'Ananas', 'Arbuz', 'Aronia', 'Banan', 'Borówka', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_fruit[tr]

test_food.py::TestFood::test_fruit[tr]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['elma', 'şeftali', 'muz', 'böğürtlen', 'kiraz', 'üzüm', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_vegetable[es]

test_food.py::TestFood::test_vegetable[es]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Artichoke', 'Arugula', 'Asparagus', 'Avocado', 'Bamboo Shoots', 'Bean Sprouts', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[it]

test_food.py::TestFood::test_fruit[it]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Mela', 'Pera', 'Banana', 'Arancia', 'Ananas', 'Ciliegia', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_fruit[sv]

test_food.py::TestFood::test_fruit[sv]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Alaskahallon', 'Allåkerbär', 'Amanatsu', 'Amaranth', 'Amerikanskt', 'Ananas', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[pl]

test_food.py::TestFood::test_drink[pl]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Absynt', 'Ajerkoniak', 'Alasz', 'Amaretto', 'Anyżówka', 'Aperitif', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[en-au]

test_food.py::TestFood::test_dish[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[tr]

test_food.py::TestFood::test_spices[tr]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['biberiye', 'rezene', 'kakule', 'frenk maydanozu', 'fesleğen', 'tere', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[et]

test_food.py::TestFood::test_vegetable[et]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Aed-mustjuur', 'Aed-piimjuur', 'Aedportulak', 'Aeduba', 'Apteegitill', 'Artišokk', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[pt-br]

test_food.py::TestFood::test_vegetable[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[fa]

test_food.py::TestFood::test_vegetable[fa]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['اسفناج', 'اسلیخ - شنگ', 'بادنجان', 'بامیه', 'پرپهن', 'پونه', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[en-au]

test_food.py::TestFood::test_fruit[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[nl-be]

test_food.py::TestFood::test_spices[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[nl]

test_food.py::TestFood::test_vegetable[nl]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Aardaker', 'Aardamandel', 'Aardappel', 'Aardpeer', 'Abc-kruid', 'Adelaarsvaren', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[fi]

test_food.py::TestFood::test_spices[fi]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Aaprottimaruna', 'Anisruoho', 'Annatto', 'Appelsiininkukkavesi', 'Ceyloninkaneli', 'Chili', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[tr]

test_food.py::TestFood::test_vegetable[tr]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['enginar', 'patlıcan', 'kuşkonmaz', 'kuru fasulye', 'pancar', 'brokoli', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[fa]

test_food.py::TestFood::test_fruit[fa]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['اختری', 'ازگیل', 'آسرولا', 'آلبالو', 'آلو بخارا', 'آلو برقانی', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[et]

test_food.py::TestFood::test_dish[et]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Aedviljatoit', 'Antipasto', 'Austrikaste', 'Bambusevõrsed', 'Basturma', 'Bergamo', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[ru]

test_food.py::TestFood::test_spices[ru]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Анис', 'Анис звездчатый', 'Аир', 'Ажгон', 'Асафетида', 'Аджван', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_spices[el]

test_food.py::TestFood::test_spices[el]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Άνηθος', 'Βασιλικός', 'Γαρίφαλο', 'Γκαράμ μασάλα', 'Γλυκάνισος', 'Δάφνη', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[de-at]

test_food.py::TestFood::test_drink[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[ru]

test_food.py::TestFood::test_vegetable[ru]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Кольраби', 'Брокколи', 'Брюссельская капуста', 'Савойская капуста', 'Пекинская капуста', 'Цветная капуста', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[en-ca]

test_food.py::TestFood::test_vegetable[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[kk]

test_food.py::TestFood::test_fruit[kk]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[zh]

test_food.py::TestFood::test_spices[zh]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['罗勒', '月桂叶', '细香葱', '莳萝', '墨角兰', '薄荷', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[da]

test_food.py::TestFood::test_drink[da]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Tekïlla', 'Vin', 'Vodka', 'Whisky', 'Øl']

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[ja]

test_food.py::TestFood::test_dish[ja]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['桜餅', '柏餅', '水ようかん', '水まんじゅう', 'おはぎ', 'みたらし団子', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[no]

test_food.py::TestFood::test_spices[no]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Allehånde', 'Anis', 'Berbere', 'Black Boy', 'Bouquet garni', 'Brasiliansk peppertre', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[pt]

test_food.py::TestFood::test_vegetable[pt]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Abacate', 'Abóbora', 'Abobrinha', 'Acelga', 'Agrião', 'Aipo', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[de]

test_food.py::TestFood::test_fruit[de]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Acerola', 'Acerola-Kirschen', 'Achachairú', 'Affenbrot', 'Akee', 'Allackerbeere', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[el]

test_food.py::TestFood::test_drink[el]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Αναψυκτικό', 'Καφές', 'Κονιάκ', 'Κρασί', 'Κόκκινο Κρασί', 'Λευκό Κρασί', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_fruit[en-gb]

test_food.py::TestFood::test_fruit[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[zh]

test_food.py::TestFood::test_drink[zh]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['可乐', '汽水', '果汁', '鲜榨汁', '蔬菜汁', '果蔬混合汁', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_fruit[fr]

test_food.py::TestFood::test_fruit[fr]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Abricot', 'Airelle', 'Alkékenge', 'Amande', 'Amélanche', 'Ananas', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[en-ca]

test_food.py::TestFood::test_drink[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[de-ch]

test_food.py::TestFood::test_drink[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[de-ch]

test_food.py::TestFood::test_dish[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[en-au]

test_food.py::TestFood::test_vegetable[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[pl]

test_food.py::TestFood::test_dish[pl]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Babka żółtkowa', 'Baranina', 'Barszcz', 'Barszcz biały', 'Bigos', 'Bliny gryczane', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[kk]

test_food.py::TestFood::test_spices[kk]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_fruit[el]

test_food.py::TestFood::test_fruit[el]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Άγριο βατόμουρο', 'Αβοκάντο', 'Αγγούρι', 'Αγριοφράουλα', 'Ακτινίδιο', 'Ανανάς', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_str[de-ch]

test_food.py::TestFood::test_str[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[zh]

test_food.py::TestFood::test_vegetable[zh]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['萝卜', '芜菁', '白菜', '甘蓝', '芥菜', '芹菜', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[el]

test_food.py::TestFood::test_vegetable[el]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Poivron', 'Αγγουράκι', 'Αγγούρι', 'Ανδρακλή', 'Γλυκοπίπερο', 'Γλυκό πατάτες', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_drink[is]

test_food.py::TestFood::test_drink[is]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Brennivín', 'Vodka', 'Bjór', 'Vín', 'Cognac']

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[nl-be]

test_food.py::TestFood::test_dish[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[kk]

test_food.py::TestFood::test_vegetable[kk]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_vegetable[fr]

test_food.py::TestFood::test_vegetable[fr]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Calebasse', 'Canna comestible', 'Capucine tubéreuse', 'Cardon', 'Carotte', 'Céleri', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_dish[ru]

test_food.py::TestFood::test_dish[ru]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Бефстроганов классический', 'Борщ без картошки с фасолью', 'Борщ с грибами', 'Вареники', 'Винегрет', 'Голубцы с перловкой и грибами', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_vegetable[cs]

test_food.py::TestFood::test_vegetable[cs]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Artyčok', 'Bambusové výhonky', 'Brambory', 'Brokolice', 'Celer', 'Chřest lékařský', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[cs]

test_food.py::TestFood::test_spices[cs]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Adžika', 'Anýz', 'Aromat', 'Asa foetida', 'Badyán', 'Bazalka', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_str[nl-be]

test_food.py::TestFood::test_str[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[nl]

test_food.py::TestFood::test_drink[nl]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Abdijbier', 'Absint', 'Absolut trouble', 'Advocaat', 'Aguardente', 'Aguardiente', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_drink[en-au]

test_food.py::TestFood::test_drink[en-au]
locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-AU'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-AU'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-au'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-au' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_str[en-ca]

test_food.py::TestFood::test_str[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[ko]

test_food.py::TestFood::test_fruit[ko]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['감', '감귤', '건포도', '고지베리', '골드키위', '곶감', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[en-ca]

test_food.py::TestFood::test_dish[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[no]

test_food.py::TestFood::test_dish[no]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Fenalår', 'Filmjölk', 'Finnbiff', 'Fish ball', 'Fiskesuppe', 'Freia Melkesjokolade', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[el]

test_food.py::TestFood::test_dish[el]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Αθερίνα', 'Απάκι', 'Αρακάς', 'Αρνάκι φούρνου με πατάτες', 'Αστακομακαρονάδα', 'Βασιλόπιτα', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_drink[uk]

test_food.py::TestFood::test_drink[uk]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Варенуха', 'Горілка', 'Зубрівка', 'Медуха', 'Наливка', 'Настянка', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_spices[de-ch]

test_food.py::TestFood::test_spices[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[is]

test_food.py::TestFood::test_fruit[is]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Ananas', 'Appelsínur', 'Apríkósur', 'Bananar', 'Bláber', 'Blóðappelsína', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[nl]

test_food.py::TestFood::test_dish[nl]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Balkenbrij', 'Bitterballen', 'Gehaktballen', 'Hutspot', 'Kibbeling', 'Oliebollen', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_fruit[da]

test_food.py::TestFood::test_fruit[da]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Abrikoser', 'Acai', 'Ackee', 'Agurker', 'Appelsiner', 'Aubergine', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_dish[pt-br]

test_food.py::TestFood::test_dish[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[de]

test_food.py::TestFood::test_dish[de]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       assert None in ['Aachener Printen', 'Altenburger "Aufläufer"', 'Apfelkuchen', 'Bayrisch Creme', 'Beamtenstippe', 'Birnen', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[kk]

test_food.py::TestFood::test_dish[kk]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Test']

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_vegetable[da]

test_food.py::TestFood::test_vegetable[da]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Agurk', 'Agurk', 'Artiskok', 'Asier', 'Asparges', 'Asparges', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_dish[fa]

test_food.py::TestFood::test_dish[fa]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['بستنی', 'آش', 'اشکنه', 'باقلاپلو', 'بریانی', 'ترشی', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_fruit[hr]

test_food.py::TestFood::test_fruit[hr]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['ananas', 'aronija', 'banana', 'bazga', 'borovnica', 'breskva', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[hu]

test_food.py::TestFood::test_spices[hu]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Angelika-fű', 'Angosztura', 'Ánizs', 'Árvácskafű', 'Babér', 'Bazsalikom', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_spices[pl]

test_food.py::TestFood::test_spices[pl]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Anyż', 'Anyżek', 'Bazylia', 'Chili', 'Chrzan', 'Cynamon', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_fruit[zh]

test_food.py::TestFood::test_fruit[zh]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['草莓', '蓝莓', '黑莓', '桑葚', '覆盆子', '葡萄', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_fruit[hu]

test_food.py::TestFood::test_fruit[hu]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Acai', 'Alma', 'Ananász', 'Avokádó', 'Banán', 'Berkenye', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[pt]

test_food.py::TestFood::test_spices[pt]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Açafrão', 'Aipo', 'Alcaparra', 'Alho', 'Anis-estrelado', 'Azeite', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[it]

test_food.py::TestFood::test_drink[it]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Amaretto', 'Amaro', 'Amarone della Valpolicella', 'Asti spumante', 'Barbaresco', 'Barbera', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[hr]

test_food.py::TestFood::test_dish[hr]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['bakalar', 'baklava', 'bečki odrezak', 'biftek', 'brudet', 'burek', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[nl]

test_food.py::TestFood::test_spices[nl]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Ajowan', 'Anijs', 'Asem', 'Assem', 'Basilicum', 'Bonenkruid', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_fruit[en-ca]

test_food.py::TestFood::test_fruit[en-ca]
locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-CA'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-CA'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-ca'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-ca' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[uk]

test_food.py::TestFood::test_vegetable[uk]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Олива', 'Авокадо', 'Азіміна', 'Лонган', 'Лічі', 'Маракуйя', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[cs]

test_food.py::TestFood::test_fruit[cs]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Ananas', 'Angrešt', 'Avokádo', 'Banán', 'Bluma', 'Borůvka', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[en-gb]

test_food.py::TestFood::test_drink[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[ja]

test_food.py::TestFood::test_vegetable[ja]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['あさつき', 'あしたば', 'アスパラガス', 'アロエ', 'イタリアンパセリ', 'うど', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[de-at]

test_food.py::TestFood::test_fruit[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[de-at]

test_food.py::TestFood::test_spices[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[it]

test_food.py::TestFood::test_vegetable[it]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Barbabietola Verde', 'Bietola', 'Broccoli', 'Carote', 'Cavolfiore', 'Cavolini di Bruxelles', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[ja]

test_food.py::TestFood::test_spices[ja]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['料理酒', 'みりん', '砂糖', '醤油', '穀物酢', '調味酢', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[nl-be]

test_food.py::TestFood::test_drink[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[ja]

test_food.py::TestFood::test_fruit[ja]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['いちご', 'タマリンド', '市田柿', 'サラク', 'ザイフリボク', 'ミラクルフルーツ', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_spices[fa]

test_food.py::TestFood::test_spices[fa]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['آویشن', 'انیسون', 'برگ بو', 'پاپریکا', 'تخم شنبلیه', 'تخم گشنیز', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[en-gb]

test_food.py::TestFood::test_vegetable[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_fruit[ru]

test_food.py::TestFood::test_fruit[ru]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Абиу', 'Абрикос', 'Авокадо', 'Айва', 'Аки', 'Алиберция', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_vegetable[pl]

test_food.py::TestFood::test_vegetable[pl]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Bakłażan', 'Batat', 'Bobik', 'Botwina', 'Brokuł', 'Brukiew', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_spices[uk]

test_food.py::TestFood::test_spices[uk]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Аніс', 'Айва', 'Ажгон', 'Цедра', 'Базилік', 'Барбарис', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_dish[de-at]

test_food.py::TestFood::test_dish[de-at]
locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-AT'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-AT'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-at'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-at' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[ja]

test_food.py::TestFood::test_drink[ja]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['日本茶', 'ナイト・キャップ', 'トム・アンド・ジェリー', '電気ブラン', 'デプス・ボム', 'ブランデー・エッグノッグ', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_spices[ko]

test_food.py::TestFood::test_spices[ko]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['강황', '겨자', '계피', '고수', '고추', '고추냉이', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_drink[es-mx]

test_food.py::TestFood::test_drink[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[en-gb]

test_food.py::TestFood::test_dish[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_drink[et]

test_food.py::TestFood::test_drink[et]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Amaretto', 'Amarula', 'Aniisiviin', 'Aperitiiv', 'Arak', 'Ararat', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[sk]

test_food.py::TestFood::test_dish[sk]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['bravčový rezeň', 'bryndzové halušky', 'pizza', 'vyprážaný syr']

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_drink[tr]

test_food.py::TestFood::test_drink[tr]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['kola', 'meyve suyu', 'greyfrut suyu', 'portakal suyu', 'ananas suyu', 'domates suyu', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_str[en-gb]

test_food.py::TestFood::test_str[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[de]

test_food.py::TestFood::test_spices[de]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Ajowan', 'Amerikanischer Engelwurz', 'Anis', 'Arznei-Engelwurz', 'Asant', 'Bärlauch', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[hu]

test_food.py::TestFood::test_vegetable[hu]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Bab', 'Lencse', 'Sárgaborsó', 'Szója', 'Zöldborsó', 'Articsóka', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_dish[pt]

test_food.py::TestFood::test_dish[pt]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Alheira de Mirandela', 'Amêijoas à Bulhão Pato', 'Arroz Doce Tradicional', 'Arroz de Pato', 'Arroz de marisco', 'Assadura à Monchique', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[fi]

test_food.py::TestFood::test_dish[fi]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Bostonkakku', 'Graavilohi', 'Hanna-tädin pikkuleivät', 'Hernekeitto', 'Joulutorttu', 'Kaalikääryleet', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[en-gb]

test_food.py::TestFood::test_spices[en-gb]
locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'EN-GB'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'EN-GB'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'en-gb'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'en-gb' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[pt-br]

test_food.py::TestFood::test_spices[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_spices[sk]

test_food.py::TestFood::test_spices[sk]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['chili']

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_dish[hu]

test_food.py::TestFood::test_dish[hu]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Áfonyás sült túrótorta', 'Angyaltorta', 'Bácskai rizses hús', 'Baracktorta', 'Belga trüffel torta', 'Birkapörkölt', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_str[es-mx]

test_food.py::TestFood::test_str[es-mx]
locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'ES-MX'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'ES-MX'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'es-mx'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'es-mx' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[ko]

test_food.py::TestFood::test_vegetable[ko]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['가지', '감자', '고구마', '고사리', '고추', '곤드레나물', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_drink[sv]

test_food.py::TestFood::test_drink[sv]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Absint', 'Gin', 'Konjak', 'Rom', 'Rysk vodka', 'Snaps', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_drink[hr]

test_food.py::TestFood::test_drink[hr]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['bezalkoholni kokteli', 'coca-cola', 'gin-tonik', 'kakao', 'kava', 'ledeni čaj', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_dish[sv]

test_food.py::TestFood::test_dish[sv]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Ahlgrens bilar', 'Arraksboll', 'Biskvi', 'Blodkorv', 'Blodpalt', 'Blodpudding', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[zh]

test_food.py::TestFood::test_dish[zh]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['北京烤鸭', '四川麻婆豆腐', '西湖醋鱼', '飞龙汤', '无为熏鸭', '东坡肉', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_dish[it]

test_food.py::TestFood::test_dish[it]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       assert None in ["'Nduja", "'Nzuddha", 'Abbacchio', 'Agnolotti', 'Anelletti', 'Arancini', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_spices[sv]

test_food.py::TestFood::test_spices[sv]
self = 
food = 

    def test_spices(self, food):
        result = food.spices()
>       assert result in food._dataset["spices"]
E       AssertionError: assert None in ['Anis', 'Basilika', 'Bockhornsklöver', 'Cayennepeppar', 'Chilipeppar', 'Citrongräs', ...]

tests/test_providers/test_food.py:32: AssertionError

test_food.py::TestFood::test_vegetable[nl-be]

test_food.py::TestFood::test_vegetable[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_vegetable[de]

test_food.py::TestFood::test_vegetable[de]
self = 
food = 

    def test_vegetable(self, food):
        result = food.vegetable()
>       assert result in food._dataset["vegetables"]
E       AssertionError: assert None in ['Artischocke', 'Ähriger Erdbeerspinat', 'Bindesalat', 'Blumenkohl', 'Broccoli', 'Brunnenkresse', ...]

tests/test_providers/test_food.py:16: AssertionError

test_food.py::TestFood::test_fruit[de-ch]

test_food.py::TestFood::test_fruit[de-ch]
locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'DE-CH'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'DE-CH'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'de-ch'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'de-ch' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_str[pt-br]

test_food.py::TestFood::test_str[pt-br]
locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'PT-BR'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'PT-BR'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'pt-br'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'pt-br' is not supported.»

mimesis/locales.py:31: LocaleError

test_food.py::TestFood::test_dish[fr]

test_food.py::TestFood::test_dish[fr]
self = 
food = 

    def test_dish(self, food):
        result = food.dish()
>       assert result in food._dataset["dishes"]
E       AssertionError: assert None in ['Andouillette', 'Aïoli', 'Baeckeoffe', 'Baguette', 'Bisque', 'Bouillabaisse', ...]

tests/test_providers/test_food.py:24: AssertionError

test_food.py::TestFood::test_fruit[no]

test_food.py::TestFood::test_fruit[no]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Acai', 'Ackee', 'Agurker', 'Ananas', 'Appelsiner', 'Aprikos', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_drink[fr]

test_food.py::TestFood::test_drink[fr]
self = 
food = 

    def test_drink(self, food):
        result = food.drink()
>       assert result in food._dataset["drinks"]
E       AssertionError: assert None in ['Absinthe', 'Ale', 'Amaretto', 'Amers', 'Anisette', 'Aquavit', ...]

tests/test_providers/test_food.py:28: AssertionError

test_food.py::TestFood::test_fruit[nl]

test_food.py::TestFood::test_fruit[nl]
self = 
food = 

    def test_fruit(self, food):
        result = food.fruit()
>       assert result in food._dataset["fruits"]
E       AssertionError: assert None in ['Aalbes', 'Aardbei', 'Aardbeiboom', 'Aardbeiguave', 'Abrikoos', 'Acerola', ...]

tests/test_providers/test_food.py:20: AssertionError

test_food.py::TestFood::test_fruit[nl-be]

test_food.py::TestFood::test_fruit[nl-be]
locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
>           return Locale[locale.upper()]

mimesis/locales.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , name = 'NL-BE'

    def __getitem__(cls, name):
>       return cls._member_map_[name]
E       KeyError: 'NL-BE'

/usr/lib/python3.10/enum.py:440: KeyError

During handling of the above exception, another exception occurred:

request = >

    @pytest.fixture(params=Locale.values())
    def food(request):
>       return mimesis.Food(request.param)

tests/conftest.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/providers/base.py:114: in __init__
    self._setup_locale(locale)
mimesis/providers/base.py:124: in _setup_locale
    locale = validate_locale(locale)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

locale = 'nl-be'

    def validate_locale(locale=None) -> Locale:
        """Validate the locale and return the corresponding Locale enum member.

        Args:
            locale: The locale to validate. Can be a string or Locale enum member.

        Returns:
            Locale: The validated Locale enum member.

        Raises:
            TypeError: If locale parameter is missing.
            LocaleError: If locale is invalid or not supported.
        """
        if locale is None:
            raise TypeError("The locale parameter is required.")

        if isinstance(locale, Locale):
            return locale

        if not isinstance(locale, str):
            raise LocaleError("Locale must be a string or Locale enum member.")

        try:
            return Locale[locale.upper()]
        except KeyError:
>           raise LocaleError(f"Locale '{locale}' is not supported.")
E           mimesis.exceptions.LocaleError: Invalid locale «Locale 'nl-be' is not supported.»

mimesis/locales.py:31: LocaleError

test_numeric.py::TestNumbers::test_incremental

test_numeric.py::TestNumbers::test_incremental
self = 

    def test_incremental(self):
        numeric = Numeric()
        for i in range(1, 50 + 1):
>           assert numeric.increment() == i
E           assert None == 1
E            +  where None = increment()
E            +    where increment = .increment

tests/test_providers/test_numeric.py:24: AssertionError

test_numeric.py::TestNumbers::test_complex_number[1.2-10-1-2.4-15-15]

test_numeric.py::TestNumbers::test_complex_number[1.2-10-1-2.4-15-15]
self = 
numeric = , sr = 1.2
er = 10, si = 1, ei = 2.4, pr = 15, pi = 15

    @pytest.mark.parametrize(
        "sr, er, si, ei, pr, pi",
        [
            (1.2, 10, 1, 2.4, 15, 15),
            (10.4, 20.0, 2.3, 10, 10, 10),
            (20.3, 30.8, 2.4, 4.5, 12, 12),
        ],
    )
    def test_complex_number(self, numeric, sr, er, si, ei, pr, pi):
        result = numeric.complex_number(
            start_real=sr,
            end_real=er,
            start_imag=si,
            end_imag=ei,
            precision_real=pr,
            precision_imag=pi,
        )
>       assert isinstance(result, complex)
E       assert False
E        +  where False = isinstance(None, complex)

tests/test_providers/test_numeric.py:131: AssertionError

test_numeric.py::TestNumbers::test_incremental_with_accumulator

test_numeric.py::TestNumbers::test_incremental_with_accumulator
self = 
numeric = 

    def test_incremental_with_accumulator(self, numeric):
        for i in range(1, 50):
            for key in ("a", "b", "c"):
>               assert numeric.increment(accumulator=key) == i
E               AssertionError: assert None == 1
E                +  where None = increment(accumulator='a')
E                +    where increment = .increment

tests/test_providers/test_numeric.py:29: AssertionError

test_numeric.py::TestNumbers::test_decimals[10-20]

test_numeric.py::TestNumbers::test_decimals[10-20]
self = 
numeric = 
start = 10, end = 20

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_decimals(self, numeric, start, end):
        result = numeric.decimals(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:82: TypeError

test_numeric.py::TestNumbers::test_decimals[20-30]

test_numeric.py::TestNumbers::test_decimals[20-30]
self = 
numeric = 
start = 20, end = 30

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_decimals(self, numeric, start, end):
        result = numeric.decimals(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:82: TypeError

test_numeric.py::TestNumbers::test_matrix

test_numeric.py::TestNumbers::test_matrix
self = 
numeric = 

    def test_matrix(self, numeric):
        # TODO: Rewrite it to cover all cases

>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_numeric.py:138: Failed

test_numeric.py::TestNumbers::test_decimal

test_numeric.py::TestNumbers::test_decimal
self = 
numeric = 

    def test_decimal(self, numeric):
        result = numeric.decimal_number(-100, 100)
>       assert -100 <= result <= 100
E       TypeError: '<=' not supported between instances of 'int' and 'NoneType'

tests/test_providers/test_numeric.py:188: TypeError

test_numeric.py::TestNumbers::test_floats[20.3-30.8]

test_numeric.py::TestNumbers::test_floats[20.3-30.8]
self = 
numeric = 
start = 20.3, end = 30.8

    @pytest.mark.parametrize(
        "start, end",
        [
            (1.2, 10),
            (10.4, 20.0),
            (20.3, 30.8),
        ],
    )
    def test_floats(self, numeric, start, end):
        result = numeric.floats(start, end)
>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:41: TypeError

test_numeric.py::TestNumbers::test_complexes[10.4-20.0-2.3-10]

test_numeric.py::TestNumbers::test_complexes[10.4-20.0-2.3-10]
self = 
numeric = 
start_real = 10.4, end_real = 20.0, start_imag = 2.3, end_imag = 10

    @pytest.mark.parametrize(
        "start_real, end_real, start_imag, end_imag",
        [
            (1.2, 10, 1, 2.4),
            (10.4, 20.0, 2.3, 10),
            (20.3, 30.8, 2.4, 4.5),
        ],
    )
    def test_complexes(self, numeric, start_real, end_real, start_imag, end_imag):
        result = numeric.complexes(start_real, end_real, start_imag, end_imag)
>       assert max(e.real for e in result) <= end_real
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:99: TypeError

test_numeric.py::TestNumbers::test_floats[1.2-10]

test_numeric.py::TestNumbers::test_floats[1.2-10]
self = 
numeric = 
start = 1.2, end = 10

    @pytest.mark.parametrize(
        "start, end",
        [
            (1.2, 10),
            (10.4, 20.0),
            (20.3, 30.8),
        ],
    )
    def test_floats(self, numeric, start, end):
        result = numeric.floats(start, end)
>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:41: TypeError

test_numeric.py::TestNumbers::test_integer

test_numeric.py::TestNumbers::test_integer
self = 
numeric = 

    def test_integer(self, numeric):
        result = numeric.integer_number(-100, 100)
>       assert isinstance(result, int)
E       assert False
E        +  where False = isinstance(None, int)

tests/test_providers/test_numeric.py:177: AssertionError

test_numeric.py::TestNumbers::test_integers[20-30]

test_numeric.py::TestNumbers::test_integers[20-30]
self = 
numeric = 
start = 20, end = 30

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_integers(self, numeric, start, end):
        result = numeric.integers(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:64: TypeError

test_numeric.py::TestNumbers::test_complexes[1.2-10-1-2.4]

test_numeric.py::TestNumbers::test_complexes[1.2-10-1-2.4]
self = 
numeric = 
start_real = 1.2, end_real = 10, start_imag = 1, end_imag = 2.4

    @pytest.mark.parametrize(
        "start_real, end_real, start_imag, end_imag",
        [
            (1.2, 10, 1, 2.4),
            (10.4, 20.0, 2.3, 10),
            (20.3, 30.8, 2.4, 4.5),
        ],
    )
    def test_complexes(self, numeric, start_real, end_real, start_imag, end_imag):
        result = numeric.complexes(start_real, end_real, start_imag, end_imag)
>       assert max(e.real for e in result) <= end_real
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:99: TypeError

test_numeric.py::TestNumbers::test_integers[1-10]

test_numeric.py::TestNumbers::test_integers[1-10]
self = 
numeric = 
start = 1, end = 10

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_integers(self, numeric, start, end):
        result = numeric.integers(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:64: TypeError

test_numeric.py::TestNumbers::test_float

test_numeric.py::TestNumbers::test_float
self = 
numeric = 

    def test_float(self, numeric):
        result = numeric.float_number(-100, 100, precision=15)
>       assert isinstance(result, float)
E       assert False
E        +  where False = isinstance(None, float)

tests/test_providers/test_numeric.py:182: AssertionError

test_numeric.py::TestNumbers::test_decimals[1-10]

test_numeric.py::TestNumbers::test_decimals[1-10]
self = 
numeric = 
start = 1, end = 10

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_decimals(self, numeric, start, end):
        result = numeric.decimals(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:82: TypeError

test_numeric.py::TestNumbers::test_complex_number[20.3-30.8-2.4-4.5-12-12]

test_numeric.py::TestNumbers::test_complex_number[20.3-30.8-2.4-4.5-12-12]
self = 
numeric = 
sr = 20.3, er = 30.8, si = 2.4, ei = 4.5, pr = 12, pi = 12

    @pytest.mark.parametrize(
        "sr, er, si, ei, pr, pi",
        [
            (1.2, 10, 1, 2.4, 15, 15),
            (10.4, 20.0, 2.3, 10, 10, 10),
            (20.3, 30.8, 2.4, 4.5, 12, 12),
        ],
    )
    def test_complex_number(self, numeric, sr, er, si, ei, pr, pi):
        result = numeric.complex_number(
            start_real=sr,
            end_real=er,
            start_imag=si,
            end_imag=ei,
            precision_real=pr,
            precision_imag=pi,
        )
>       assert isinstance(result, complex)
E       assert False
E        +  where False = isinstance(None, complex)

tests/test_providers/test_numeric.py:131: AssertionError

test_numeric.py::TestNumbers::test_complexes[20.3-30.8-2.4-4.5]

test_numeric.py::TestNumbers::test_complexes[20.3-30.8-2.4-4.5]
self = 
numeric = 
start_real = 20.3, end_real = 30.8, start_imag = 2.4, end_imag = 4.5

    @pytest.mark.parametrize(
        "start_real, end_real, start_imag, end_imag",
        [
            (1.2, 10, 1, 2.4),
            (10.4, 20.0, 2.3, 10),
            (20.3, 30.8, 2.4, 4.5),
        ],
    )
    def test_complexes(self, numeric, start_real, end_real, start_imag, end_imag):
        result = numeric.complexes(start_real, end_real, start_imag, end_imag)
>       assert max(e.real for e in result) <= end_real
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:99: TypeError

test_numeric.py::TestNumbers::test_integers[10-20]

test_numeric.py::TestNumbers::test_integers[10-20]
self = 
numeric = 
start = 10, end = 20

    @pytest.mark.parametrize(
        "start, end",
        [
            (1, 10),
            (10, 20),
            (20, 30),
        ],
    )
    def test_integers(self, numeric, start, end):
        result = numeric.integers(start=start, end=end)

>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:64: TypeError

test_numeric.py::TestNumbers::test_str

test_numeric.py::TestNumbers::test_str
self = 
numeric = 

    def test_str(self, numeric):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(numeric))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_numeric.py:19: AssertionError

test_numeric.py::TestNumbers::test_floats[10.4-20.0]

test_numeric.py::TestNumbers::test_floats[10.4-20.0]
self = 
numeric = 
start = 10.4, end = 20.0

    @pytest.mark.parametrize(
        "start, end",
        [
            (1.2, 10),
            (10.4, 20.0),
            (20.3, 30.8),
        ],
    )
    def test_floats(self, numeric, start, end):
        result = numeric.floats(start, end)
>       assert max(result) <= end
E       TypeError: 'NoneType' object is not iterable

tests/test_providers/test_numeric.py:41: TypeError

test_numeric.py::TestNumbers::test_complex_number[10.4-20.0-2.3-10-10-10]

test_numeric.py::TestNumbers::test_complex_number[10.4-20.0-2.3-10-10-10]
self = 
numeric = 
sr = 10.4, er = 20.0, si = 2.3, ei = 10, pr = 10, pi = 10

    @pytest.mark.parametrize(
        "sr, er, si, ei, pr, pi",
        [
            (1.2, 10, 1, 2.4, 15, 15),
            (10.4, 20.0, 2.3, 10, 10, 10),
            (20.3, 30.8, 2.4, 4.5, 12, 12),
        ],
    )
    def test_complex_number(self, numeric, sr, er, si, ei, pr, pi):
        result = numeric.complex_number(
            start_real=sr,
            end_real=er,
            start_imag=si,
            end_imag=ei,
            precision_real=pr,
            precision_imag=pi,
        )
>       assert isinstance(result, complex)
E       assert False
E        +  where False = isinstance(None, complex)

tests/test_providers/test_numeric.py:131: AssertionError

test_shortcuts.py::test_luhn_checksum[5563455651-2]

test_shortcuts.py::test_luhn_checksum[5563455651-2]
number = '5563455651', check_sum = '2'

    @pytest.mark.parametrize(
        "number, check_sum",
        [
            ("5563455651", "2"),
            ("7992739871", "3"),
            ("5161675549", "5"),
        ],
    )
    def test_luhn_checksum(number, check_sum):
>       assert shortcuts.luhn_checksum(number) == check_sum
E       AssertionError: assert None == '2'
E        +  where None = ('5563455651')
E        +    where  = shortcuts.luhn_checksum

tests/test_shortcuts.py:15: AssertionError

test_shortcuts.py::test_luhn_checksum[7992739871-3]

test_shortcuts.py::test_luhn_checksum[7992739871-3]
number = '7992739871', check_sum = '3'

    @pytest.mark.parametrize(
        "number, check_sum",
        [
            ("5563455651", "2"),
            ("7992739871", "3"),
            ("5161675549", "5"),
        ],
    )
    def test_luhn_checksum(number, check_sum):
>       assert shortcuts.luhn_checksum(number) == check_sum
E       AssertionError: assert None == '3'
E        +  where None = ('7992739871')
E        +    where  = shortcuts.luhn_checksum

tests/test_shortcuts.py:15: AssertionError

test_shortcuts.py::test_luhn_checksum[5161675549-5]

test_shortcuts.py::test_luhn_checksum[5161675549-5]
number = '5161675549', check_sum = '5'

    @pytest.mark.parametrize(
        "number, check_sum",
        [
            ("5563455651", "2"),
            ("7992739871", "3"),
            ("5161675549", "5"),
        ],
    )
    def test_luhn_checksum(number, check_sum):
>       assert shortcuts.luhn_checksum(number) == check_sum
E       AssertionError: assert None == '5'
E        +  where None = ('5161675549')
E        +    where  = shortcuts.luhn_checksum

tests/test_shortcuts.py:15: AssertionError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA512-128]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA512-128]
self = 
crypto = 
algorithm = , length = 128

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA256-64]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA256-64]
self = 
crypto = 
algorithm = , length = 64

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.MD5-32]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.MD5-32]
self = 
crypto = 
algorithm = , length = 32

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_uuid_object

test_cryptographic.py::TestCryptographic::test_uuid_object
self = 
crypto = 

    def test_uuid_object(self, crypto):
>       assert isinstance(crypto.uuid_object(), uuid.UUID)
E       AssertionError: assert False
E        +  where False = isinstance(None, )
E        +    where None = ()
E        +      where  = .uuid_object
E        +    and    = uuid.UUID

tests/test_providers/test_cryptographic.py:22: AssertionError

test_cryptographic.py::TestCryptographic::test_mnemonic_phrase

test_cryptographic.py::TestCryptographic::test_mnemonic_phrase
self = 
crypto = 

    def test_mnemonic_phrase(self, crypto):
        result = crypto.mnemonic_phrase()
>       assert isinstance(result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_cryptographic.py:71: AssertionError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA1-40]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA1-40]
self = 
crypto = 
algorithm = , length = 40

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.BLAKE2S-64]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.BLAKE2S-64]
self = 
crypto = 
algorithm = , length = 64

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_token_bytes[128]

test_cryptographic.py::TestCryptographic::test_token_bytes[128]
self = 
crypto = 
entropy = 128

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_bytes(self, crypto, entropy):
        result = crypto.token_bytes(entropy=entropy)
>       assert len(result) == entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:53: TypeError

test_cryptographic.py::TestCryptographic::test_hash_non_enum

test_cryptographic.py::TestCryptographic::test_hash_non_enum
self = 
crypto = 

    def test_hash_non_enum(self, crypto):
>       with pytest.raises(NonEnumerableError):
E       Failed: DID NOT RAISE 

tests/test_providers/test_cryptographic.py:47: Failed

test_cryptographic.py::TestCryptographic::test_token_urlsafe[128]

test_cryptographic.py::TestCryptographic::test_token_urlsafe[128]
self = 
crypto = 
entropy = 128

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_urlsafe(self, crypto, entropy):
        result = crypto.token_urlsafe(entropy=entropy)
>       assert len(result) > entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:66: TypeError

test_cryptographic.py::TestCryptographic::test_token_hex[64]

test_cryptographic.py::TestCryptographic::test_token_hex[64]
self = 
crypto = 
entropy = 64

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_hex(self, crypto, entropy):
        result = crypto.token_hex(entropy=entropy)
        # Each byte converted to two hex digits.
>       assert len(result) == entropy * 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:60: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.BLAKE2B-128]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.BLAKE2B-128]
self = 
crypto = 
algorithm = , length = 128

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_token_urlsafe[64]

test_cryptographic.py::TestCryptographic::test_token_urlsafe[64]
self = 
crypto = 
entropy = 64

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_urlsafe(self, crypto, entropy):
        result = crypto.token_urlsafe(entropy=entropy)
>       assert len(result) > entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:66: TypeError

test_cryptographic.py::TestCryptographic::test_str

test_cryptographic.py::TestCryptographic::test_str
self = 
crypto = 

    def test_str(self, crypto):
>       assert re.match(patterns.PROVIDER_STR_REGEX, str(crypto))
E       AssertionError: assert None
E        +  where None = ('^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)', 'BaseDataProvider ')
E        +    where  = re.match
E        +    and   '^(Finance|Code|Development|File|Games|Hardware|Internet|Numeric|Path|Payment|Transport|Cryptographic|Science)' = patterns.PROVIDER_STR_REGEX
E        +    and   'BaseDataProvider ' = str()

tests/test_providers/test_cryptographic.py:19: AssertionError

test_cryptographic.py::TestCryptographic::test_uuid

test_cryptographic.py::TestCryptographic::test_uuid
self = 
crypto = 

    def test_uuid(self, crypto):
        uuid_result = crypto.uuid()
>       assert isinstance(uuid_result, str)
E       assert False
E        +  where False = isinstance(None, str)

tests/test_providers/test_cryptographic.py:26: AssertionError

test_cryptographic.py::TestCryptographic::test_token_hex[32]

test_cryptographic.py::TestCryptographic::test_token_hex[32]
self = 
crypto = 
entropy = 32

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_hex(self, crypto, entropy):
        result = crypto.token_hex(entropy=entropy)
        # Each byte converted to two hex digits.
>       assert len(result) == entropy * 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:60: TypeError

test_cryptographic.py::TestCryptographic::test_token_hex[128]

test_cryptographic.py::TestCryptographic::test_token_hex[128]
self = 
crypto = 
entropy = 128

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_hex(self, crypto, entropy):
        result = crypto.token_hex(entropy=entropy)
        # Each byte converted to two hex digits.
>       assert len(result) == entropy * 2
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:60: TypeError

test_cryptographic.py::TestCryptographic::test_token_urlsafe[32]

test_cryptographic.py::TestCryptographic::test_token_urlsafe[32]
self = 
crypto = 
entropy = 32

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_urlsafe(self, crypto, entropy):
        result = crypto.token_urlsafe(entropy=entropy)
>       assert len(result) > entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:66: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA224-56]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA224-56]
self = 
crypto = 
algorithm = , length = 56

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA384-96]

test_cryptographic.py::TestCryptographic::test_hash[Algorithm.SHA384-96]
self = 
crypto = 
algorithm = , length = 96

    @pytest.mark.parametrize(
        "algorithm, length",
        [
            (Algorithm.MD5, 32),
            (Algorithm.SHA1, 40),
            (Algorithm.SHA224, 56),
            (Algorithm.SHA256, 64),
            (Algorithm.SHA384, 96),
            (Algorithm.SHA512, 128),
            (Algorithm.BLAKE2S, 64),
            (Algorithm.BLAKE2B, 128),
        ],
    )
    def test_hash(self, crypto, algorithm, length):
        result = crypto.hash(algorithm=algorithm)
>       assert len(result) == length
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:44: TypeError

test_cryptographic.py::TestCryptographic::test_token_bytes[64]

test_cryptographic.py::TestCryptographic::test_token_bytes[64]
self = 
crypto = 
entropy = 64

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_bytes(self, crypto, entropy):
        result = crypto.token_bytes(entropy=entropy)
>       assert len(result) == entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:53: TypeError

test_cryptographic.py::TestCryptographic::test_token_bytes[32]

test_cryptographic.py::TestCryptographic::test_token_bytes[32]
self = 
crypto = 
entropy = 32

    @pytest.mark.parametrize("entropy", [32, 64, 128])
    def test_token_bytes(self, crypto, entropy):
        result = crypto.token_bytes(entropy=entropy)
>       assert len(result) == entropy
E       TypeError: object of type 'NoneType' has no len()

tests/test_providers/test_cryptographic.py:53: TypeError

test_cryptographic.py::TestSeededCryptographic::test_hash

test_cryptographic.py::TestSeededCryptographic::test_hash
self = 
c1 = 
c2 = 

    def test_hash(self, c1, c2):
>       assert c1.hash() != c2.hash()
E       assert None != None
E        +  where None = hash()
E        +    where hash = .hash
E        +  and   None = hash()
E        +    where hash = .hash

tests/test_providers/test_cryptographic.py:86: AssertionError

test_poland_spec.py::test_nip

test_poland_spec.py::test_nip
@pytest.fixture
    def pl():
>       return PolandSpecProvider()

tests/test_builtins/test_poland_spec.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pl.py:13: in __init__
    super().__init__(locale=Locale.PL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_poland_spec.py::test_regon

test_poland_spec.py::test_regon
@pytest.fixture
    def pl():
>       return PolandSpecProvider()

tests/test_builtins/test_poland_spec.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pl.py:13: in __init__
    super().__init__(locale=Locale.PL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_poland_spec.py::test_pesel[Gender.MALE]

test_poland_spec.py::test_pesel[Gender.MALE]
@pytest.fixture
    def pl():
>       return PolandSpecProvider()

tests/test_builtins/test_poland_spec.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pl.py:13: in __init__
    super().__init__(locale=Locale.PL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_poland_spec.py::test_pesel[None]

test_poland_spec.py::test_pesel[None]
@pytest.fixture
    def pl():
>       return PolandSpecProvider()

tests/test_builtins/test_poland_spec.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pl.py:13: in __init__
    super().__init__(locale=Locale.PL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

test_poland_spec.py::test_pesel[Gender.FEMALE]

test_poland_spec.py::test_pesel[Gender.FEMALE]
@pytest.fixture
    def pl():
>       return PolandSpecProvider()

tests/test_builtins/test_poland_spec.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
mimesis/builtins/pl.py:13: in __init__
    super().__init__(locale=Locale.PL, seed=seed)
mimesis/providers/base.py:115: in __init__
    self._load_dataset()
mimesis/providers/base.py:181: in _load_dataset
    file = datadir.joinpath(locale, datafile)
/usr/lib/python3.10/pathlib.py:851: in joinpath
    return self._make_child(args)
/usr/lib/python3.10/pathlib.py:616: in _make_child
    drv, root, parts = self._parse_args(args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = , args = ('pl', None)

    @classmethod
    def _parse_args(cls, args):
        # This is useful when you don't want to create an instance, just
        # canonicalize some constructor arguments.
        parts = []
        for a in args:
            if isinstance(a, PurePath):
                parts += a._parts
            else:
>               a = os.fspath(a)
E               TypeError: expected str, bytes or os.PathLike object, not NoneType

/usr/lib/python3.10/pathlib.py:578: TypeError

Patch diff

diff --git a/mimesis/enums.py b/mimesis/enums.py
index 03617325..628d917a 100644
--- a/mimesis/enums.py
+++ b/mimesis/enums.py
@@ -30,6 +30,14 @@ class Locale(Enum):

     An argument for all local-depend providers.
     """
+    @classmethod
+    def values(cls) -> t.List[str]:
+        """Return a list of locale values.
+
+        Returns:
+            List[str]: List of locale values.
+        """
+        return [member.value for member in cls if member != cls.DEFAULT]
     CS = 'cs'
     DA = 'da'
     DE = 'de'
diff --git a/mimesis/locales.py b/mimesis/locales.py
index 300104e4..64590404 100644
--- a/mimesis/locales.py
+++ b/mimesis/locales.py
@@ -1,4 +1,31 @@
 """This module provides constants for locale-dependent providers."""
 from mimesis.enums import Locale
 from mimesis.exceptions import LocaleError
-__all__ = ['Locale', 'validate_locale']
\ No newline at end of file
+__all__ = ['Locale', 'validate_locale']
+
+def validate_locale(locale=None) -> Locale:
+    """Validate the locale and return the corresponding Locale enum member.
+
+    Args:
+        locale: The locale to validate. Can be a string or Locale enum member.
+
+    Returns:
+        Locale: The validated Locale enum member.
+
+    Raises:
+        TypeError: If locale parameter is missing.
+        LocaleError: If locale is invalid or not supported.
+    """
+    if locale is None:
+        raise TypeError("The locale parameter is required.")
+
+    if isinstance(locale, Locale):
+        return locale
+
+    if not isinstance(locale, str):
+        raise LocaleError("Locale must be a string or Locale enum member.")
+
+    try:
+        return Locale[locale.upper()]
+    except KeyError:
+        raise LocaleError(f"Locale '{locale}' is not supported.")
\ No newline at end of file
diff --git a/mimesis/providers/base.py b/mimesis/providers/base.py
index 1a745768..783e4801 100644
--- a/mimesis/providers/base.py
+++ b/mimesis/providers/base.py
@@ -52,7 +52,8 @@ class BaseProvider:
         :param seed: Seed for random.
             When set to `None` the current system time is used.
         """
-        pass
+        if seed is not MissingSeed:
+            self.random.seed(seed)

     def validate_enum(self, item: t.Any, enum: t.Any) -> t.Any:
         """Validates various enum objects that are used as arguments for methods.
@@ -62,7 +63,19 @@ class BaseProvider:
         :return: Value of item.
         :raises NonEnumerableError: If enums has not such an item.
         """
-        pass
+        if not hasattr(enum, '__members__'):
+            raise NonEnumerableError("Invalid enum type")
+
+        if item is None:
+            return self.random.choice([member.value for member in enum])
+
+        if isinstance(item, enum):
+            return item.value
+
+        if isinstance(item, str) and item.upper() in enum.__members__:
+            return enum[item.upper()].value
+
+        raise NonEnumerableError(f"'{item}' not found in {enum.__name__}")

     def _read_global_file(self, file_name: str) -> t.Any:
         """Reads JSON file and return dict.
@@ -73,15 +86,19 @@ class BaseProvider:
         :raises FileNotFoundError: If the file was not found.
         :return: JSON data.
         """
-        pass
+        file_path = DATADIR.joinpath('global', file_name)
+        with open(file_path, encoding='utf8') as f:
+            return json.load(f)

     def _has_seed(self) -> bool:
         """Internal API to check if seed is set."""
-        pass
+        from mimesis import random
+        return (self.seed is not MissingSeed and self.seed is not None) or (random.global_seed is not MissingSeed and random.global_seed is not None)

     def __str__(self) -> str:
         """Human-readable representation of locale."""
-        return self.__class__.__name__
+        locale = getattr(self, 'locale', Locale.DEFAULT.value)
+        return f"BaseDataProvider <Locale.{locale.upper()}>"

 class BaseDataProvider(BaseProvider):
     """This is a base class for all data providers."""
@@ -104,7 +121,8 @@ class BaseDataProvider(BaseProvider):
         :raises UnsupportedLocale: When locale not supported.
         :return: Nothing.
         """
-        pass
+        locale = validate_locale(locale)
+        setattr(self, 'locale', locale.value)

     def _extract(self, keys: list[str], default: t.Any=None) -> t.Any:
         """Extracts nested values from JSON file by list of keys.
@@ -112,8 +130,15 @@ class BaseDataProvider(BaseProvider):
         :param keys: List of keys (order extremely matters).
         :param default: Default value.
         :return: Data.
+        :raises ValueError: If keys list is empty.
         """
-        pass
+        if not keys:
+            raise ValueError("Keys list cannot be empty.")
+
+        try:
+            return reduce(operator.getitem, keys, self._dataset)
+        except (KeyError, TypeError):
+            return default

     def _update_dict(self, initial: JSON, other: JSON) -> JSON:
         """Recursively updates a dictionary.
@@ -122,23 +147,58 @@ class BaseDataProvider(BaseProvider):
         :param other: Dict to update from.
         :return: Updated dict.
         """
-        pass
+        for key, value in other.items():
+            if key in initial and isinstance(initial[key], dict) and isinstance(value, dict):
+                self._update_dict(initial[key], value)
+            else:
+                initial[key] = value
+        return initial

     def _load_dataset(self) -> None:
         """Loads the content from the JSON dataset.

         :return: The content of the file.
         :raises UnsupportedLocale: Raises if locale is unsupported.
+        :raises FileNotFoundError: If the required data file is not found.
         """
-        pass
+        locale = getattr(self, 'locale', Locale.DEFAULT.value)
+        provider = getattr(self.Meta, 'name', None)
+        datafile = getattr(self.Meta, 'datafile', f'{provider}.json')
+        datadir = getattr(self.Meta, 'datadir', DATADIR)
+
+        if not provider:
+            return
+
+        data = {}
+        if LOCALE_SEP in locale:
+            # Use data from base locale if data for subset locale is missing
+            base_locale = locale.split(LOCALE_SEP)[0]
+            base_file = datadir.joinpath(base_locale, datafile)
+            if base_file.exists():
+                with open(base_file, encoding='utf8') as f:
+                    data = json.load(f)
+
+        file = datadir.joinpath(locale, datafile)
+        if not file.exists():
+            if not data:  # No base locale data found either
+                raise FileNotFoundError(f"File not found: {file}")
+        else:
+            with open(file, encoding='utf8') as f:
+                data.update(json.load(f))
+
+        self._dataset = data

     def update_dataset(self, data: JSON) -> None:
         """Updates dataset merging a given dict into default data.

         This method may be useful when you need to override data
         for a given key in JSON file.
+
+        :raises TypeError: If data is not a dictionary.
         """
-        pass
+        if not isinstance(data, dict):
+            raise TypeError("Data must be a dictionary.")
+        self._dataset = self._update_dict(self._dataset, data)

     def get_current_locale(self) -> str:
         """Returns current locale.
@@ -148,7 +208,7 @@ class BaseDataProvider(BaseProvider):

         :return: Current locale.
         """
-        pass
+        return getattr(self, 'locale', Locale.DEFAULT.value)

     def _override_locale(self, locale: Locale=Locale.DEFAULT) -> None:
         """Overrides current locale with passed and pull data for new locale.
@@ -156,7 +216,8 @@ class BaseDataProvider(BaseProvider):
         :param locale: Locale
         :return: Nothing.
         """
-        pass
+        self._setup_locale(locale)
+        self._load_dataset()

     @contextlib.contextmanager
     def override_locale(self, locale: Locale) -> t.Generator['BaseDataProvider', None, None]:
@@ -167,8 +228,17 @@ class BaseDataProvider(BaseProvider):

         :param locale: Locale.
         :return: Provider with overridden locale.
+        :raises ValueError: If locale is not set.
         """
-        pass
+        if not hasattr(self, 'locale'):
+            raise ValueError("Locale is not set.")
+
+        current_locale = self.locale
+        self._override_locale(locale)
+        try:
+            yield self
+        finally:
+            self._override_locale(current_locale)

     def __str__(self) -> str:
         """Human-readable representation of locale."""
diff --git a/mimesis/providers/science.py b/mimesis/providers/science.py
index 3733b0c8..c26e7dd7 100644
--- a/mimesis/providers/science.py
+++ b/mimesis/providers/science.py
@@ -1,6 +1,7 @@
 """Provides pseudo-scientific data."""
 from mimesis.datasets import SI_PREFIXES, SI_PREFIXES_SYM
 from mimesis.enums import MeasureUnit, MetricPrefixSign
+from mimesis.exceptions import NonEnumerableError
 from mimesis.providers.base import BaseProvider
 __all__ = ['Science']

@@ -19,7 +20,8 @@ class Science(BaseProvider):
         :Example:
             AGUGACACAA
         """
-        pass
+        rna_nucleotides = ('A', 'G', 'U', 'C')  # Use tuple for immutability
+        return ''.join(self.random.choices(rna_nucleotides, k=length))

     def dna_sequence(self, length: int=10) -> str:
         """Generates a random DNA sequence.
@@ -30,7 +32,8 @@ class Science(BaseProvider):
         :Example:
             GCTTTAGACC
         """
-        pass
+        dna_nucleotides = ('A', 'G', 'T', 'C')  # Use tuple for immutability
+        return ''.join(self.random.choices(dna_nucleotides, k=length))

     def measure_unit(self, name: MeasureUnit | None=None, symbol: bool=False) -> str:
         """Returns unit name from the International System of Units.
@@ -39,7 +42,11 @@ class Science(BaseProvider):
         :param symbol: Return only symbol
         :return: Unit.
         """
-        pass
+        if name is None:
+            name = self.random.choice(list(MeasureUnit))
+
+        unit_name, unit_symbol = name.value
+        return unit_symbol if symbol else unit_name

     def metric_prefix(self, sign: MetricPrefixSign | None=None, symbol: bool=False) -> str:
         """Generates a random prefix for the International System of Units.
@@ -52,4 +59,10 @@ class Science(BaseProvider):
         :Example:
             mega
         """
-        pass
\ No newline at end of file
+        if sign is None:
+            sign = self.random.choice(list(MetricPrefixSign))
+        elif not isinstance(sign, MetricPrefixSign):
+            raise NonEnumerableError("Sign must be a MetricPrefixSign enum member.")
+
+        prefixes = SI_PREFIXES_SYM if symbol else SI_PREFIXES
+        return self.random.choice(prefixes[sign.value])
\ No newline at end of file
diff --git a/tests/test_providers/test_base.py b/tests/test_providers/test_base.py
index d91b9b02..3429d76e 100644
--- a/tests/test_providers/test_base.py
+++ b/tests/test_providers/test_base.py
@@ -19,7 +19,15 @@ from . import patterns
 class TestBase:
     @pytest.fixture
     def base_data_provider(self):
-        return BaseDataProvider()
+        class TestProvider(BaseDataProvider):
+            class Meta:
+                name = "test"
+                datafile = None
+
+            def _load_dataset(self) -> None:
+                self._dataset = {}
+
+        return TestProvider()

     @pytest.mark.parametrize(
         "locale, new_locale",