def setup_class(self): ''' setup_class - Called at the beginning of the test Sets configuration based on LocalConfig ''' LocalConfig.ensureTestSetup()
def setup_class(self): ''' setup_class - ensure this test is setup. Executed prior to any of the tests in this class. ''' LocalConfig.ensureTestSetup() self.datasetUid = str(uuid.uuid4())
def setup_class(self): LocalConfig.ensureTestSetup()
def setup_class(self): ''' setup_class - ensure this test is setup. Executed prior to any of the tests in this class. ''' LocalConfig.ensureTestSetup() dbConn = ichorORM.getDatabaseConnection() try: dbConn.executeSql("DELETE FROM " + MyPersonModel.TABLE_NAME) except: dbConn.executeSql( "CREATE TABLE %s ( id serial primary key, first_name varchar(255) NOT NULL, last_name varchar(255) NOT NULL, age smallint, birth_day smallint, birth_month smallint )" % (MyPersonModel.TABLE_NAME, )) # NOTE: "id" will be set upon insert self.dataSet = [ { "id": None, "first_name": 'John', 'last_name': 'Smith', 'age': 43, 'birth_day': 4, 'birth_month': 11 }, { "id": None, "first_name": 'John', 'last_name': 'Doe', 'age': 38, 'birth_day': 2, 'birth_month': 12 }, { "id": None, "first_name": 'Jane', 'last_name': 'Doe', 'age': 25, 'birth_day': 8, 'birth_month': 5 }, { "id": None, "first_name": 'Cathy', 'last_name': 'Lawson', 'age': 14, 'birth_day': 6, 'birth_month': 8 }, { "id": None, "first_name": 'Tom', 'last_name': 'Brown', 'age': 65, 'birth_day': 2, 'birth_month': 9 }, ] self.nullDataSet = [ { "id": None, "first_name": 'Henry', 'last_name': 'Thomson', 'age': None, 'birth_day': None, 'birth_month': None }, { "id": None, "first_name": 'Frank', 'last_name': "L'ray", 'age': None, 'birth_day': None, 'birth_month': None }, { "id": None, "first_name": 'Bob', 'last_name': 'Bizzle', 'age': None, 'birth_day': None, 'birth_month': None }, ]