from django.contrib.auth.models import User

import factory
from faker import Faker

fake = Faker()


class UserFactory(factory.django.DjangoModelFactory):
    """Create a fake user."""
    class Meta:
        model = User

    username = fake.user_name()
    first_name = fake.first_name()
    last_name = fake.last_name()
    email = fake.email()


@@ -36,16 +36,110 @@
 ort User
+%0Afrom est_quote.models import (%0A    Company, Client, Category, Product, Quote, QuoteModifiers)
 %0A%0Aimport
@@ -433,12 +433,2161 @@
 ke.email()%0A%0A
+%0Aclass ClientFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = Client%0A%0A    company = fake.company()%0A    first_name = fake.first_name()%0A    last_name = fake.last_name()%0A    title = fake.job()%0A    cell = fake.phone_number()%0A    desk = fake.phone_number()%0A    email = fake.email()%0A%0A%0Aclass CompanyFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = Company%0A%0A    company_name = fake.company()%0A    phone = fake.phone_number()%0A    address = fake.street_address()%0A    address2 = fake.building_number()%0A    city = fake.city()%0A    state = fake.state()%0A    postal = fake.zipcode()%0A%0A%0Aclass CategoryFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = Category%0A%0A    name = fake.word()%0A%0A%0Aclass ProductFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = Product%0A%0A    category = fake.word()%0A    name = fake.word()%0A    mins_piece = fake.pyfloat()%0A    mult_dollies = fake.pyfloat()%0A    m_cart = fake.pyfloat()%0A    l_cart = fake.pyfloat()%0A    p_cart = fake.pyfloat()%0A    s_pack = fake.pyfloat()%0A%0A%0Aclass QuoteModsFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = QuoteModifiers%0A%0A    street_load = fake.pyfloat()%0A    midrise_elev_std = fake.pyfloat()%0A    midrise_elv_frt = fake.pyfloat()%0A    highrise = fake.pyfloat()%0A    stairs = fake.pyfloat()%0A    lng_psh = fake.pyfloat()%0A%0A%0Aclass QuoteFactory(factory.django.DjangoModelFactory):%0A    class Meta:%0A        model = Quote%0A%0A    user = fake.username%0A    client = fake.name()%0A    name = fake.words()%0A    date = fake.date()%0A    sub_total = fake.random_number()%0A    products = None%0A    travel_time = fake.random_number()%0A    org_street_load = fake.boolean()%0A    org_midrise_elev_std = fake.boolean()%0A    org_midrise_elv_frt = fake.boolean()%0A    org_highrise = fake.boolean()%0A    org_stairs = fake.boolean()%0A    org_lng_psh = fake.boolean()%0A    dest_street_load = fake.boolean()%0A    dest_midrise_elev_std = fake.boolean()%0A    dest_midrise_elv_frt = fake.boolean()%0A    dest_highrise = fake.boolean()%0A    dest_stairs = fake.boolean()%0A    dest_lng_psh = fake.boolean()%0A    grand_total = fake.random_number()%0A

Update Factories for Client and Quote models.