Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 363 Bytes

test_boilerplate.md

File metadata and controls

17 lines (12 loc) · 363 Bytes
from app import app
import unittest


class FlaskTestCase(unittest.TestCase):

    # Ensure that flask was set up correctly
    def test_index(self):
        tester = app.test_client(self)
        response = tester.get('/login', content_type='html/text')
        self.assertEqual(response.status_code, 200)


if __name__ == '__main__':
    unittest.main()