def setUp(self): self.info = { "uid": "", "first_name": "Marcus", "last_name": "Willock", "email": "*****@*****.**", "phone": "xxx-xxx-xxxx", "description": "Creator", "company_uid": 1 } self.full_name = "{} {}".format(self.info["first_name"], self.info["last_name"]) self.contact = Contact( self.info["uid"], self.info["first_name"], self.info["last_name"], self.info["email"], self.info["phone"], self.info["description"], self.info["company_uid"], testing=True ) self.new_first_name = "Testin!!!" self.total_num_of_contacts = 5 # Setting up the test db db = SQL(TEST_DB) db.create_db() db.add_test_data_to_db()
def setUp(self): self.info = { "uid": "", "link": "www.test.com", "date_applied": "2015-09-17", "description": "Job posting Description", "interviewed": "yes", "company_uid": 1, "recruiter_uid": 1, "contact_uid": 1 } self.job_posting = JobPosting( self.info["uid"], self.info["link"], self.info["date_applied"], self.info["description"], self.info["interviewed"], self.info["company_uid"], self.info["recruiter_uid"], self.info["contact_uid"], testing=True ) self.new_description = "Testing!!!" self.total_of_job_postings = 1 # Setting up the DB db = SQL(TEST_DB) db.create_db() db.add_test_data_to_db()
def setUp(self): self.info = { "uid": "", "first_name": "Marcus", "last_name": "Willock", "email": "*****@*****.**", "phone": "111-222-3333", "description": "Nothing interesting", "company_uid": 1 } self.recruiter = Recruiter( self.info["uid"], self.info["first_name"], self.info["last_name"], self.info["email"], self.info["phone"], self.info["description"], self.info["company_uid"], testing=True ) self.new_first_name = "Testing!!!" self.total_num_of_recruiters = 7 # Setting up the db db = SQL(TEST_DB) db.create_db() db.add_test_data_to_db()
def setUp(self): self.class_list_plural = [CONTACTS, COMPANIES, RECRUITERS, JOB_POSTINGS] self.class_list = [CONTACT, COMPANY, RECRUITER, JOB_POSTING] self.classes = [Company, Contact, Recruiter, JobPosting] self.prop_references = ("company_uid", "jobposting_uid", "contact_uid", "recruiter_uid", "uid") #Reset the database db = SQL(TEST_DB) db.create_db() db.add_test_data_to_db()
def setUp(self): self.info = { "uid": "", "name": "Test Company", "address": "new york, NY", "website": "www.testing.com", "phone": "555-123-4567"} self.company = Company( self.info["uid"], self.info["name"], self.info["address"], self.info["website"], self.info["phone"], testing=True ) self.new_uid = "6" self.new_name = "Testing!!!" self.total_num_of_companies = 5 #Reset the database db = SQL(TEST_DB) db.create_db() db.add_test_data_to_db()