Skip to content

Commit c2958de

Browse files
committed
Updated tests
1 parent 627df92 commit c2958de

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

jupyter_server_documents/tests/test_output_index_tracker.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff 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-
10175
def test_cell_display_ids_tracking():
10276
"""
10377
Test tracking of display IDs for a cell

0 commit comments

Comments
 (0)