pytest-dev/pytest-mimesis

Allow adding custom providers

开放

#6 创建于 2018年7月6日

 (0 条评论) (0 个反应) (0 位负责人)Python (4 个派生)github user discovery
enhancementhacktoberfesthelp wanted

仓库指标

星标
 (61 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南