/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/contents/ |
H A D | test_api.py | 129 await jp_fetch( 178 r = await jp_fetch( 194 await jp_fetch( 217 await jp_fetch( 226 await jp_fetch( 252 await jp_fetch( 265 await jp_fetch( 277 await jp_fetch( 348 r = await jp_fetch( 354 r = await jp_fetch( [all …]
|
/dports/devel/py-jupyterlab-server/jupyterlab_server-2.8.2/jupyterlab_server/tests/ |
H A D | test_workspaces_api.py | 16 async def test_delete(jp_fetch, labserverapp): argument 19 r = await jp_fetch('lab', 'api', 'workspaces', orig) 37 r = await jp_fetch('lab', 'api', 'workspaces', id) 70 async def test_get(jp_fetch, labserverapp): argument 85 async def test_listing(jp_fetch, labserverapp): argument 88 r = await jp_fetch('lab', 'api', 'workspaces/') 97 r = await jp_fetch('lab', 'api', 'workspaces') 111 async def test_put(jp_fetch, labserverapp): argument 125 async def test_bad_put(jp_fetch, labserverapp): argument 140 async def test_blank_put(jp_fetch, labserverapp): argument [all …]
|
H A D | test_settings_api.py | 20 r = await jp_fetch('lab', 'api', 'settings', id) 31 async def test_get_settings(jp_fetch, labserverapp): argument 33 r = await jp_fetch('lab', 'api', 'settings', id) 52 async def test_get_bad(jp_fetch, labserverapp): argument 54 await jp_fetch('foo') 57 async def test_listing(jp_fetch, labserverapp): argument 68 r = await jp_fetch('lab', 'api', 'settings/') 83 async def test_patch(jp_fetch, labserverapp): argument 116 r = await jp_fetch('lab', 'api', 'settings/', 148 await jp_fetch('foo', [all …]
|
H A D | test_translation_api.py | 74 async def test_get(jp_fetch): argument 75 r = await jp_fetch("lab", "api", "translations/") 80 async def test_get_locale(jp_fetch): argument 82 r = await jp_fetch("lab", "api", "translations", locale) 92 async def test_get_locale_bad(jp_fetch): argument 98 async def test_get_locale_not_installed(jp_fetch): argument 105 async def test_get_locale_not_valid(jp_fetch): argument 115 async def test_backend_locale(jp_fetch): argument 117 r = await jp_fetch("lab", "api", "translations", locale) 123 async def test_backend_locale_extension(jp_fetch): argument [all …]
|
H A D | test_labapp.py | 22 async def test_lab_handler(notebooks, jp_fetch): argument 23 r = await jp_fetch('lab', 'jlab_test_notebooks') 31 async def test_notebook_handler(notebooks, jp_fetch): argument 33 r = await jp_fetch('lab', nbpath) 40 async def test_404(notebooks, jp_fetch): argument 42 await jp_fetch('foo')
|
H A D | test_licenses_api.py | 92 jp_fetch, argument 102 r = await jp_fetch("lab", "api", "licenses/", params=params) 110 jp_fetch, argument 116 r = await jp_fetch("lab", "api", "licenses/", params=params) 125 jp_fetch, argument 130 r = await jp_fetch("lab", "api", "licenses/") 144 jp_fetch, argument 150 r = await jp_fetch("lab", "api", "licenses/")
|
H A D | test_themes_api.py | 5 async def test_get_theme(jp_fetch, labserverapp): argument 6 r = await jp_fetch("lab", "api", "themes", "@jupyterlab", "foo", "index.css")
|
H A D | test_listings_api.py | 5 async def test_get_listing(jp_fetch, labserverapp): argument 7 r = await jp_fetch(*url.split('/'))
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/kernels/ |
H A D | test_api.py | 36 async def test_no_kernels(jp_fetch): argument 37 r = await jp_fetch("api", "kernels", method="GET") 59 r = await jp_fetch( 74 r = await jp_fetch("api", "kernels", method="GET") 82 r = await jp_fetch( 96 r = await jp_fetch( 106 r = await jp_fetch( 114 r = await jp_fetch( 127 r = await jp_fetch( 145 r = await jp_fetch( [all …]
|
H A D | test_cull.py | 37 async def test_cull_idle(jp_fetch, jp_ws_fetch, jp_cleanup_subprocesses): argument 38 r = await jp_fetch("api", "kernels", method="POST", allow_nonstandard_methods=True) 45 r = await jp_fetch("api", "kernels", kid, method="GET") 48 culled = await get_cull_status(kid, jp_fetch) # connected, should not be culled 51 culled = await get_cull_status(kid, jp_fetch) # not connected, should be culled 57 jp_fetch, jp_ws_fetch, jp_serverapp, jp_cleanup_subprocesses, jp_kernelspecs argument 64 r = await jp_fetch("api", "kernels", method="POST", allow_nonstandard_methods=True) 72 r = await jp_fetch("api", "kernels", kid, method="GET") 75 culled = await get_cull_status(kid, jp_fetch) # connected, should not be culled 80 async def get_cull_status(kid, jp_fetch): argument [all …]
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/ |
H A D | test_gateway.py | 250 await interrupt_kernel(jp_fetch, kernel_id) 256 await restart_kernel(jp_fetch, kernel_id) 262 await delete_session(jp_fetch, session_id) 276 await interrupt_kernel(jp_fetch, kernel_id) 282 await restart_kernel(jp_fetch, kernel_id) 288 await delete_kernel(jp_fetch, kernel_id) 325 async def delete_session(jp_fetch, session_id): argument 373 r = await jp_fetch( 380 async def restart_kernel(jp_fetch, kernel_id): argument 383 r = await jp_fetch( [all …]
|
H A D | test_files.py | 22 async def fetch_expect_200(jp_fetch, *path_parts): argument 23 r = await jp_fetch("files", *path_parts, method="GET") 27 async def fetch_expect_404(jp_fetch, *path_parts): argument 29 await jp_fetch("files", *path_parts, method="GET") 46 await fetch_expect_404(jp_fetch, *path_parts, ".foo") 47 await fetch_expect_200(jp_fetch, *path_parts, "foo") 52 await fetch_expect_200(jp_fetch, *path_parts, foo) 72 r = await jp_fetch("files/testnb.ipynb", method="GET") 76 r = await jp_fetch("files/test.bin", method="GET") 82 r = await jp_fetch("files/test.txt", method="GET") [all …]
|
H A D | test_terminal.py | 39 async def test_no_terminals(jp_fetch): argument 40 resp_list = await jp_fetch( 52 async def test_terminal_create(jp_fetch, jp_cleanup_subprocesses): argument 53 resp = await jp_fetch( 62 resp_list = await jp_fetch( 77 jp_fetch, jp_ws_fetch, terminal_path, jp_cleanup_subprocesses argument 79 resp_create = await jp_fetch( 90 resp_get = await jp_fetch( 107 resp = await jp_fetch( 151 resp = await jp_fetch( [all …]
|
H A D | test_view.py | 45 async def test_view(jp_fetch, jp_serverapp, jp_root_dir, exists, name): argument 52 await jp_fetch("view", name, method="GET") 55 r = await jp_fetch("view", name, method="GET")
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/kernelspecs/ |
H A D | test_api.py | 11 async def test_list_kernelspecs_bad(jp_fetch, jp_kernelspecs, jp_data_dir): argument 17 r = await jp_fetch("api", "kernelspecs", method="GET") 26 async def test_list_kernelspecs(jp_fetch, jp_kernelspecs): argument 27 r = await jp_fetch("api", "kernelspecs", method="GET") 45 async def test_get_kernelspecs(jp_fetch, jp_kernelspecs): argument 46 r = await jp_fetch("api", "kernelspecs", "Sample", method="GET") 54 async def test_get_kernelspec_spaces(jp_fetch, jp_kernelspecs): argument 55 r = await jp_fetch("api", "kernelspecs", "sample%202", method="GET") 60 async def test_get_nonexistant_kernelspec(jp_fetch, jp_kernelspecs): argument 66 async def test_get_kernel_resource_file(jp_fetch, jp_kernelspecs): argument [all …]
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/nbconvert/ |
H A D | test_handlers.py | 53 async def test_from_file(jp_fetch, notebook): argument 54 r = await jp_fetch( 63 r = await jp_fetch( 72 async def test_from_file_404(jp_fetch, notebook): argument 74 await jp_fetch( 86 r = await jp_fetch( 94 async def test_from_file_zip(jp_fetch, notebook): argument 95 r = await jp_fetch( 102 async def test_from_post(jp_fetch, notebook): argument 103 r = await jp_fetch( [all …]
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/extension/ |
H A D | test_handler.py | 14 async def test_handler(jp_fetch): argument 15 r = await jp_fetch("mock", method="GET") 20 async def test_handler_template(jp_fetch, mock_template): argument 21 r = await jp_fetch("mock_template", method="GET") 40 async def test_handler_setting(jp_fetch, jp_server_config): argument 42 r = await jp_fetch("mock", method="GET") 48 async def test_handler_argv(jp_fetch, jp_argv): argument 50 r = await jp_fetch("mock", method="GET") 75 async def test_base_url(jp_fetch, jp_server_config, jp_base_url): argument 77 r = await jp_fetch("mock", method="GET") [all …]
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/config/ |
H A D | test_api.py | 4 async def test_create_retrieve_config(jp_fetch): argument 6 response = await jp_fetch("api", "config", "example", method="PUT", body=json.dumps(sample)) 9 response2 = await jp_fetch( 19 async def test_modify(jp_fetch): argument 32 await jp_fetch("api", "config", "example", method="PUT", body=json.dumps(sample)) 34 response2 = await jp_fetch( 42 async def test_get_unknown(jp_fetch): argument 43 response = await jp_fetch(
|
/dports/devel/py-jupyter-server-mathjax/jupyter_server_mathjax-0.2.3/jupyter_server_mathjax/tests/ |
H A D | test_api.py | 12 async def test_mathjax_mainjs_handler(jp_fetch): argument 13 r = await jp_fetch("static", "jupyter_server_mathjax", "MathJax.js") 17 async def test_mathjax_conf_handler(jp_fetch): argument 18 r = await jp_fetch( 23 r = await jp_fetch("static", "jupyter_server_mathjax", "config", "Safe.js") 32 jp_fetch, jp_base_url, asset_file argument 41 await jp_fetch(old_prefix, asset_file, follow_redirects=False)
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/sessions/ |
H A D | test_api.py | 59 self.jp_fetch = fetch_callable 65 r = await self.jp_fetch( 117 def session_client(jp_root_dir, jp_fetch): argument 128 client = SessionClient(jp_fetch) 409 resp = await jp_fetch("api/kernels", method="GET") 440 resp = await jp_fetch("api/kernels", method="GET") 470 r = await jp_fetch("api", "kernels", kid, method="GET") 478 r = await jp_fetch("api", "kernels", kid, method="GET") 483 r = await jp_fetch( 500 r = await jp_fetch("api", "kernels", kid, method="GET") [all …]
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/examples/simple/tests/ |
H A D | test_handlers.py | 11 async def test_handler_default(jp_fetch): argument 12 r = await jp_fetch("simple_ext1/default", method="GET") 18 async def test_handler_template(jp_fetch): argument 19 r = await jp_fetch("simple_ext1/template1/test", method="GET")
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/api/ |
H A D | test_api.py | 4 async def test_get_spec(jp_fetch): argument 5 response = await jp_fetch("api", "spec.yaml", method="GET") 9 async def test_get_status(jp_fetch): argument 10 response = await jp_fetch("api", "status", method="GET")
|
/dports/devel/py-nbclassic/nbclassic-0.3.4/nbclassic/tests/ |
H A D | test_notebookapp.py | 19 async def test_tree_handler(notebooks, jp_fetch): argument 20 r = await jp_fetch('tree', 'nbclassic_test_notebooks') 30 async def test_notebook_handler(notebooks, jp_fetch): argument 32 r = await jp_fetch('notebooks', nbpath)
|
H A D | test_nbserver.py | 16 async def test_classic_notebook_asset_URLS(jp_fetch): argument 27 r = await jp_fetch(url_path)
|
/dports/devel/py-jupyter-server/jupyter_server-1.12.1/jupyter_server/tests/services/nbconvert/ |
H A D | test_api.py | 4 async def test_list_formats(jp_fetch): argument 5 r = await jp_fetch("api", "nbconvert", method="GET")
|