Skip to content

Commit 4612306

Browse files
Apply suggestions from code review
Co-authored-by: David Brochart <[email protected]>
1 parent 8c74b23 commit 4612306

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_ydocs.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Jupyter Development Team.
22
# Distributed under the terms of the Modified BSD License.
33

4-
from pycrdt import Awareness
4+
from pycrdt import Awareness, Doc
55

66
from jupyter_ydoc import YBlob, YNotebook
77

@@ -59,10 +59,9 @@ def test_ynotebook_undo_manager():
5959

6060
def test_awareness():
6161
yblob = YBlob()
62-
6362
assert yblob.awareness is None
6463

65-
awareness = Awareness(yblob.ydoc)
66-
yblob.awareness = awareness
67-
64+
ydoc = Doc()
65+
awareness = Awareness(ydoc)
66+
yblob = YBlob(ydoc, awareness)
6867
assert yblob.awareness == awareness

0 commit comments

Comments
 (0)