summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-08-07 13:36:58 -0700
committerRobert Schütz <nix@dotlambda.de>2023-08-07 13:38:14 -0700
commit2cf416ff2349fd28708819ef44eb00bc4976f3e5 (patch)
tree3154fb2c45be984dbcca50d3f63c0cf3da873b68
parentf7347202165c655c26da94b516fd27681399cbf9 (diff)
downloadnixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar.gz
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar.bz2
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar.lz
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar.xz
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.tar.zst
nixpkgs-2cf416ff2349fd28708819ef44eb00bc4976f3e5.zip
python310Packages.jupyterlab_server: run tests
-rw-r--r--pkgs/development/python-modules/jupyterlab_server/default.nix27
1 files changed, 18 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/jupyterlab_server/default.nix b/pkgs/development/python-modules/jupyterlab_server/default.nix
index dfb6c23867f..2ec4ccf47e7 100644
--- a/pkgs/development/python-modules/jupyterlab_server/default.nix
+++ b/pkgs/development/python-modules/jupyterlab_server/default.nix
@@ -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; {