scitacean.testing.strategies.emails#

scitacean.testing.strategies.emails()[source]#

A strategy for generating email addresses as strings.

This differs from hypothesis.strategies.emails() in that it

  • all letters are lowercase,

  • uses only normalized email addresses, i.e., with utf-8 characters for internationalized names and never ASCII-encoding (see Punycode).

This is done to match the behavior of pydantic.EmailStr and to allow for roundtrip tests through scitacean.Client.

Returns:

SearchStrategy[str] – String of email addresses.