import datetime
import factory

from django.utils.timezone import now

from bluebottle.fundraisers.models import FundRaiser

from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from onepercentclub.tests.factory_models.project_factories import OnePercentProjectFactory


class FundRaiserFactory(factory.DjangoModelFactory):
    FACTORY_FOR = FundRaiser

    title = factory.Sequence(lambda n: 'John Doe-{0}'.format(n))
    amount = 5000
    owner = factory.SubFactory(BlueBottleUserFactory)
    project = factory.SubFactory(OnePercentProjectFactory)
    deadline = now() + datetime.timedelta(days=30)  # 1 month deadline
7cbc0f9b41511c05a797bb3ab6ee1725899a1f0b
<mask token>

<mask token>


class FundRaiserFactory(factory.DjangoModelFactory):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class FundRaiserFactory(factory.DjangoModelFactory):
    FACTORY_FOR = FundRaiser
    title = factory.Sequence(lambda n: 'John Doe-{0}'.format(n))
    amount = 5000
    owner = factory.SubFactory(BlueBottleUserFactory)
    project = factory.SubFactory(OnePercentProjectFactory)
    deadline = now() + datetime.timedelta(days=30)

import datetime
import factory
from django.utils.timezone import now
from bluebottle.fundraisers.models import FundRaiser
from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from onepercentclub.tests.factory_models.project_factories import OnePercentProjectFactory


class FundRaiserFactory(factory.DjangoModelFactory):
    FACTORY_FOR = FundRaiser
    title = factory.Sequence(lambda n: 'John Doe-{0}'.format(n))
    amount = 5000
    owner = factory.SubFactory(BlueBottleUserFactory)
    project = factory.SubFactory(OnePercentProjectFactory)
    deadline = now() + datetime.timedelta(days=30)

import datetime
import factory

from django.utils.timezone import now

from bluebottle.fundraisers.models import FundRaiser

from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from onepercentclub.tests.factory_models.project_factories import OnePercentProjectFactory


class FundRaiserFactory(factory.DjangoModelFactory):
    FACTORY_FOR = FundRaiser

    title = factory.Sequence(lambda n: 'John Doe-{0}'.format(n))
    amount = 5000
    owner = factory.SubFactory(BlueBottleUserFactory)
    project = factory.SubFactory(OnePercentProjectFactory)
    deadline = now() + datetime.timedelta(days=30)  # 1 month deadline