pytest-dev/pytest-mimesis

Allow adding custom providers

Open

#6 opened on Jul 6, 2018

 (0 comments) (0 reactions) (0 assignees)Python (4 forks)github user discovery
enhancementhacktoberfesthelp wanted

Repository metrics

Stars
 (61 stars)
PR merge metrics
 (No merged PRs in 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

Contributor guide