pytest-dev/pytest-mimesis

Allow adding custom providers

Aberta

#6 aberto em 6 de jul. de 2018

 (0 comentário) (0 reação) (0 responsável)Python (4 forks)github user discovery
enhancementhacktoberfesthelp wanted

Métricas do repositório

Stars
 (61 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador