pytest-dev/pytest-mimesis

Allow adding custom providers

オープン

#6 opened on 2018/07/06

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (4 件のフォーク)github user discovery
enhancementhacktoberfesthelp wanted

Repository metrics

Stars
 (61 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド