def test_funnel_return_all_keys(self, get):
        get.return_value = MockedResponse(status_code=200, json_response={
            "result": [],
            "actors": [],
            "random_key": [],
            "steps": []
        })

        resp = keen.funnel([1, 2], all_keys=True)
        self.assertEquals(type(resp), dict)
        self.assertTrue("actors" in resp)
        self.assertTrue("random_key" in resp)
Example #2
0
    def test_funnel_return_all_keys(self, get):
        get.return_value = MockedResponse(status_code=200, json_response={
            "result": [],
            "actors": [],
            "random_key": [],
            "steps": []
        })

        resp = keen.funnel([1, 2], all_keys=True)
        self.assertEquals(type(resp), dict)
        self.assertTrue("actors" in resp)
        self.assertTrue("random_key" in resp)
 def test_funnel(self):
     step1 = {
         "event_collection": "query test",
         "actor_property": "number",
         "timeframe": "today"
     }
     step2 = {
         "event_collection": "step2",
         "actor_property": "number",
         "timeframe": "today"
     }
     resp = keen.funnel([step1, step2])
     self.assertEqual(type(resp), list)
 def test_funnel(self):
     step1 = {
         "event_collection": "query test",
         "actor_property": "number",
         "timeframe": "today"
     }
     step2 = {
         "event_collection": "step2",
         "actor_property": "number",
         "timeframe": "today"
     }
     resp = keen.funnel([step1, step2])
     assert isinstance(resp, list), resp
Example #5
0
 def test_funnel(self):
     step1 = {
         "event_collection": "query test",
         "actor_property": "number",
         "timeframe": "today"
     }
     step2 = {
         "event_collection": "step2",
         "actor_property": "number",
         "timeframe": "today"
     }
     resp = keen.funnel([step1, step2])
     assert type(resp) is list, resp
 def test_funnel(self, get):
     get.return_value = self.LIST_RESPONSE
     step1 = {
         "event_collection": "query test",
         "actor_property": "number",
         "timeframe": "today"
     }
     step2 = {
         "event_collection": "step2",
         "actor_property": "number",
         "timeframe": "today"
     }
     resp = keen.funnel([step1, step2])
     self.assertEqual(type(resp), list)
    def test_funnel(self, get):
        get.return_value = self.LIST_RESPONSE

        step1 = {
            "event_collection": "signed up",
            "actor_property": "visitor.guid",
            "timeframe": "today"
        }
        step2 = {
            "event_collection": "completed profile",
            "actor_property": "user.guid",
            "timeframe": "today"
        }

        resp = keen.funnel([step1, step2])
        self.assertEqual(type(resp), list)
    def test_funnel(self, get):
        get.return_value = self.LIST_RESPONSE

        step1 = {
            "event_collection": "signed up",
            "actor_property": "visitor.guid",
            "timeframe": "today"
        }
        step2 = {
            "event_collection": "completed profile",
            "actor_property": "user.guid",
            "timeframe": "today"
        }

        resp = keen.funnel([step1, step2])
        self.assertEqual(type(resp), list)