Skip to content

Commit 39c8afc

Browse files
committed
Setup test files for outputs.
1 parent 79e3526 commit 39c8afc

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

jupyter_rtc_core/outputs/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get(self, file_id=None, cell_id=None):
7373
# non-negative integers
7474
_output_index_regex = r"(?P<output_index>0|[1-9]\d*)"
7575

76-
handlers = [
76+
outputs_handlers = [
7777
(rf"/api/outputs/{_file_id_regex}/{_cell_id_regex}/{_output_index_regex}.output", OutputsAPIHandler),
7878
(rf"/api/outputs/{_file_id_regex}/{_cell_id_regex}/stream", StreamAPIHandler),
7979
]

jupyter_rtc_core/outputs/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import shutil
55

66

7-
from traitlets.config.configurable import LoggingConfigurable
7+
from traitlets.config import LoggingConfigurable
88
from traitlets import (
99
Any,
1010
Bool,

jupyter_rtc_core/outputs/output_processor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
from pycrdt import Map
55

6-
from traitlets import LoggingConfigurable, Dict, Unicode
6+
from traitlets import Dict, Unicode
7+
from traitlets.config import LoggingConfigurable
78

89

910
class OutputProcessor(LoggingConfigurable):
@@ -130,7 +131,7 @@ async def output_task(self, msg_type, cell_id, content):
130131
notebook = await self.jupyter_server_ydoc.get_document(
131132
path=path,
132133
copy=False,
133-
file_format='json
134+
file_format='json',
134135
content_type='notebook'
135136
)
136137
except: # what exception to catch?
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from ..outputs import OutputProcessor
2+
3+
def test_instantiation():
4+
op = OutputProcessor()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from ..outputs import OutputsManager
2+
3+
def test_instantiation():
4+
op = OutputsManager()
5+

0 commit comments

Comments
 (0)