/ test / allthethings / up / test_views.py
test_views.py
 1  from flask import url_for
 2  
 3  from lib.test import ViewTestMixin
 4  
 5  
 6  class TestUp(ViewTestMixin):
 7      def test_up(self):
 8          """Up should respond with a success 200."""
 9          response = self.client.get(url_for("up.index"))
10  
11          assert response.status_code == 200
12  
13      def test_up_databases(self):
14          """Up databases should respond with a success 200."""
15          response = self.client.get(url_for("up.databases"))
16  
17          assert response.status_code == 200