File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
jupyter_server_documents/tests Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -72,32 +72,6 @@ def test_clear_cell_indices():
7272 # Verify cell2 indices remain
7373 assert 'cell2' in tracker ._last_output_index
7474
75- def test_memory_efficiency ():
76- """
77- Basic test to ensure __slots__ is working
78- """
79- tracker = OutputIndexTracker ()
80-
81- # Attempt to add a new attribute should raise an AttributeError
82- with pytest .raises (AttributeError ):
83- tracker .new_attribute = "test"
84-
85- def test_key_interning ():
86- """
87- Test that key interning works for repeated strings
88- """
89- tracker = OutputIndexTracker ()
90-
91- # Use the same string multiple times
92- cell_id = "repeated_cell"
93- display_id = "repeated_display"
94-
95- # Allocate indices multiple times
96- for _ in range (5 ):
97- index1 = tracker .allocate_output_index (cell_id , display_id )
98- index2 = tracker .allocate_output_index (cell_id , display_id )
99- assert index1 == index2
100-
10175def test_cell_display_ids_tracking ():
10276 """
10377 Test tracking of display IDs for a cell
You can’t perform that action at this time.
0 commit comments