def test_datapoint_summary_list(self): """Testing function datapoint_summary_list.""" # Start testing results = db_multitable.datapoint_summary_list() for data_dict in results: for key, _ in data_dict.items(): self.assertEqual(data_dict[key], self.expected[key])
def db_datapoint_summary_list(): """Get Datapoint summary data from the DB as a list of dicts. Args: None Returns: Home Page """ # Get data data = db_multitable.datapoint_summary_list() # Return return jsonify(data)