当前位置: 首页>>代码示例>>Python>>正文


Python factory.fuzzy方法代码示例

本文整理汇总了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) 
开发者ID:CodeForPoznan,项目名称:volontulo,代码行数:11,代码来源:factories.py

示例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) 
开发者ID:CodeForPoznan,项目名称:volontulo,代码行数:11,代码来源:factories.py

示例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) 
开发者ID:CodeForPoznan,项目名称:volontulo,代码行数:12,代码来源:factories.py

示例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) 
开发者ID:CodeForPoznan,项目名称:volontulo,代码行数:11,代码来源:factories.py


注:本文中的factory.fuzzy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。