pytest-dev/pytest-mimesis

Allow adding custom providers

Ouverte

#6 ouverte le 6 juil. 2018

 (0 commentaire) (0 réaction) (0 personne assignée)Python (4 forks)github user discovery
enhancementhacktoberfesthelp wanted

Métriques du dépôt

Stars
 (61 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur