本文整理匯總了Python中test_factory.Factory.volunteer_history方法的典型用法代碼示例。如果您正苦於以下問題:Python Factory.volunteer_history方法的具體用法?Python Factory.volunteer_history怎麽用?Python Factory.volunteer_history使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類test_factory.Factory
的用法示例。
在下文中一共展示了Factory.volunteer_history方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setUp
# 需要導入模塊: from test_factory import Factory [as 別名]
# 或者: from test_factory.Factory import volunteer_history [as 別名]
def setUp(self, *args, **kwargs):
self.account = self.setup_for_logged_in()
populate_rule_components_for_an_account(self.account)
self.people = [Factory.volunteer_history(self.account) for i in range(1,Factory.rand_int(30,100))]
self.verificationErrors = []
示例2: _generate_people_with_volunteer_history
# 需要導入模塊: from test_factory import Factory [as 別名]
# 或者: from test_factory.Factory import volunteer_history [as 別名]
def _generate_people_with_volunteer_history(self, number=5):
ppl = self._generate_people(number=number)
for p in ppl:
Factory.volunteer_history(p)
return ppl