Example #1
0
 def __init__(self):
     self.first_name = gen.get_random_from_file("names.txt").title()
     self.last_name = gen.get_random_from_file("surnames.txt").title()
     self.job_title = gen.get_random_from_file("job-titles.txt").title()
     self.email = gen.generate_email(self.first_name, self.last_name)
     self.reports_to = 1
     self.shop_id = session.query(Shop).count()
Example #2
0
 def __init__(self):
     self.country = 'Sweden'
     self.phone = ge.generate_phone_number(self.country, 9,
                                           'countrycodes.txt')
     self.email = ge.generate_email('car', 'spareparts')
     self.address_line_one = ge.generate_address()
     self.address_line_two = self.address_line_one
     self.city = ge.get_random_city("worldcities.csv", self.country)
Example #3
0
 def __init__(self):
     self.first_name = gen.get_random_from_file("names.txt").title()
     self.last_name = gen.get_random_from_file("surnames.txt").title()
     #self.country = get_random_country("countrycodes.txt")
     self.country = "Sweden"
     self.city = gen.get_random_city("worldcities.csv", self.country)
     self.zip_code = gen.generate_zip()
     self.address_line_one = gen.generate_address()
     self.address_line_two = gen.generate_address() if random.randint(0, 1) else None
     self.phone = gen.generate_phone_number(self.country, 9, "countrycodes.txt")
     self.email = gen.generate_email(self.first_name, self.last_name)
Example #4
0
 def __init__(self):
     self.name = ge.generate_company_name()
     self.country = 'Sweden'
     self.city = ge.get_random_city("worldcities.csv", self.country)
     self.phone = ge.generate_phone_number(self.country, 9,
                                           'countrycodes.txt')
     self.email = ge.generate_email(self.name, self.city)
     self.address_line_one = ge.generate_address()
     self.address_line_two = self.address_line_one
     self.zip_code = ge.generate_zip()
     self.associates_category = random.choice(['Supplier', 'Manufacturer'])
     self.contact_person_id = session.query(ContactPerson).count()
Example #5
0
 def __init__(self):
     self.first_name = ge.get_random_from_file("names.txt").title()
     self.last_name = ge.get_random_from_file("surnames.txt").title()
     self.phone = ge.generate_phone_number('Sweden', 9, 'countrycodes.txt')
     self.email = ge.generate_email(self.first_name, self.last_name)