-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconftest.py
33 lines (30 loc) · 942 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import pytest
pytest_plugins = [
"pytest_jupyter.jupyter_server",
"jupyter_server.pytest_plugin",
"jupyter_server_fileid.pytest_plugin",
"jupyter_server_ydoc.pytest_plugin"
]
@pytest.fixture
def jp_server_config(jp_root_dir, jp_server_config):
return {
'ServerApp': {
'jpserver_extensions': {
'jupyter_server_ydoc': True,
'jupyter_server_fileid': True,
'jupyter_server_nbmodel': True,
},
'token': '',
'password': '',
'disable_check_xsrf': True
},
"SQLiteYStore": {"db_path": str(jp_root_dir.joinpath(".rtc_test.db"))},
"BaseFileIdManager": {
"root_dir": str(jp_root_dir),
"db_path": str(jp_root_dir.joinpath(".fid_test.db")),
"db_journal_mode": "OFF",
},
"YDocExtension": {
"document_save_delay": 1
}
}