Skip to content

Commit

Permalink
Remove YBlob test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Jul 10, 2024
1 parent 68a9a3f commit eee08b4
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions tests/test_ydocs.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from jupyter_ydoc import YBlob, YNotebook


def test_yblob():
yblob = YBlob()
assert yblob.get() == b""
yblob.set(b"012")
assert yblob.get() == b"012"
changes = []

def callback(topic, event):
print(topic, event)
changes.append((topic, event))

yblob.observe(callback)
yblob.set(b"345")
assert len(changes) == 1
topic, event = changes[0]
assert topic == "source"
assert event.keys["bytes"]["oldValue"] == b"012"
assert event.keys["bytes"]["newValue"] == b"345"
from jupyter_ydoc import YNotebook


def test_ynotebook_undo_manager():
Expand Down

0 comments on commit eee08b4

Please sign in to comment.