pytest-dev/pytest-mimesis

Allow adding custom providers

Offen

#6 geöffnet am 06.07.2018

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (4 Forks)github user discovery
enhancementhacktoberfesthelp wanted

Repository-Metriken

Stars
 (61 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide