Exemple #1
0
    def test_create_cube(self):
        cube = {
                "name": "cube",
                "dimensions": ["date"],
                "aggregates": ["record_count"],
                "details": ["some_detail", "another_detail"]
        }
        cube = create_cube(cube)

        self.assertEqual(cube.name, "cube")
        self.assertEqual(len(cube.aggregates), 1)
        self.assertEqual(len(cube.details), 2)
Exemple #2
0
    def test_create_cube(self):
        cube = {
            "name": "cube",
            "dimensions": ["date"],
            "aggregates": ["record_count"],
            "details": ["some_detail", "another_detail"]
        }
        cube = create_cube(cube)

        self.assertEqual(cube.name, "cube")
        self.assertEqual(len(cube.aggregates), 1)
        self.assertEqual(len(cube.details), 2)
Exemple #3
0
 def cube(self, name):
     """Create a cube object `name` from measures test model."""
     return create_cube(self.cubes_md[name])
Exemple #4
0
 def cube(self, name):
     """Create a cube object `name` from measures test model."""
     return create_cube(self.cubes_md[name])