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

貢獻者指南