Example #1
0
    def setUp(self):
        """ Test setup """
        self.client = app.test_client()

        # Set up the tables in the database
        Base.metadata.create_all(engine)
 def setUp(self):
     """ Test setup """
     self.client = app.test_client()
     Base.metadata.create_all(engine)
Example #3
0
    def setUp(self):
        # """ Test setup """
        self.client = app.test_client()

        # Set up the tables in the database
        Base.metadata.create_all(engine)
Example #4
0
 def test_posts(self):
     tester = app.test_client(self)
     response = tester.get('/api/v1.0/posts', content_type='application/json')
     self.assertEqual(response.status_code, 200)