1616pytestmark = pytest .mark .network
1717
1818NITEMS_SMALL = 1_000
19- ROOT = "b2tests "
19+ ROOT = "@public "
2020DIR = "expr/"
2121
2222
@@ -51,7 +51,7 @@ def get_arrays(shape, chunks_blocks):
5151 (False , False ),
5252 ],
5353)
54- def test_simple (chunks_blocks , c2sub_context ):
54+ def test_simple (chunks_blocks , cat2_context ):
5555 shape = (60 , 60 )
5656 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , chunks_blocks )
5757
@@ -67,7 +67,7 @@ def test_simple(chunks_blocks, c2sub_context):
6767 np .testing .assert_allclose (res [:], nres )
6868
6969
70- def test_simple_getitem (c2sub_context ):
70+ def test_simple_getitem (cat2_context ):
7171 shape = (NITEMS_SMALL ,)
7272 chunks_blocks = "default"
7373 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , chunks_blocks )
@@ -91,7 +91,7 @@ def test_simple_getitem(c2sub_context):
9191 (False , False ),
9292 ],
9393)
94- def test_ixxx (chunks_blocks , c2sub_context ):
94+ def test_ixxx (chunks_blocks , cat2_context ):
9595 shape = (60 , 60 )
9696 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , chunks_blocks )
9797 expr = a1 ** 3 + a2 ** 2 + a3 ** 3 - a4 + 3
@@ -103,7 +103,7 @@ def test_ixxx(chunks_blocks, c2sub_context):
103103 np .testing .assert_allclose (res [:], nres )
104104
105105
106- def test_complex (c2sub_context ):
106+ def test_complex (cat2_context ):
107107 shape = (NITEMS_SMALL ,)
108108 chunks_blocks = "default"
109109 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , chunks_blocks )
@@ -132,7 +132,7 @@ def test_complex(c2sub_context):
132132 (False , False ),
133133 ],
134134)
135- def test_mix_operands (chunks_blocks , c2sub_context ):
135+ def test_mix_operands (chunks_blocks , cat2_context ):
136136 shape = (60 , 60 )
137137 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , chunks_blocks )
138138 b1 = blosc2 .asarray (na1 , chunks = a1 .chunks , blocks = a1 .blocks )
@@ -168,7 +168,7 @@ def test_mix_operands(chunks_blocks, c2sub_context):
168168
169169
170170# Tests related with save method
171- def test_save (c2sub_context ):
171+ def test_save (cat2_context ):
172172 shape = (60 , 60 )
173173 tol = 1e-17
174174 a1 , a2 , a3 , a4 , na1 , na2 , na3 , na4 = get_arrays (shape , (False , True ))
@@ -212,7 +212,7 @@ def broadcast_shape(request):
212212
213213
214214@pytest .fixture
215- def broadcast_fixture (broadcast_shape , c2sub_context ):
215+ def broadcast_fixture (broadcast_shape , cat2_context ):
216216 shape1 , shape2 = broadcast_shape
217217 dtype = np .float64
218218 na1 = np .linspace (0 , 1 , np .prod (shape1 ), dtype = dtype ).reshape (shape1 )
0 commit comments