def test_multi_analysis(self):
     resp = keen.multi_analysis("query test",
                                analyses={"total": {"analysis_type": "sum", "target_property": "number"}},
                                timeframe="today", interval="hourly")
     self.assertEqual(type(resp), list)
     for result in resp:
     	self.assertEqual(type(result["value"]["total"]), int)
Beispiel #2
0
 def test_multi_analysis(self, get):
     get.return_value = self.LIST_RESPONSE
     resp = keen.multi_analysis("query test",
                                analyses={"total": {"analysis_type": "sum", "target_property": "number"}},
                                timeframe="today", interval="hourly")
     self.assertEqual(type(resp), list)
     for result in resp:
         self.assertEqual(type(result["value"]["total"]), int)
Beispiel #3
0
 def test_multi_analysis(self):
     resp = keen.multi_analysis("query test",
                                analyses={
                                    "total": {
                                        "analysis_type": "sum",
                                        "target_property": "number"
                                    }
                                },
                                timeframe="today")
     assert type(resp) is dict
     assert type(resp["total"]) is int
 def test_multi_analysis(self):
     resp = keen.multi_analysis("query test",
                                analyses={"total": {"analysis_type": "sum", "target_property": "number"}},
                                timeframe="today")
     self.assertEqual(type(resp), dict)
     self.assertEqual(type(resp["total"]), int)
 def test_multi_analysis(self):
     resp = keen.multi_analysis("query test",
                                analyses={"total": {"analysis_type": "sum", "target_property": "number"}},
                                timeframe="today")
     assert isinstance(resp, dict)
     assert isinstance(resp["total"], int)