def setUp(self):
        self.origin = '*'
        self.methods = ["HEAD", "GET", "OPTIONS"]
        self.headers = {"content-type", "authorization"}
        self.default_max_age = 21600

        self.context = app.test_request_context('/index')
        self.context.push()
예제 #2
0
 def setUp(self):
     self.context = app.test_request_context()
     self.context.push()
 def setUpClass(cls):
     cls.view = ResourceWithSchema()
     cls.context = app.test_request_context()
예제 #4
0
 def setUp(self):
     self.context = app.test_request_context()
     self.context.push()