def setUp(self): """Setup stage for each test. Generate all required objects and custom attributes for import of csvs containing custom attributes. This stage also initializes a http client that is used for sending import/export requests. """ if TestCustomAttributeImportExport._set_up: super(TestCustomAttributeImportExport, self).setUp() self.generator = ObjectGenerator() self.create_custom_attributes() self.create_people() self.client.get("/login") self.headers = ObjectGenerator.get_header() TestCustomAttributeImportExport._set_up = False
def setUp(self): """Setup stage for each test. Generate all required objects and custom attributes for import of csvs containing custom attributes. This stage also initializes a http client that is used for sending import/export requests. """ if TestCustomAttributeImportExport._set_up: super(TestCustomAttributeImportExport, self).setUp() self.generator = ObjectGenerator() self.create_custom_attributes() self.create_people() self.client.get("/login") self.headers = ObjectGenerator.get_header() TestCustomAttributeImportExport._set_up = False
def setUp(self): """ Set up for Assessment test cases """ super(TestAssessmentExport, self).setUp() self.client.get("/login") self.headers = ObjectGenerator.get_header()
def setUp(self): """ Set up for Assessment test cases """ super(TestAssessmentExport, self).setUp() self.client.get("/login") self.headers = ObjectGenerator.get_header()