def setUp(self): datetime_patch = patch('forms.datetime') datetime_parcel_patch = patch('parcel.datetime') self.mock_datetime = datetime_patch.start() self.mock_parcel_datetime = datetime_parcel_patch.start() self.addCleanup(datetime_patch.stop) self.addCleanup(datetime_parcel_patch.stop) self.addCleanup(authorization_patch().stop)
def setUp(self): self.parcels_path = self.wh_path / 'parcels' self.addCleanup(authorization_patch().stop)
def setUp(self): self.addCleanup(authorization_patch().stop)
def setUp(self): datetime_patch = patch('parcel.datetime') self.mock_datetime = datetime_patch.start() self.addCleanup(datetime_patch.stop) self.addCleanup(authorization_patch().stop)