Exemple #1
0
class Record(testdata.DictFactory):
    class info(testdata.DictFactory):
        employeeid = testdata.RandomInteger(500, 50000)
        type = testdata.RandomSelection(['full-time', 'part-time'])

    record_id = testdata.CountingFactory(10)
    firstname = testdata.FakeDataFactory('firstName')
    lastname = testdata.FakeDataFactory('lastName')
    address = testdata.FakeDataFactory('address')
    age = testdata.RandomInteger(10, 30)
    gender = testdata.RandomSelection(['female', 'male'])
Exemple #2
0
class Users(testdata.DictFactory):
    SAT_math = testdata.RandomInteger(200, 800)
    SAT_read = testdata.RandomInteger(200, 800)
    SAT_write = testdata.RandomInteger(200, 800)
    academic_preference = testdata.RandomInteger(1, 5)
    cost_preference = testdata.RandomInteger(1, 5)
    degree = testdata.RandomSelection(
        ['Associate', 'Bachelor', 'Master', 'No Preference'])
    distance_preference = testdata.RandomInteger(1, 5)
    dorm_price = random.choice([5000, 10000, 15000, 20000])
    email = testdata.FakeDataFactory('email')
    f_name = testdata.FakeDataFactory('firstName')
    gpa = testdata.RandomInteger(65, 100)
    l_name = testdata.FakeDataFactory('lastName')
    address = testdata.FakeDataFactory('address')
    tuition = random.choice([5000, 10000, 20000, 30000, 50000, 100000])
Exemple #3
0
class Users(testdata.DictFactory):
    firstname = testdata.FakeDataFactory('firstName')
    lastname = testdata.FakeDataFactory('lastName')
    age = testdata.RandomInteger(100, 300)
    gender = testdata.RandomSelection(['female', 'male'])
Exemple #4
0
class Users(testdata.DictFactory):
    custid = testdata.RandomInteger(1, 10)
    amount = testdata.RandomInteger(1, 100)
    gateway = testdata.RandomSelection(
        ['visa', 'paypal', 'master', 'stripe', 'wallet'])
Exemple #5
0
class EventsFactory(testdata.DictFactory):
    start_time = testdata.DateIntervalFactory(datetime.datetime.now(), datetime.timedelta(minutes=12))
    end_time = testdata.RelativeToDatetimeField("start_time", datetime.timedelta(minutes=20))
    event_code = testdata.RandomSelection(EVENT_TYPES)
Exemple #6
0
class TestCity(testdata.DictFactory):
    date = testdata.DateIntervalFactory(datetime.now() - timedelta(days=365), timedelta(hours=24))
    status = testdata.RandomSelection(['clouds', 'clear', 'rain'])
Exemple #7
0
	class info(testdata.DictFactory):
		employeeid = testdata.RandomInteger(500, 50000)
		type=testdata.RandomSelection(['full-time', 'part-time'])
Exemple #8
0
class Transaction(testdata.DictFactory):
    id = testdata.CountingFactory(1518144480)
    account = testdata.RandomSelection(['*****@*****.**'])
    item = testdata.RandomSelection(ITEMS)
    quantity = testdata.RandomInteger(1, 3)
Exemple #9
0
class Products(testdata.DictFactory):
    product_id = testdata.RandomInteger(60, 100)
    product_name = testdata.RandomSelection(products.keys())
    seller_id = testdata.RandomInteger(1, 15)