python310Packages.jupyterlab_server: run tests

This commit is contained in:
Robert Schütz 2023-08-07 13:36:58 -07:00
parent f734720216
commit 2cf416ff23

View file

@ -11,9 +11,10 @@
, jupyter-server
, tomli
, openapi-core
, pytest-timeout
, pytest-tornasync
, pytest-jupyter
, requests-mock
, ruamel-yaml
, strict-rfc3339
, importlib-metadata
}:
@ -47,19 +48,16 @@ buildPythonPackage rec {
nativeCheckInputs = [
openapi-core
pytestCheckHook
pytest-timeout
pytest-tornasync
pytest-jupyter
requests-mock
ruamel-yaml
strict-rfc3339
];
postPatch = ''
# translation tests try to install additional packages into read only paths
rm -r tests/translations/
sed -i "/timeout/d" pyproject.toml
'';
# https://github.com/jupyterlab/jupyterlab_server/blob/v2.15.2/pyproject.toml#L61
doCheck = false;
preCheck = ''
export HOME=$(mktemp -d)
'';
@ -70,6 +68,17 @@ buildPythonPackage rec {
"-W ignore::DeprecationWarning"
];
disabledTestPaths = [
"tests/test_settings_api.py"
"tests/test_themes_api.py"
"tests/test_translation_api.py"
"tests/test_workspaces_api.py"
];
disabledTests = [
"test_get_listing"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {