Repository: jupyterlab-contrib/jupyter-archive (language: python)

Issue:
Drop pytest-jupyter
In light of https://github.com/jupyter-server/pytest-jupyter/pull/10#issuecomment-754719676, `pytest-jupyter` plugin should be removed in favor for `jupyter_server` integrated plugins.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b86b210..1ea5f2b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,7 +22,7 @@ jobs:
         python-version: '3.9'
         architecture: 'x64'
     - name: Install dependencies
-      run: python -m pip install jupyterlab pytest pytest-jupyter[server]
+      run: python -m pip install jupyterlab pytest pytest-tornasync==0.6.0.post2
     - name: Build the extension
       run: |
         jlpm
diff --git a/environment.yml b/environment.yml
index da08278..3e1a22f 100644
--- a/environment.yml
+++ b/environment.yml
@@ -7,6 +7,4 @@ dependencies:
   - jupyterlab>=3.0.0,<4.0.0
   - nodejs
   - black
-  - pip:
-      - pytest-jupyter==0.0.3
-      - pytest-tornasync==0.6.0.post2
+  - pytest-tornasync==0.6.0.post2
diff --git a/setup.py b/setup.py
index 27faeec..8ba5337 100644
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,7 @@
     install_requires=[
         "jupyterlab>=3.0.0rc13,==3.*",
     ],
+    extra_requires={"test": ["pytest", "pytest-tornasync"]},
     zip_safe=False,
     include_package_data=True,
     python_requires=">=3.6,<4",


Test patch:
diff --git a/conftest.py b/conftest.py
index f6cf3d7..220b673 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,6 +1,6 @@
 import pytest
 
-pytest_plugins = ["pytest_jupyter.jupyter_server"]
+pytest_plugins = ["jupyter_server.pytest_plugin"]
 
 
 @pytest.fixture