1010def test_cube_adapter ():
1111 """Test Cube adapter with example YAML."""
1212 adapter = CubeAdapter ()
13- graph = adapter .parse (Path ("examples /cube/orders.yml" ))
13+ graph = adapter .parse (Path ("tests/fixtures /cube/orders.yml" ))
1414
1515 # Check models were imported
1616 assert "orders" in graph .models
@@ -48,7 +48,7 @@ def test_cube_adapter():
4848def test_cube_adapter_join_discovery ():
4949 """Test that Cube adapter enables join discovery."""
5050 adapter = CubeAdapter ()
51- graph = adapter .parse (Path ("examples /cube/orders.yml" ))
51+ graph = adapter .parse (Path ("tests/fixtures /cube/orders.yml" ))
5252
5353 # Check that relationships were imported
5454 orders = graph .get_model ("orders" )
@@ -60,7 +60,7 @@ def test_cube_adapter_join_discovery():
6060def test_cube_adapter_pre_aggregations ():
6161 """Test Cube adapter with pre-aggregations."""
6262 adapter = CubeAdapter ()
63- graph = adapter .parse (Path ("examples /cube/orders_with_preagg.yml" ))
63+ graph = adapter .parse (Path ("tests/fixtures /cube/orders_with_preagg.yml" ))
6464
6565 orders = graph .get_model ("orders" )
6666 assert orders is not None
@@ -85,7 +85,7 @@ def test_cube_adapter_pre_aggregations():
8585def test_cube_adapter_multi_cube ():
8686 """Test Cube adapter with multiple related cubes."""
8787 adapter = CubeAdapter ()
88- graph = adapter .parse (Path ("examples /cube/ecommerce_multi_cube.yml" ))
88+ graph = adapter .parse (Path ("tests/fixtures /cube/ecommerce_multi_cube.yml" ))
8989
9090 # Check all models were imported
9191 assert "orders" in graph .models
@@ -118,7 +118,7 @@ def test_cube_adapter_multi_cube():
118118def test_cube_adapter_segments ():
119119 """Test Cube adapter segment parsing with SQL transformations."""
120120 adapter = CubeAdapter ()
121- graph = adapter .parse (Path ("examples /cube/ecommerce_multi_cube.yml" ))
121+ graph = adapter .parse (Path ("tests/fixtures /cube/ecommerce_multi_cube.yml" ))
122122
123123 # Test orders segments
124124 orders = graph .get_model ("orders" )
@@ -141,7 +141,7 @@ def test_cube_adapter_segments():
141141def test_cube_adapter_drill_members ():
142142 """Test Cube adapter drill member parsing."""
143143 adapter = CubeAdapter ()
144- graph = adapter .parse (Path ("examples /cube/ecommerce_multi_cube.yml" ))
144+ graph = adapter .parse (Path ("tests/fixtures /cube/ecommerce_multi_cube.yml" ))
145145
146146 orders = graph .get_model ("orders" )
147147 count_metric = orders .get_metric ("count" )
@@ -157,7 +157,7 @@ def test_cube_adapter_drill_members():
157157def test_cube_saas_analytics ():
158158 """Test Cube adapter with SaaS analytics example."""
159159 adapter = CubeAdapter ()
160- graph = adapter .parse (Path ("examples /cube/saas_analytics.yml" ))
160+ graph = adapter .parse (Path ("tests/fixtures /cube/saas_analytics.yml" ))
161161
162162 # Check all models were imported
163163 assert "users" in graph .models
@@ -236,7 +236,7 @@ def test_cube_saas_analytics():
236236def test_cube_retail_analytics ():
237237 """Test Cube adapter with retail analytics example."""
238238 adapter = CubeAdapter ()
239- graph = adapter .parse (Path ("examples /cube/retail_analytics.yml" ))
239+ graph = adapter .parse (Path ("tests/fixtures /cube/retail_analytics.yml" ))
240240
241241 # Check all models were imported
242242 assert "products" in graph .models
@@ -306,7 +306,7 @@ def test_cube_retail_analytics():
306306def test_cube_web_analytics ():
307307 """Test Cube adapter with web analytics example."""
308308 adapter = CubeAdapter ()
309- graph = adapter .parse (Path ("examples /cube/web_analytics.yml" ))
309+ graph = adapter .parse (Path ("tests/fixtures /cube/web_analytics.yml" ))
310310
311311 # Check all models were imported
312312 assert "page_views" in graph .models
@@ -381,7 +381,7 @@ def test_cube_web_analytics():
381381def test_cube_financial_analytics ():
382382 """Test Cube adapter with financial analytics example."""
383383 adapter = CubeAdapter ()
384- graph = adapter .parse (Path ("examples /cube/financial_analytics.yml" ))
384+ graph = adapter .parse (Path ("tests/fixtures /cube/financial_analytics.yml" ))
385385
386386 # Check all models were imported
387387 assert "transactions" in graph .models
@@ -437,7 +437,7 @@ def test_cube_financial_analytics():
437437def test_cube_logistics_shipping ():
438438 """Test Cube adapter with logistics/shipping example."""
439439 adapter = CubeAdapter ()
440- graph = adapter .parse (Path ("examples /cube/logistics_shipping.yml" ))
440+ graph = adapter .parse (Path ("tests/fixtures /cube/logistics_shipping.yml" ))
441441
442442 # Check all models were imported
443443 assert "shipments" in graph .models
@@ -499,7 +499,7 @@ def test_cube_logistics_shipping():
499499def test_cube_iot_sensors ():
500500 """Test Cube adapter with IoT/sensor data example."""
501501 adapter = CubeAdapter ()
502- graph = adapter .parse (Path ("examples /cube/iot_sensors.yml" ))
502+ graph = adapter .parse (Path ("tests/fixtures /cube/iot_sensors.yml" ))
503503
504504 # Check all models were imported
505505 assert "sensor_readings" in graph .models
@@ -563,7 +563,7 @@ def test_cube_iot_sensors():
563563def test_cube_healthcare_patients ():
564564 """Test Cube adapter with healthcare analytics example."""
565565 adapter = CubeAdapter ()
566- graph = adapter .parse (Path ("examples /cube/healthcare_patients.yml" ))
566+ graph = adapter .parse (Path ("tests/fixtures /cube/healthcare_patients.yml" ))
567567
568568 # Check all models were imported
569569 assert "patients" in graph .models
0 commit comments