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'])
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])
class Users(testdata.DictFactory): firstname = testdata.FakeDataFactory('firstName') lastname = testdata.FakeDataFactory('lastName') age = testdata.RandomInteger(100, 300) gender = testdata.RandomSelection(['female', 'male'])
class Users(testdata.DictFactory): custid = testdata.RandomInteger(1, 10) amount = testdata.RandomInteger(1, 100) gateway = testdata.RandomSelection( ['visa', 'paypal', 'master', 'stripe', 'wallet'])
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)
class TestCity(testdata.DictFactory): date = testdata.DateIntervalFactory(datetime.now() - timedelta(days=365), timedelta(hours=24)) status = testdata.RandomSelection(['clouds', 'clear', 'rain'])
class info(testdata.DictFactory): employeeid = testdata.RandomInteger(500, 50000) type=testdata.RandomSelection(['full-time', 'part-time'])
class Transaction(testdata.DictFactory): id = testdata.CountingFactory(1518144480) account = testdata.RandomSelection(['*****@*****.**']) item = testdata.RandomSelection(ITEMS) quantity = testdata.RandomInteger(1, 3)
class Products(testdata.DictFactory): product_id = testdata.RandomInteger(60, 100) product_name = testdata.RandomSelection(products.keys()) seller_id = testdata.RandomInteger(1, 15)