本文整理汇总了Python中factory.fuzzy方法的典型用法代码示例。如果您正苦于以下问题:Python factory.fuzzy方法的具体用法?Python factory.fuzzy怎么用?Python factory.fuzzy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类factory
的用法示例。
在下文中一共展示了factory.fuzzy方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: finished_at
# 需要导入模块: import factory [as 别名]
# 或者: from factory import fuzzy [as 别名]
def finished_at(self):
"""Returns finished_at attribute based on started_at value.
Value will be between started_at and one year in future.
"""
return factory.fuzzy.FuzzyDateTime(
self.started_at,
_offer_start_date_max,
).fuzz() + datetime.timedelta(days=1)
示例2: recruitment_end_date
# 需要导入模块: import factory [as 别名]
# 或者: from factory import fuzzy [as 别名]
def recruitment_end_date(self):
"""Returns recruitment_end_date attribute.
Value will be between recruitment_start_date and one year in future.
"""
return factory.fuzzy.FuzzyDateTime(
self.recruitment_start_date,
_offer_start_date_max,
).fuzz() + datetime.timedelta(days=1)
示例3: reserve_recruitment_end_date
# 需要导入模块: import factory [as 别名]
# 或者: from factory import fuzzy [as 别名]
def reserve_recruitment_end_date(self):
"""Returns reserve_recruitment_end_date attribute.
Value will be between reserve_recruitment_start_date and one year
in future.
"""
return factory.fuzzy.FuzzyDateTime(
self.reserve_recruitment_start_date,
_offer_start_date_max,
).fuzz() + datetime.timedelta(days=1)
示例4: action_end_date
# 需要导入模块: import factory [as 别名]
# 或者: from factory import fuzzy [as 别名]
def action_end_date(self):
"""Returns action_end_date attribute based on action_start_date value.
Value will be between action_start_date and one year in future.
"""
return factory.fuzzy.FuzzyDateTime(
self.action_start_date,
_offer_start_date_max,
).fuzz() + datetime.timedelta(days=1)