pytest-mimesis icon indicating copy to clipboard operation
pytest-mimesis copied to clipboard

Allow adding custom providers

Open sobolevn opened this issue 7 years ago • 0 comments

I suggest to support a fixture something like mimesis_custom_providers, that should return a list of providers to register.

We need to properly scope this fixture, so it would be:

  1. fast enough (not function scope), since adding providers might be kind of expensive
  2. configurable, so different module could have different providers

sobolevn avatar Jul 06 '18 10:07 sobolevn