File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 32
32
33
33
34
34
def describe_connection_from_array ():
35
+ def warns_for_deprecated_import ():
36
+ from importlib import reload
37
+
38
+ with deprecated_call ():
39
+ from graphql_relay .connection import arrayconnection as deprecated
40
+
41
+ # noinspection PyDeprecation
42
+ reload (deprecated )
43
+ # noinspection PyDeprecation
44
+ assert deprecated .connection_from_array is connection_from_array
45
+
35
46
def describe_basic_slicing ():
36
47
def returns_all_elements_without_filters ():
37
48
c = connection_from_array (array_abcde , {})
@@ -465,6 +476,17 @@ def provides_deprecated_connection_from_list():
465
476
466
477
467
478
def describe_connection_from_array_slice ():
479
+ def warns_for_deprecated_import ():
480
+ from importlib import reload
481
+
482
+ with deprecated_call ():
483
+ from graphql_relay .connection import arrayconnection as deprecated
484
+
485
+ # noinspection PyDeprecation
486
+ reload (deprecated )
487
+ # noinspection PyDeprecation
488
+ assert deprecated .connection_from_array_slice is connection_from_array_slice
489
+
468
490
def works_with_a_just_right_array_slice ():
469
491
c = connection_from_array_slice (
470
492
array_abcde [1 :3 ],
You can’t perform that action at this time.
0 commit comments