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()
def setUp(self): self.context = app.test_request_context() self.context.push()
def setUpClass(cls): cls.view = ResourceWithSchema() cls.context = app.test_request_context()