Пример #1
0
 def test_list(self):
     ctx = app.test_request_context()
     ctx.push()
     r = app.test_client().get(url_for('root'))
     self.assertEqual(
         r.status_code,
         200
     )
Пример #2
0
 def setUp(self):
     self.client = app.test_client()
     ctx = app.test_request_context()
     ctx.push()
Пример #3
0
 def setUpClass(cls):
     cls.client = app.test_client()
     cls.wallet = Wallet.query.filter(Wallet.label=='box1').first()
     cls.conn = get_connection(cls.wallet)
     cls.account = 'testaccount-%s' % datetime.datetime.now().isoformat()
     cls.info = cls.conn.getinfo()
Пример #4
0
 def setUp(self):
     self.client = app.test_client()
     ctx = app.test_request_context()
     ctx.push()
Пример #5
0
 def setUpClass(cls):
     cls.client = app.test_client()
     cls.wallet = Wallet.query.filter(Wallet.label == 'box1').first()
     cls.conn = get_connection(cls.wallet)
     cls.account = 'testaccount-%s' % datetime.datetime.now().isoformat()
     cls.info = cls.conn.getinfo()
Пример #6
0
 def setUp(self):
     self.client = app.test_client()
Пример #7
0
 def test_list(self):
     ctx = app.test_request_context()
     ctx.push()
     r = app.test_client().get(url_for('root'))
     self.assertEqual(r.status_code, 200)
Пример #8
0
 def setUp(self):
     self.client = app.test_client()