# Path: wunderlist/factories.py
# class WunderlistFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Wunderlist
# 
#     user_id = factory.Sequence(lambda n: "%d" % n)
#     name = 'John'
#     email = 'john@doe.com'
#     api_token = get_random_string(32)
#     owner = factory.SubFactory(UserFactory)
# 
# Path: wh_habitica/factories.py
# class HabiticaFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Habitica
# 
#     user_id = factory.Sequence(lambda n: "%d" % n)
#     name = 'John'
#     email = 'john@doe.com'
#     api_token = get_random_string(32)
#     owner = factory.SubFactory(UserFactory)


import pytest
from wunderlist.factories import WunderlistFactory
from wh_habitica.factories import HabiticaFactory



def get_user():
    """
    Returns a user which is connected with wunderlist and habitica.
    """

    wunderlist = WunderlistFactory.create()

# Path: wunderlist/factories.py
# class WunderlistFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Wunderlist
# 
#     user_id = factory.Sequence(lambda n: "%d" % n)
#     name = 'John'
#     email = 'john@doe.com'
#     api_token = get_random_string(32)
#     owner = factory.SubFactory(UserFactory)
# 
# Path: wh_habitica/factories.py
# class HabiticaFactory(factory.django.DjangoModelFactory):
#     class Meta:
#         model = Habitica
# 
#     user_id = factory.Sequence(lambda n: "%d" % n)
#     name = 'John'
#     email = 'john@doe.com'
#     api_token = get_random_string(32)
#     owner = factory.SubFactory(UserFactory)


# Path: wunderhabit/tests/utils.py
import pytest
from wunderlist.factories import WunderlistFactory
from wh_habitica.factories import HabiticaFactory




def get_user():
    """
    Returns a user which is connected with wunderlist and habitica.
    """

    wunderlist = WunderlistFactory.create()

    habitica = HabiticaFactory.create()