pytest-dev / pytest-mimesis

Mimesis integration with the pytest test runner. This plugin provider useful fixtures based on providers from Mimesis.
https://pypi.org/project/pytest-mimesis/
MIT License
62 stars 4 forks source link

Allow adding custom providers #6

Open sobolevn opened 6 years ago

sobolevn commented 6 years ago

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