We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7845ff7 commit dc91692Copy full SHA for dc91692
tests/test_ydocs.py
@@ -1,6 +1,8 @@
1
# Copyright (c) Jupyter Development Team.
2
# Distributed under the terms of the Modified BSD License.
3
4
+from pycrdt_websocket.awareness import Awareness
5
+
6
from jupyter_ydoc import YBlob, YNotebook
7
8
@@ -53,3 +55,14 @@ def test_ynotebook_undo_manager():
53
55
ynotebook.undo_manager.undo()
54
56
assert len(ynotebook.ycells) == 0
57
assert not ynotebook.undo_manager.can_undo()
58
59
60
+def test_awareness():
61
+ yblob = YBlob()
62
63
+ assert yblob.awareness is None
64
65
+ awareness = Awareness(yblob.ydoc)
66
+ yblob.awareness = awareness
67
68
+ assert yblob.awareness == awareness
0 commit comments