Exemplo n.º 1
0
    def setUp(self):
        self.app = app.test_client()
        self.dbh_mock = Mock()
        self.datetime_mock = Mock()

        self.setup_mock_responses()

        flu_track_app.database_handler = self.dbh_mock
        flu_track_app.weekly_data_retriever = self.dbh_mock
        flu_track_app.datetime = self.datetime_mock
Exemplo n.º 2
0
    def setUp(self):
        self.app = app.test_client()
        self.dbh_mock = Mock()
        self.datetime_mock = Mock()

        self.setup_mock_responses()

        flu_track_app.database_handler = self.dbh_mock
        flu_track_app.weekly_data_retriever = self.dbh_mock
        flu_track_app.datetime = self.datetime_mock
Exemplo n.º 3
0
 def setUp(self):
     self.app = app.test_client()