コード例 #1
0
    def setUp(self):
        self.app = app.test_client()
        self.test_personal_item = json.loads(personal_item_data)
        app.config['WTF_CSRF_ENABLED'] = False
        app.config['LOGIN_DISABLED'] = 'True'

        with self.app as c:
            with c.session_transaction() as session:
                session['username'] = '******'
 def setUp(self):
     self.app = app.test_client()
     self.item_id = 1
     self.staff_id = 'cs999jb'
     self.error_msg = 'Test error message'
     self.decline_reason = 'Registration number'
     self.decline_advice = 'Reapply with a new number'
     self.close_requester = 'hmlr'
     self.close_reason = 'This is a test reason'
     self.note_text = 'This is a test note'
コード例 #3
0
 def setUp(self):
     self.app = app.test_client()
コード例 #4
0
 def setUp(self):
     self.app = app.test_client()
     app.config['WTF_CSRF_ENABLED'] = False
コード例 #5
0
 def setup_method(self, method):
     self.app = app.test_client()
    def setup_method(self, method):
        self.app = app.test_client()
        app.jinja_env.lstrip_blocks = True
        app.jinja_env.trim_blocks = True

        app.config['WTF_CSRF_ENABLED'] = False
 def setUp(self):
     self.app = app.test_client()
     self.test_personal_item = json.loads(personal_item_data)
     self.test_uk_org_item = json.loads(uk_org_item_data)
     self.test_overseas_org_item = json.loads(overseas_org_item_data)