3
3
import pytest
4
4
5
5
from pytest_split .algorithms import Algorithms
6
- from pytest_split .ipynb_compatibility import _reorganize_broken_up_ipynbs
6
+ from pytest_split .ipynb_compatibility import ensure_ipynb_compatibility
7
7
8
8
item = namedtuple ("item" , "nodeid" )
9
9
10
10
11
11
class TestIPyNb :
12
12
@pytest .mark .parametrize ("algo_name" , ["duration_based_chunks" ])
13
- def test__reorganize_broken_up_ipynbs (self , algo_name ):
13
+ def test_ensure_ipynb_compatibility (self , algo_name ):
14
14
durations = {
15
15
"temp/nbs/test_1.ipynb::Cell 0" : 1 ,
16
16
"temp/nbs/test_1.ipynb::Cell 1" : 1 ,
@@ -54,7 +54,7 @@ def test__reorganize_broken_up_ipynbs(self, algo_name):
54
54
item (nodeid = "temp/nbs/test_4.ipynb::Cell 2" ),
55
55
]
56
56
57
- _reorganize_broken_up_ipynbs (groups [0 ], items )
57
+ ensure_ipynb_compatibility (groups [0 ], items )
58
58
assert groups [0 ].selected == [
59
59
item (nodeid = "temp/nbs/test_1.ipynb::Cell 0" ),
60
60
item (nodeid = "temp/nbs/test_1.ipynb::Cell 1" ),
@@ -65,7 +65,7 @@ def test__reorganize_broken_up_ipynbs(self, algo_name):
65
65
item (nodeid = "temp/nbs/test_2.ipynb::Cell 3" ),
66
66
]
67
67
68
- _reorganize_broken_up_ipynbs (groups [1 ], items )
68
+ ensure_ipynb_compatibility (groups [1 ], items )
69
69
assert groups [1 ].selected == [
70
70
item (nodeid = "temp/nbs/test_3.ipynb::Cell 0" ),
71
71
item (nodeid = "temp/nbs/test_3.ipynb::Cell 1" ),
@@ -74,7 +74,7 @@ def test__reorganize_broken_up_ipynbs(self, algo_name):
74
74
item (nodeid = "temp/nbs/test_3.ipynb::Cell 4" ),
75
75
]
76
76
77
- _reorganize_broken_up_ipynbs (groups [2 ], items )
77
+ ensure_ipynb_compatibility (groups [2 ], items )
78
78
assert groups [2 ].selected == [
79
79
item (nodeid = "temp/nbs/test_4.ipynb::Cell 0" ),
80
80
item (nodeid = "temp/nbs/test_4.ipynb::Cell 1" ),
0 commit comments