File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,7 @@ async def get_document(
158
158
return None
159
159
160
160
if isinstance (room , DocumentRoom ):
161
- update = room .ydoc .get_update ()
162
-
163
- fork_ydoc = Doc ()
164
- fork_ydoc .apply_update (update )
165
-
166
- return YDOCS .get (content_type , YDOCS ["file" ])(fork_ydoc )
161
+ return room ._document
167
162
168
163
return None
169
164
Original file line number Diff line number Diff line change @@ -67,15 +67,3 @@ async def test_get_document_file(rtc_create_file, jp_serverapp):
67
67
document = await collaboration .get_document (path = path , content_type = "file" , file_format = "text" )
68
68
assert document .get () == content == "test"
69
69
await collaboration .stop_extension ()
70
-
71
-
72
- async def test_get_document_file_is_a_fork (rtc_create_file , jp_serverapp , rtc_fetch_session ):
73
- path , content = await rtc_create_file ("test.txt" , "test" , store = True )
74
- collaboration = jp_serverapp .web_app .settings ["jupyter_collaboration" ]
75
- document = await collaboration .get_document (path = path , content_type = "file" , file_format = "text" )
76
- document .set ("other" )
77
- fresh_copy = await collaboration .get_document (
78
- path = path , content_type = "file" , file_format = "text"
79
- )
80
- assert fresh_copy .get () == "test"
81
- await collaboration .stop_extension ()
You can’t perform that action at this time.
0 commit comments