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 8c74b23 commit 4612306Copy full SHA for 4612306
tests/test_ydocs.py
@@ -1,7 +1,7 @@
1
# Copyright (c) Jupyter Development Team.
2
# Distributed under the terms of the Modified BSD License.
3
4
-from pycrdt import Awareness
+from pycrdt import Awareness, Doc
5
6
from jupyter_ydoc import YBlob, YNotebook
7
@@ -59,10 +59,9 @@ def test_ynotebook_undo_manager():
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
+ ydoc = Doc()
+ awareness = Awareness(ydoc)
+ yblob = YBlob(ydoc, awareness)
68
assert yblob.awareness == awareness
0 commit comments