Python factory.fuzzy() Examples
The following are 4
code examples of factory.fuzzy().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
factory
, or try the search function
.
Example #1
Source File: factories.py From volontulo with MIT License | 5 votes |
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)
Example #2
Source File: factories.py From volontulo with MIT License | 5 votes |
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)
Example #3
Source File: factories.py From volontulo with MIT License | 5 votes |
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)
Example #4
Source File: factories.py From volontulo with MIT License | 5 votes |
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)