def setUp(self):
   super(TestAssessmentDataHandlers, self).setUp()
   self.client.get("/login")
   self.api_helper = api_helper.Api()
   self.import_file("assessment_notifications.csv")
   self.asmt1 = Assessment.query.filter_by(slug="A 1").one()
   self.asmt3 = Assessment.query.filter_by(slug="A 3").one()
   self.generator = generator.ObjectGenerator()
   self.handlers = contributions.contributed_notifications()
示例#2
0
 def setUp(self):
   super(TestAssessmentDataHandlers, self).setUp()
   self.client.get("/login")
   self.api_helper = api_helper.Api()
   self.import_file("assessment_notifications.csv")
   self.asmt1 = Assessment.query.filter_by(slug="A 1").one()
   self.asmt3 = Assessment.query.filter_by(slug="A 3").one()
   self.generator = generator.ObjectGenerator()
   self.handlers = contributions.contributed_notifications()
示例#3
0
 def setUp(self):
   converters.TestCase.setUp(self)
   self.client.get("/login")
   self.api_helper = api_helper.Api()
   self.import_file("request_full_no_warnings.csv")
   self.request1 = Request.query.filter_by(slug="Request 1").one()
   self.request3 = Request.query.filter_by(slug="Request 3").one()
   self.generator = generator.ObjectGenerator()
   self.handlers = contributions.contributed_notifications()