pytest-dev/pytest-mimesis

Allow adding custom providers

Aperta

#6 aperta il 6 lug 2018

 (0 commenti) (0 reazioni) (0 assegnatari)Python (4 fork)github user discovery
enhancementhacktoberfesthelp wanted

Metriche repository

Star
 (61 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor