Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.22.0: pytest is failing #390

Open
kloczek opened this issue Apr 6, 2023 · 11 comments
Open

2.22.0: pytest is failing #390

kloczek opened this issue Apr 6, 2023 · 11 comments
Labels

Comments

@kloczek
Copy link

kloczek commented Apr 6, 2023

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
  • build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.22.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.22.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.22.0, configfile: pyproject.toml, testpaths: tests/
plugins: anyio-3.6.2, requests-mock-1.10.0, console-scripts-1.3.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                                                                                                                               [  1%]
tests/test_labapp.py ......                                                                                                                                                           [  5%]
tests/test_licenses_api.py .....................................................................................                                                                      [ 64%]
tests/test_listings_api.py ..                                                                                                                                                         [ 65%]
tests/test_process.py ....                                                                                                                                                            [ 68%]
tests/test_settings_api.py ..............                                                                                                                                             [ 77%]
tests/test_themes_api.py ..                                                                                                                                                           [ 79%]
tests/test_translation_api.py .F...FFFFFFF.....                                                                                                                                       [ 91%]
tests/test_translation_utils.py ....                                                                                                                                                  [ 93%]
tests/test_workspaces_api.py ........                                                                                                                                                 [ 99%]
tests/test_workspaces_app.py .                                                                                                                                                        [100%]

========================================================================================= FAILURES ==========================================================================================
______________________________________________________________________________________ test_get_locale ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f653f11a430>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
        validate_request(r)
        data = json.loads(r.body.decode())["data"]
>       assert "jupyterlab" in data
E       AssertionError: assert 'jupyterlab' in {}

tests/test_translation_api.py:92: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.352 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:43365/a%40b/?token=eaf6c122e45038a7573b1f7ee35911481947d40bd0a564e9
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:43365/a%40b/?token=eaf6c122e45038a7573b1f7ee35911481947d40bd0a564e9
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_locale0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:43365/a%40b/?token=eaf6c122e45038a7573b1f7ee35911481947d40bd0a564e9
    http://127.0.0.1:43365/a%40b/?token=eaf6c122e45038a7573b1f7ee35911481947d40bd0a564e9
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='eaf6c122e45038a7573b1f7ee35911481947d40bd0a564e9'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: b10445521af34f5eba2d13a0a6cebcdc
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (b10445521af34f5eba2d13a0a6cebcdc@127.0.0.1) 23.40ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_backend_locale ____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f653cedf160>

    async def test_backend_locale(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab")
        result = trans.__("MORE ABOUT PROJECT JUPYTER")
>       assert result == "Más sobre el proyecto jupyter"
E       AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yecto jupyter'
E         - Más sobre el proyecto jupyter
E         + MORE ABOUT PROJECT JUPYTER

tests/test_translation_api.py:130: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.702 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:40895/a%40b/?token=2d5fc0958aceecb61ac3d62c409fb87d0b3928b094c53850
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:40895/a%40b/?token=2d5fc0958aceecb61ac3d62c409fb87d0b3928b094c53850
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_backend_locale0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:40895/a%40b/?token=2d5fc0958aceecb61ac3d62c409fb87d0b3928b094c53850
    http://127.0.0.1:40895/a%40b/?token=2d5fc0958aceecb61ac3d62c409fb87d0b3928b094c53850
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='2d5fc0958aceecb61ac3d62c409fb87d0b3928b094c53850'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: d706c908f8604205aa693e2f57118c86
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (d706c908f8604205aa693e2f57118c86@127.0.0.1) 23.73ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________ test_backend_locale_extension _______________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f653cedf820>

    async def test_backend_locale_extension(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab_some_package")
        result = trans.__("BOOM")
>       assert result == "Foo bar 2"
E       AssertionError: assert 'BOOM' == 'Foo bar 2'
E         - Foo bar 2
E         + BOOM

tests/test_translation_api.py:138: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.772 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42749/a%40b/?token=95adbee28fe230a415992893263ca115172b738762acc549
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42749/a%40b/?token=95adbee28fe230a415992893263ca115172b738762acc549
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_backend_locale_extension0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:42749/a%40b/?token=95adbee28fe230a415992893263ca115172b738762acc549
    http://127.0.0.1:42749/a%40b/?token=95adbee28fe230a415992893263ca115172b738762acc549
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='95adbee28fe230a415992893263ca115172b738762acc549'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 418cfb563a8a4ae69a77154c8ef64cdf
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (418cfb563a8a4ae69a77154c8ef64cdf@127.0.0.1) 22.91ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________________________________________________ test_get_installed_language_pack_locales_passes ______________________________________________________________________

    def test_get_installed_language_pack_locales_passes():
        data, message = _get_installed_language_pack_locales()
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {}

tests/test_translation_api.py:145: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.837 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:37423/a%40b/?token=e6a1fc368a94afa7866553dca4e5b31df33b25509ef5ad75
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:37423/a%40b/?token=e6a1fc368a94afa7866553dca4e5b31df33b25509ef5ad75
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_installed_language_pa0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:37423/a%40b/?token=e6a1fc368a94afa7866553dca4e5b31df33b25509ef5ad75
    http://127.0.0.1:37423/a%40b/?token=e6a1fc368a94afa7866553dca4e5b31df33b25509ef5ad75
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='e6a1fc368a94afa7866553dca4e5b31df33b25509ef5ad75'>}}
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________ test_get_installed_package_locales _____________________________________________________________________________

    def test_get_installed_package_locales():
        data, message = _get_installed_package_locales()
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:151: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.884 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42471/a%40b/?token=353d9b66ec6a9a00fb4345cd9bc5294701364b0e52171f4e
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42471/a%40b/?token=353d9b66ec6a9a00fb4345cd9bc5294701364b0e52171f4e
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_installed_package_loc0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:42471/a%40b/?token=353d9b66ec6a9a00fb4345cd9bc5294701364b0e52171f4e
    http://127.0.0.1:42471/a%40b/?token=353d9b66ec6a9a00fb4345cd9bc5294701364b0e52171f4e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='353d9b66ec6a9a00fb4345cd9bc5294701364b0e52171f4e'>}}
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________ test_get_installed_packages_locale _____________________________________________________________________________

    def test_get_installed_packages_locale():
        data, message = get_installed_packages_locale("es_CO")
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:158: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.929 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:40753/a%40b/?token=3d56d1274894fa311d5f41cb2a320c44e40d83f9971ccd0b
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:40753/a%40b/?token=3d56d1274894fa311d5f41cb2a320c44e40d83f9971ccd0b
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_installed_packages_lo0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:40753/a%40b/?token=3d56d1274894fa311d5f41cb2a320c44e40d83f9971ccd0b
    http://127.0.0.1:40753/a%40b/?token=3d56d1274894fa311d5f41cb2a320c44e40d83f9971ccd0b
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='3d56d1274894fa311d5f41cb2a320c44e40d83f9971ccd0b'>}}
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________________________________________________________________ test_get_language_packs __________________________________________________________________________________

    def test_get_language_packs():
        data, message = get_language_packs("en")
        assert "en" in data
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'nativeName': 'English'}}

tests/test_translation_api.py:166: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:15.975 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:41031/a%40b/?token=122df7f5ae336d3aa546cf384faf22e96e4d2549a8f7f313
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:41031/a%40b/?token=122df7f5ae336d3aa546cf384faf22e96e4d2549a8f7f313
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_language_packs0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:41031/a%40b/?token=122df7f5ae336d3aa546cf384faf22e96e4d2549a8f7f313
    http://127.0.0.1:41031/a%40b/?token=122df7f5ae336d3aa546cf384faf22e96e4d2549a8f7f313
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='122df7f5ae336d3aa546cf384faf22e96e4d2549a8f7f313'>}}
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________________________________________________________________ test_get_language_pack ___________________________________________________________________________________

    def test_get_language_pack():
        data, message = get_language_pack("es_CO")
>       assert "jupyterlab" in data
E       AssertionError: assert 'jupyterlab' in {}

tests/test_translation_api.py:172: AssertionError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-04-06 11:24:16.021 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:900 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:35277/a%40b/?token=774792f7a71cfd244e50220d192d29bbc3d8c4d9c518ce3e
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:35277/a%40b/?token=774792f7a71cfd244e50220d192d29bbc3d8c4d9c518ce3e
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-23/test_get_language_pack0/runtime/jpserver-1870943-open.html
Or copy and paste one of these URLs:
    http://localhost:35277/a%40b/?token=774792f7a71cfd244e50220d192d29bbc3d8c4d9c518ce3e
    http://127.0.0.1:35277/a%40b/?token=774792f7a71cfd244e50220d192d29bbc3d8c4d9c518ce3e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='774792f7a71cfd244e50220d192d29bbc3d8c4d9c518ce3e'>}}
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
===================================================================================== warnings summary ======================================================================================
tests/test_listings_api.py: 1 warning
tests/test_settings_api.py: 9 warnings
tests/test_translation_api.py: 5 warnings
tests/test_workspaces_api.py: 4 warnings
  /usr/lib/python3.8/site-packages/openapi_schema_validator/validators.py:113: DeprecationWarning: read property is deprecated. Use OAS30ReadValidator instead.
    warnings.warn(

tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2370: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

tests/test_settings_api.py: 7 warnings
tests/test_themes_api.py: 1 warning
tests/test_translation_api.py: 4 warnings
tests/test_workspaces_api.py: 3 warnings
  /usr/lib/python3.8/site-packages/openapi_schema_validator/validators.py:120: DeprecationWarning: write property is deprecated. Use OAS30WriteValidator instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================== slowest 10 durations ====================================================================================
2.02s call     tests/test_process.py::test_process
1.07s call     tests/test_process.py::test_process_app
0.49s call     tests/test_settings_api.py::test_patch
0.16s call     tests/test_settings_api.py::test_listing
0.14s call     tests/test_translation_api.py::test_get
0.12s setup    tests/test_translation_api.py::test_get
0.10s teardown tests/test_translation_api.py::test_get_display_name_invalid
0.10s setup    tests/test_labapp.py::test_lab_handler
0.08s setup    tests/test_listings_api.py::test_get_listing
0.07s call     tests/test_workspaces_api.py::test_listing
================================================================================== short test summary info ==================================================================================
FAILED tests/test_translation_api.py::test_get_locale - AssertionError: assert 'jupyterlab' in {}
FAILED tests/test_translation_api.py::test_backend_locale - AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yecto jupyter'
FAILED tests/test_translation_api.py::test_backend_locale_extension - AssertionError: assert 'BOOM' == 'Foo bar 2'
FAILED tests/test_translation_api.py::test_get_installed_language_pack_locales_passes - AssertionError: assert 'es_CO' in {}
FAILED tests/test_translation_api.py::test_get_installed_package_locales - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_installed_packages_locale - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_language_packs - AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'nativeName': 'English'}}
FAILED tests/test_translation_api.py::test_get_language_pack - AssertionError: assert 'jupyterlab' in {}
======================================================================== 8 failed, 137 passed, 35 warnings in 10.56s ========================================================================

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
alabaster                     0.7.13
anyio                         3.6.2
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
asttokens                     2.2.1
attrs                         22.2.0
autodoc-traits                0.1.0
Babel                         2.12.1
backcall                      0.2.0
beautifulsoup4                4.12.0
bleach                        6.0.0
build                         0.10.0
cffi                          1.15.1
charset-normalizer            3.1.0
comm                          0.1.2
debugpy                       1.6.6
decorator                     5.1.1
deepmerge                     1.1.0
defusedxml                    0.7.1
deprecation                   2.1.0
distro                        1.8.0
docutils                      0.19
editables                     0.3
entrypoints                   0.4
exceptiongroup                1.0.0
executing                     1.2.0
fastjsonschema                2.16.3
gpg                           1.19.0
hatchling                     1.13.0
html5lib                      1.1
idna                          3.4
imagesize                     1.4.1
importlib-metadata            6.1.0
importlib-resources           5.12.0
iniconfig                     2.0.0
installer                     0.7.0
ipykernel                     6.22.0
ipython                       8.6.0
isodate                       0.6.1
jedi                          0.18.2
Jinja2                        3.1.2
json5                         0.9.12
jsonschema                    4.17.3
jsonschema-spec               0.1.4
jupyter_client                8.1.0
jupyter_core                  5.3.0
jupyter-events                0.6.3
jupyter_packaging             0.12.3
jupyter_server                2.5.0
jupyter_server_terminals      0.4.4
jupyterlab-pygments           0.1.2
lazy-object-proxy             1.9.0
libcomps                      0.1.19
markdown-it-py                2.2.0
MarkupSafe                    2.1.2
matplotlib-inline             0.1.6
mdit-py-plugins               0.3.5
mdurl                         0.1.2
mistune                       2.0.5
more-itertools                9.1.0
myst-parser                   1.0.0
nbclient                      0.7.3
nbconvert                     7.2.10
nbformat                      5.7.3
nest-asyncio                  1.5.6
numpydoc                      1.5.0
openapi-core                  0.16.6
openapi-schema-validator      0.4.4
openapi-spec-validator        0.5.6
packaging                     23.0
pandocfilters                 1.5.0
parse                         1.19.0
parso                         0.8.3
pathable                      0.4.3
pathspec                      0.11.0
pexpect                       4.8.0
pickleshare                   0.7.5
picobox                       2.2.0
pip                           23.0.1
pkgutil_resolve_name          1.3.10
platformdirs                  3.1.1
pluggy                        1.0.0
ply                           3.11
prometheus-client             0.16.0
prompt-toolkit                3.0.38
psutil                        5.9.2
ptyprocess                    0.7.0
pure-eval                     0.2.2
pycparser                     2.21
Pygments                      2.14.0
pyproject_hooks               1.0.0
pyrsistent                    0.19.3
pytest                        7.2.2
pytest-console-scripts        1.3.1
pytest-jupyter                0.7.0
pytest-timeout                2.1.0
python-dateutil               2.8.2
python-json-logger            2.0.7
pytz                          2023.2
PyYAML                        6.0
pyzmq                         24.0.1
requests                      2.28.2
requests-mock                 1.10.0
rfc3339-validator             0.1.4
rfc3986-validator             0.1.1
rpm                           4.17.0
ruamel.yaml                   0.17.21
ruamel.yaml.clib              0.2.6
Send2Trash                    1.8.0
setuptools                    65.6.3
six                           1.16.0
sniffio                       1.2.0
snowballstemmer               2.2.0
soupsieve                     2.4
Sphinx                        6.1.3
sphinx-copybutton             0.5.1
sphinx_mdinclude              0.5.3
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2.dev20230405
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-httpdomain      1.8.0
sphinxcontrib-jsmath          1.0.1.dev20230405
sphinxcontrib-openapi         0.8.1
sphinxcontrib-qthelp          1.0.3.dev20230405
sphinxcontrib-serializinghtml 1.1.5
stack-data                    0.6.2
strict-rfc3339                0.7
terminado                     0.17.1
tinycss2                      1.2.1
tomli                         2.0.1
tomlkit                       0.11.7
tornado                       6.2
traitlets                     5.8.1
typing_extensions             4.5.0
urllib3                       1.26.15
wcwidth                       0.2.6
webencodings                  0.5.1
websocket-client              1.5.1
Werkzeug                      2.2.3
wheel                         0.40.0
zipp                          3.15.0
@kloczek kloczek added the bug label Apr 6, 2023
@kloczek
Copy link
Author

kloczek commented May 28, 2023

Any update? 🤔

Updated output for 2.22.1:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.22.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.22.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.3.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.22.1
configfile: pyproject.toml
testpaths: tests/
plugins: anyio-3.6.2, requests-mock-1.10.0, console-scripts-1.4.0, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                  [  1%]
tests/test_labapp.py ......                                              [  5%]
tests/test_licenses_api.py ............................................. [ 36%]
........................................                                 [ 64%]
tests/test_listings_api.py F.                                            [ 65%]
tests/test_process.py ....                                               [ 68%]
tests/test_settings_api.py FFFFF.FFFF....                                [ 77%]
tests/test_themes_api.py F.                                              [ 79%]
tests/test_translation_api.py FFFFFFFFFFFF.....                          [ 91%]
tests/test_translation_utils.py ....                                     [ 93%]
tests/test_workspaces_api.py FFFF....                                    [ 99%]
tests/test_workspaces_app.py .                                           [100%]

=================================== FAILURES ===================================
_______________________________ test_get_listing _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc7ff310>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc6f3a30>

    async def test_get_listing(jp_fetch, labserverapp):
        url = r"lab/api/listings/@jupyterlab/extensionmanager-extension/listings.json"
        r = await jp_fetch(*url.split("/"))
>       validate_request(r)

tests/test_listings_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc2d0270>,code=200,effective...nt.HTTPRequest object at 0x7f9afc6f6cd0>,request_time=0.0028638839721679688,start_time=1685304866.9706457,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:26.942 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:46331/a%40b/?token=aa6b0f41c59aed1bfcb32c59cb38bfca64c9edca5981a31b
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:46331/a%40b/?token=aa6b0f41c59aed1bfcb32c59cb38bfca64c9edca5981a31b
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_listing0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:46331/a%40b/?token=aa6b0f41c59aed1bfcb32c59cb38bfca64c9edca5981a31b
    http://127.0.0.1:46331/a%40b/?token=aa6b0f41c59aed1bfcb32c59cb38bfca64c9edca5981a31b
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='aa6b0f41c59aed1bfcb32c59cb38bfca64c9edca5981a31b'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: cb53ac365329402cabba7846995934d5
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/listings/%40jupyterlab/extensionmanager-extension/listings.json (cb53ac365329402cabba7846995934d5@127.0.0.1) 0.85ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_settings_overrides_dicts _______________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4b3dc0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc7886d0>

    async def test_get_settings_overrides_dicts(jp_fetch, labserverapp):
        # Check that values that are dictionaries in overrides.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc685630>,code=200,effective...ent.HTTPRequest object at 0x7f9afc79d760>,request_time=0.012140035629272461,start_time=1685304870.3792124,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.321 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:35379/a%40b/?token=5878e66bb440f068db3181bae9bb3f3f0a32486caa0b95ae
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:35379/a%40b/?token=5878e66bb440f068db3181bae9bb3f3f0a32486caa0b95ae
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_di0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:35379/a%40b/?token=5878e66bb440f068db3181bae9bb3f3f0a32486caa0b95ae
    http://127.0.0.1:35379/a%40b/?token=5878e66bb440f068db3181bae9bb3f3f0a32486caa0b95ae
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5878e66bb440f068db3181bae9bb3f3f0a32486caa0b95ae'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:30.384 LabServerApp] Generating new user for token-authenticated request: 5c1e69ec7e29491b9c2a8325910a0c31
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________ test_get_settings_overrides_d_dicts[json] ___________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4d7310>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc874550>
ext = 'json'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc4c52c0>,code=200,effective...ent.HTTPRequest object at 0x7f9afc800550>,request_time=0.007953882217407227,start_time=1685304870.4960663,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.456 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:38157/a%40b/?token=c1422015ba479424fbc19cb1b96f1ee82a32fce746a54cc2
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:38157/a%40b/?token=c1422015ba479424fbc19cb1b96f1ee82a32fce746a54cc2
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:38157/a%40b/?token=c1422015ba479424fbc19cb1b96f1ee82a32fce746a54cc2
    http://127.0.0.1:38157/a%40b/?token=c1422015ba479424fbc19cb1b96f1ee82a32fce746a54cc2
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c1422015ba479424fbc19cb1b96f1ee82a32fce746a54cc2'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:30.500 LabServerApp] Generating new user for token-authenticated request: e0d86734826743418f4df69b42bed597
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________ test_get_settings_overrides_d_dicts[json5] __________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4d9a60>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc7525e0>
ext = 'json5'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc2d0e00>,code=200,effective...ient.HTTPRequest object at 0x7f9afc7d4760>,request_time=0.04457736015319824,start_time=1685304870.6171296,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.566 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:38353/a%40b/?token=459b8ee35f83feb448ac9d223e39be2fa5f0fbebfe9ae667
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:38353/a%40b/?token=459b8ee35f83feb448ac9d223e39be2fa5f0fbebfe9ae667
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_settings_overrides_d_1/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:38353/a%40b/?token=459b8ee35f83feb448ac9d223e39be2fa5f0fbebfe9ae667
    http://127.0.0.1:38353/a%40b/?token=459b8ee35f83feb448ac9d223e39be2fa5f0fbebfe9ae667
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='459b8ee35f83feb448ac9d223e39be2fa5f0fbebfe9ae667'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:30.657 LabServerApp] Generating new user for token-authenticated request: d5c83e2ed1a84294be4c98416f85d62b
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_get_settings _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4743a0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc8a2df0>

    async def test_get_settings(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc6d84a0>,code=200,effective...ient.HTTPRequest object at 0x7f9afc2cb940>,request_time=0.007454633712768555,start_time=1685304870.761283,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.722 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42965/a%40b/?token=b21a51126722f64e4ce1229955e41fb996b1b9677c6e0552
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42965/a%40b/?token=b21a51126722f64e4ce1229955e41fb996b1b9677c6e0552
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_settings0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:42965/a%40b/?token=b21a51126722f64e4ce1229955e41fb996b1b9677c6e0552
    http://127.0.0.1:42965/a%40b/?token=b21a51126722f64e4ce1229955e41fb996b1b9677c6e0552
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b21a51126722f64e4ce1229955e41fb996b1b9677c6e0552'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:30.765 LabServerApp] Generating new user for token-authenticated request: 429090ba88314b4bbfc9db31596fe6a4
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_get_federated ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc481790>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afcf11940>

    async def test_get_federated(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension-federated:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc4d8c20>,code=200,effective...ent.HTTPRequest object at 0x7f9afc751580>,request_time=0.007185220718383789,start_time=1685304870.8642364,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.826 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:33533/a%40b/?token=c74125de36716fa00db024bfbc1ce51585409ebb8ef7a64d
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:33533/a%40b/?token=c74125de36716fa00db024bfbc1ce51585409ebb8ef7a64d
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_federated0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:33533/a%40b/?token=c74125de36716fa00db024bfbc1ce51585409ebb8ef7a64d
    http://127.0.0.1:33533/a%40b/?token=c74125de36716fa00db024bfbc1ce51585409ebb8ef7a64d
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c74125de36716fa00db024bfbc1ce51585409ebb8ef7a64d'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:30.868 LabServerApp] Generating new user for token-authenticated request: ff8fb1d29e8e4835832c6fa184d5d0dd
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_listing _________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc3c2d30>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc7ab820>

    async def test_listing(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        versions = ["N/A", "N/A", "test-version"]
        r = await jp_fetch("lab", "api", "settings/")
>       validate_request(r)

tests/test_settings_api.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afbf37f90>,code=200,effective...ent.HTTPRequest object at 0x7f9afc3a95b0>,request_time=0.024644136428833008,start_time=1685304871.0248575,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:30.996 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_listing0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:34237/a%40b/?token=a7aeb133a9e82e640587681211d37b7a874948ca288a6429
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:34237/a%40b/?token=a7aeb133a9e82e640587681211d37b7a874948ca288a6429
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_listing0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:34237/a%40b/?token=a7aeb133a9e82e640587681211d37b7a874948ca288a6429
    http://127.0.0.1:34237/a%40b/?token=a7aeb133a9e82e640587681211d37b7a874948ca288a6429
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='a7aeb133a9e82e640587681211d37b7a874948ca288a6429'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:31.027 LabServerApp] Generating new user for token-authenticated request: 27a00d778c884ca098a0306263a1da28
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________ test_listing_ids _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4d7ee0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc83d400>

    async def test_listing_ids(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        r = await jp_fetch("lab", "api", "settings/", params={"ids_only": "true"})
>       validate_request(r)

tests/test_settings_api.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc9709f0>,code=200,effective...ent.HTTPRequest object at 0x7f9afc874280>,request_time=0.005724191665649414,start_time=1685304871.1162524,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.089 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:40437/a%40b/?token=52ea720e0739726ec5e135b583254095225bee4c5156594d
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:40437/a%40b/?token=52ea720e0739726ec5e135b583254095225bee4c5156594d
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_listing_ids0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:40437/a%40b/?token=52ea720e0739726ec5e135b583254095225bee4c5156594d
    http://127.0.0.1:40437/a%40b/?token=52ea720e0739726ec5e135b583254095225bee4c5156594d
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='52ea720e0739726ec5e135b583254095225bee4c5156594d'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:31.118 LabServerApp] Generating new user for token-authenticated request: f5700163f4ed409594b6759d4f1e1de1
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________________ test_patch __________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc4d9af0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc3dbc10>

    async def test_patch(jp_fetch, labserverapp):
        id = "@jupyterlab/shortcuts-extension:plugin"

        r = await jp_fetch(
            "lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
        )
>       validate_request(r)

tests/test_settings_api.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc4c59f0>,code=204,effective...ient.HTTPRequest object at 0x7f9afc33baf0>,request_time=0.019214868545532227,start_time=1685304871.189035,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.161 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_patch0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_patch0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_patch0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_patch0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:34835/a%40b/?token=934b856d2f3bf9a224e5a348e7c3723ed42515b9f467972a
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:34835/a%40b/?token=934b856d2f3bf9a224e5a348e7c3723ed42515b9f467972a
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_patch0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:34835/a%40b/?token=934b856d2f3bf9a224e5a348e7c3723ed42515b9f467972a
    http://127.0.0.1:34835/a%40b/?token=934b856d2f3bf9a224e5a348e7c3723ed42515b9f467972a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='934b856d2f3bf9a224e5a348e7c3723ed42515b9f467972a'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:31.192 LabServerApp] Generating new user for token-authenticated request: 64cc1099e7cf4e6a8f4b50e5fa69f96f
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_patch_unicode ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc33a670>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc364fa0>

    async def test_patch_unicode(jp_fetch, labserverapp):
        id = "@jupyterlab/unicode-extension:plugin"
        settings = dict(comment=big_unicode_string[::-1])
        payload = dict(raw=json5.dumps(settings))

        r = await jp_fetch("lab", "api", "settings", id, method="PUT", body=json.dumps(payload))
>       validate_request(r)

tests/test_settings_api.py:194:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc3f25e0>,code=204,effective...ent.HTTPRequest object at 0x7f9afc376940>,request_time=0.019118785858154297,start_time=1685304871.2770414,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.249 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:35799/a%40b/?token=f72ac34d60a8ab86614930432ec6abf280143508230193dc
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:35799/a%40b/?token=f72ac34d60a8ab86614930432ec6abf280143508230193dc
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_patch_unicode0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:35799/a%40b/?token=f72ac34d60a8ab86614930432ec6abf280143508230193dc
    http://127.0.0.1:35799/a%40b/?token=f72ac34d60a8ab86614930432ec6abf280143508230193dc
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f72ac34d60a8ab86614930432ec6abf280143508230193dc'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:31.279 LabServerApp] Generating new user for token-authenticated request: 42a486fbcf7f4f2989b1b648edd90213
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________ test_get_theme ________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc3aed30>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc49e370>

    async def test_get_theme(jp_fetch, labserverapp):
        r = await jp_fetch("lab", "api", "themes", "@jupyterlab", "foo", "index.css")
>       validate_request(r)

tests/test_themes_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc6944a0>,code=200,effective...ent.HTTPRequest object at 0x7f9afc7cbac0>,request_time=0.007083892822265625,start_time=1685304871.5962896,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.568 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:35031/a%40b/?token=236e979ec2b1d696b41a67c1b161988ed02d1b71808e7406
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:35031/a%40b/?token=236e979ec2b1d696b41a67c1b161988ed02d1b71808e7406
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_theme0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:35031/a%40b/?token=236e979ec2b1d696b41a67c1b161988ed02d1b71808e7406
    http://127.0.0.1:35031/a%40b/?token=236e979ec2b1d696b41a67c1b161988ed02d1b71808e7406
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='236e979ec2b1d696b41a67c1b161988ed02d1b71808e7406'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:31.597 LabServerApp] Generating new user for token-authenticated request: c393dd68b45b40339840a99cb80184f6
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________ test_get ___________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc474700>

    async def test_get(jp_fetch):
        r = await jp_fetch("lab", "api", "translations/")
>       validate_request(r)

tests/test_translation_api.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc40e220>,code=200,effective...ent.HTTPRequest object at 0x7f9afc3b5850>,request_time=0.056273698806762695,start_time=1685304871.7728076,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
/usr/bin/python3: No module named pip
/usr/bin/python3: No module named pip
[D 2023-05-28 20:14:31.737 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:44117/a%40b/?token=5b30ba2c0e4807d343fba48df35c33eeb2f6a03069cae626
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:44117/a%40b/?token=5b30ba2c0e4807d343fba48df35c33eeb2f6a03069cae626
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:44117/a%40b/?token=5b30ba2c0e4807d343fba48df35c33eeb2f6a03069cae626
    http://127.0.0.1:44117/a%40b/?token=5b30ba2c0e4807d343fba48df35c33eeb2f6a03069cae626
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5b30ba2c0e4807d343fba48df35c33eeb2f6a03069cae626'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 6104ae92f3bd43cf9740bca24ffaf92a
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/ (6104ae92f3bd43cf9740bca24ffaf92a@127.0.0.1) 53.85ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________ test_get_locale ________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc005e50>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
>       validate_request(r)

tests/test_translation_api.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afbff13b0>,code=200,effective...ient.HTTPRequest object at 0x7f9afc86bdf0>,request_time=0.03228902816772461,start_time=1685304871.9056776,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.874 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:34703/a%40b/?token=39d6fc016047313576eff1f300625e4c2e7e07f00f6794f3
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:34703/a%40b/?token=39d6fc016047313576eff1f300625e4c2e7e07f00f6794f3
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_locale0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:34703/a%40b/?token=39d6fc016047313576eff1f300625e4c2e7e07f00f6794f3
    http://127.0.0.1:34703/a%40b/?token=39d6fc016047313576eff1f300625e4c2e7e07f00f6794f3
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='39d6fc016047313576eff1f300625e4c2e7e07f00f6794f3'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 76b53bafb9c2472d9f07c7e6303fdf5f
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (76b53bafb9c2472d9f07c7e6303fdf5f@127.0.0.1) 30.36ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________ test_get_locale_bad ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9e26550>

    async def test_get_locale_bad(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:102:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc348130>,code=200,effective...client.HTTPRequest object at 0x7f9afc81c8e0>,request_time=0.0317533016204834,start_time=1685304872.007561,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:31.979 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42549/a%40b/?token=b1a6de26cde0e5d8d6c6f4a49be923ca5e133d2d8127083a
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42549/a%40b/?token=b1a6de26cde0e5d8d6c6f4a49be923ca5e133d2d8127083a
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_locale_bad0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:42549/a%40b/?token=b1a6de26cde0e5d8d6c6f4a49be923ca5e133d2d8127083a
    http://127.0.0.1:42549/a%40b/?token=b1a6de26cde0e5d8d6c6f4a49be923ca5e133d2d8127083a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b1a6de26cde0e5d8d6c6f4a49be923ca5e133d2d8127083a'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 7525e1c7c63b458fb336437bfcac9b07
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (7525e1c7c63b458fb336437bfcac9b07@127.0.0.1) 30.00ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________ test_get_locale_not_installed _________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9de4ca0>

    async def test_get_locale_not_installed(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "es_AR")
>       validate_request(r)

tests/test_translation_api.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc017f40>,code=200,effective...ent.HTTPRequest object at 0x7f9afc420ca0>,request_time=0.032158613204956055,start_time=1685304872.1094751,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.080 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:33685/a%40b/?token=3f2a34cdebc552718c216f2ed353d687c7da6ecb9654ae47
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:33685/a%40b/?token=3f2a34cdebc552718c216f2ed353d687c7da6ecb9654ae47
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_installed0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:33685/a%40b/?token=3f2a34cdebc552718c216f2ed353d687c7da6ecb9654ae47
    http://127.0.0.1:33685/a%40b/?token=3f2a34cdebc552718c216f2ed353d687c7da6ecb9654ae47
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='3f2a34cdebc552718c216f2ed353d687c7da6ecb9654ae47'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 2a5eda711293419b8faeba93d9e9a8e8
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_AR (2a5eda711293419b8faeba93d9e9a8e8@127.0.0.1) 30.49ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________ test_get_locale_not_valid ___________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9e70310>

    async def test_get_locale_not_valid(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc07ed60>,code=200,effective...ent.HTTPRequest object at 0x7f9af9d4aa00>,request_time=0.030673503875732422,start_time=1685304872.2107537,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.181 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42405/a%40b/?token=235b8fd59d2a0d0afc3edf0543b36244870ec9056345d9e4
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42405/a%40b/?token=235b8fd59d2a0d0afc3edf0543b36244870ec9056345d9e4
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_locale_not_valid0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:42405/a%40b/?token=235b8fd59d2a0d0afc3edf0543b36244870ec9056345d9e4
    http://127.0.0.1:42405/a%40b/?token=235b8fd59d2a0d0afc3edf0543b36244870ec9056345d9e4
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='235b8fd59d2a0d0afc3edf0543b36244870ec9056345d9e4'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: e3d1fa4abf864efea155ce05b0ba9c8f
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (e3d1fa4abf864efea155ce05b0ba9c8f@127.0.0.1) 28.98ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________ test_backend_locale ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9d79a60>

    async def test_backend_locale(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab")
        result = trans.__("MORE ABOUT PROJECT JUPYTER")
>       assert result == "Más sobre el proyecto jupyter"
E       AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yecto jupyter'
E         - Más sobre el proyecto jupyter
E         + MORE ABOUT PROJECT JUPYTER

tests/test_translation_api.py:130: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.282 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:33475/a%40b/?token=384a2cd090bd947351ef70d81d9371d25a524150a1a27c2d
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:33475/a%40b/?token=384a2cd090bd947351ef70d81d9371d25a524150a1a27c2d
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_backend_locale0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:33475/a%40b/?token=384a2cd090bd947351ef70d81d9371d25a524150a1a27c2d
    http://127.0.0.1:33475/a%40b/?token=384a2cd090bd947351ef70d81d9371d25a524150a1a27c2d
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='384a2cd090bd947351ef70d81d9371d25a524150a1a27c2d'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: b600ec7837cc4d06a16ce3a1574ad5ad
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (b600ec7837cc4d06a16ce3a1574ad5ad@127.0.0.1) 28.95ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________ test_backend_locale_extension _________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9d69e50>

    async def test_backend_locale_extension(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab_some_package")
        result = trans.__("BOOM")
>       assert result == "Foo bar 2"
E       AssertionError: assert 'BOOM' == 'Foo bar 2'
E         - Foo bar 2
E         + BOOM

tests/test_translation_api.py:138: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.355 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:32831/a%40b/?token=2f2d0b67b0344f53832040d6579eb87ceea86762872757d9
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:32831/a%40b/?token=2f2d0b67b0344f53832040d6579eb87ceea86762872757d9
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_backend_locale_extension0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:32831/a%40b/?token=2f2d0b67b0344f53832040d6579eb87ceea86762872757d9
    http://127.0.0.1:32831/a%40b/?token=2f2d0b67b0344f53832040d6579eb87ceea86762872757d9
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='2f2d0b67b0344f53832040d6579eb87ceea86762872757d9'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
INFO     ServerApp:identity.py:478 Generating new user for token-authenticated request: 8a70bf181c3a4a6ea8480e02682294a2
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (8a70bf181c3a4a6ea8480e02682294a2@127.0.0.1) 28.33ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________ test_get_installed_language_pack_locales_passes ________________

    def test_get_installed_language_pack_locales_passes():
        data, message = _get_installed_language_pack_locales()
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {}

tests/test_translation_api.py:145: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.426 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:44369/a%40b/?token=5f46e85993627563439898b172b55f9f746ee1d7a59436f5
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:44369/a%40b/?token=5f46e85993627563439898b172b55f9f746ee1d7a59436f5
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_installed_language_pa0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:44369/a%40b/?token=5f46e85993627563439898b172b55f9f746ee1d7a59436f5
    http://127.0.0.1:44369/a%40b/?token=5f46e85993627563439898b172b55f9f746ee1d7a59436f5
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5f46e85993627563439898b172b55f9f746ee1d7a59436f5'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_installed_package_locales ______________________

    def test_get_installed_package_locales():
        data, message = _get_installed_package_locales()
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:151: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.477 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:37039/a%40b/?token=96be135cde4c5084a2c1184001ecb22790be4f2c0471843c
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:37039/a%40b/?token=96be135cde4c5084a2c1184001ecb22790be4f2c0471843c
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_installed_package_loc0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:37039/a%40b/?token=96be135cde4c5084a2c1184001ecb22790be4f2c0471843c
    http://127.0.0.1:37039/a%40b/?token=96be135cde4c5084a2c1184001ecb22790be4f2c0471843c
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='96be135cde4c5084a2c1184001ecb22790be4f2c0471843c'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_installed_packages_locale ______________________

    def test_get_installed_packages_locale():
        data, message = get_installed_packages_locale("es_CO")
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:158: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.525 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:33915/a%40b/?token=09efa036f46b77bbd29a9f04ad8bcb976f9325b7e8d2ea72
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:33915/a%40b/?token=09efa036f46b77bbd29a9f04ad8bcb976f9325b7e8d2ea72
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_installed_packages_lo0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:33915/a%40b/?token=09efa036f46b77bbd29a9f04ad8bcb976f9325b7e8d2ea72
    http://127.0.0.1:33915/a%40b/?token=09efa036f46b77bbd29a9f04ad8bcb976f9325b7e8d2ea72
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='09efa036f46b77bbd29a9f04ad8bcb976f9325b7e8d2ea72'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________ test_get_language_packs ____________________________

    def test_get_language_packs():
        data, message = get_language_packs("en")
        assert "en" in data
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'nativeName': 'English'}}

tests/test_translation_api.py:166: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.574 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:37511/a%40b/?token=bb72bd16397123dec1fec8a7e13d066471c9cb40b817640f
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:37511/a%40b/?token=bb72bd16397123dec1fec8a7e13d066471c9cb40b817640f
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_language_packs0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:37511/a%40b/?token=bb72bd16397123dec1fec8a7e13d066471c9cb40b817640f
    http://127.0.0.1:37511/a%40b/?token=bb72bd16397123dec1fec8a7e13d066471c9cb40b817640f
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='bb72bd16397123dec1fec8a7e13d066471c9cb40b817640f'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________ test_get_language_pack ____________________________

    def test_get_language_pack():
        data, message = get_language_pack("es_CO")
>       assert "jupyterlab" in data
E       AssertionError: assert 'jupyterlab' in {}

tests/test_translation_api.py:172: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:32.623 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:46579/a%40b/?token=f4d381c50cfa088bd02a1b30d8229c289fb3c0d664f571cf
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:46579/a%40b/?token=f4d381c50cfa088bd02a1b30d8229c289fb3c0d664f571cf
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_language_pack0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:46579/a%40b/?token=f4d381c50cfa088bd02a1b30d8229c289fb3c0d664f571cf
    http://127.0.0.1:46579/a%40b/?token=f4d381c50cfa088bd02a1b30d8229c289fb3c0d664f571cf
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f4d381c50cfa088bd02a1b30d8229c289fb3c0d664f571cf'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_delete __________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc249550>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9af9e4b880>

    async def test_delete(jp_fetch, labserverapp):
        orig = "f/o/o"
        copy = "baz"
        r = await jp_fetch("lab", "api", "workspaces", orig)
>       validate_request(r)

tests/test_workspaces_api.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9af9dc2040>,code=200,effective...client.HTTPRequest object at 0x7f9af9d495e0>,request_time=0.004206180572509766,start_time=1685304873.0769,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:33.046 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_delete0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_delete0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_delete0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_delete0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:39031/a%40b/?token=b4516f7c69176cf3e90aa117a9833a0ef9cb93a8ca0df7dc
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:39031/a%40b/?token=b4516f7c69176cf3e90aa117a9833a0ef9cb93a8ca0df7dc
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_delete0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:39031/a%40b/?token=b4516f7c69176cf3e90aa117a9833a0ef9cb93a8ca0df7dc
    http://127.0.0.1:39031/a%40b/?token=b4516f7c69176cf3e90aa117a9833a0ef9cb93a8ca0df7dc
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b4516f7c69176cf3e90aa117a9833a0ef9cb93a8ca0df7dc'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:33.079 LabServerApp] Generating new user for token-authenticated request: 40631fa2cd614589ae96671400f1d52c
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________ test_get_non_existant _____________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9afc33aa60>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc7856a0>

    async def test_get_non_existant(jp_fetch, labserverapp):
        id = "foo"

        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc06a0e0>,code=200,effective...ent.HTTPRequest object at 0x7f9afc874190>,request_time=0.002744436264038086,start_time=1685304873.1508214,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:33.122 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:41273/a%40b/?token=cc516a9869dd9768cead70a3c54e0c82a1b3d295427513ac
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:41273/a%40b/?token=cc516a9869dd9768cead70a3c54e0c82a1b3d295427513ac
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get_non_existant0/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:41273/a%40b/?token=cc516a9869dd9768cead70a3c54e0c82a1b3d295427513ac
    http://127.0.0.1:41273/a%40b/?token=cc516a9869dd9768cead70a3c54e0c82a1b3d295427513ac
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='cc516a9869dd9768cead70a3c54e0c82a1b3d295427513ac'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:33.152 LabServerApp] Generating new user for token-authenticated request: fb9f7041bca641b2a457e2bbae9c5816
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________ test_get ___________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9d799d0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9afc7888b0>

    @pytest.mark.skipif(os.name == "nt", reason="Temporal failure on windows")
    async def test_get(jp_fetch, labserverapp):
        id = "foo"
        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afc078680>,code=200,effective...ent.HTTPRequest object at 0x7f9afc8298b0>,request_time=0.002670764923095703,start_time=1685304873.2219198,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:33.193 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_get1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_get1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_get1/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:45839/a%40b/?token=125ba99b6919e8a0f68aeaeddd09666dc72a43e1385ad5af
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:45839/a%40b/?token=125ba99b6919e8a0f68aeaeddd09666dc72a43e1385ad5af
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_get1/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:45839/a%40b/?token=125ba99b6919e8a0f68aeaeddd09666dc72a43e1385ad5af
    http://127.0.0.1:45839/a%40b/?token=125ba99b6919e8a0f68aeaeddd09666dc72a43e1385ad5af
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='125ba99b6919e8a0f68aeaeddd09666dc72a43e1385ad5af'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:33.223 LabServerApp] Generating new user for token-authenticated request: e80948da54a048b49d5fbbd233a8a79b
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_listing _________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f9af9da4700>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f9af9d7ab80>

    async def test_listing(jp_fetch, labserverapp):
        # ID fields are from workspaces/*.jupyterlab-workspace
        listing = {"foo", "f/o/o/"}
        r = await jp_fetch("lab", "api", "workspaces/")
>       validate_request(r)

tests/test_workspaces_api.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7f9afbfe86d0>,code=200,effective...ent.HTTPRequest object at 0x7f9afc255970>,request_time=0.002774953842163086,start_time=1685304873.2907908,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
---------------------------- Captured stderr setup -----------------------------
[D 2023-05-28 20:14:33.263 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-39/test_listing1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-39/test_listing1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-39/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2792 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-39/test_listing1/root_dir
INFO     ServerApp:serverapp.py:2792 Jupyter Server 2.5.0 is running at:
INFO     ServerApp:serverapp.py:2792 http://localhost:42297/a%40b/?token=b04b4d4149235c1089567ac6418b29540dd29f3913275936
INFO     ServerApp:serverapp.py:2792     http://127.0.0.1:42297/a%40b/?token=b04b4d4149235c1089567ac6418b29540dd29f3913275936
INFO     ServerApp:serverapp.py:2793 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2856

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-39/test_listing1/runtime/jpserver-33919-open.html
Or copy and paste one of these URLs:
    http://localhost:42297/a%40b/?token=b04b4d4149235c1089567ac6418b29540dd29f3913275936
    http://127.0.0.1:42297/a%40b/?token=b04b4d4149235c1089567ac6418b29540dd29f3913275936
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b04b4d4149235c1089567ac6418b29540dd29f3913275936'>}}
----------------------------- Captured stderr call -----------------------------
[I 2023-05-28 20:14:33.292 LabServerApp] Generating new user for token-authenticated request: 98547f6c3a0b44b88b26c019f9739ee3
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2572 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
=============================== warnings summary ===============================
tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2370: ResourceWarning: unclosed <socket.socket fd=20, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
2.02s call     tests/test_process.py::test_process
1.07s call     tests/test_process.py::test_process_app
0.13s setup    tests/test_translation_api.py::test_get
0.11s call     tests/test_listings_api.py::test_get_listing
0.10s setup    tests/test_labapp.py::test_lab_handler
0.08s call     tests/test_translation_api.py::test_get
0.08s call     tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5]
0.08s teardown tests/test_translation_api.py::test_get_display_name_invalid
0.07s setup    tests/test_settings_api.py::test_get_settings_overrides_dicts
0.07s call     tests/test_settings_api.py::test_patch_wrong_id
=========================== short test summary info ============================
FAILED tests/test_listings_api.py::test_get_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_dicts - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_federated - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing_ids - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch_unicode - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_themes_api.py::test_get_theme - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_bad - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_installed - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_valid - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_backend_locale - AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yect...
FAILED tests/test_translation_api.py::test_backend_locale_extension - AssertionError: assert 'BOOM' == 'Foo bar 2'
FAILED tests/test_translation_api.py::test_get_installed_language_pack_locales_passes - AssertionError: assert 'es_CO' in {}
FAILED tests/test_translation_api.py::test_get_installed_package_locales - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_installed_packages_locale - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_language_packs - AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'native...
FAILED tests/test_translation_api.py::test_get_language_pack - AssertionError: assert 'jupyterlab' in {}
FAILED tests/test_workspaces_api.py::test_delete - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get_non_existant - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
================== 27 failed, 118 passed, 1 warning in 10.67s ==================

@kloczek
Copy link
Author

kloczek commented Jun 13, 2023

Looks like in 2.23.0 some progress has been made and now less units are failing

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.23.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.23.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.17, pytest-7.3.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.23.0
configfile: pyproject.toml
testpaths: tests/
plugins: subprocess-1.5.0, anyio-3.6.2, requests-mock-1.11.0, timeout-2.1.0, console-scripts-1.4.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                                                                                                                               [  1%]
tests/test_labapp.py ......                                                                                                                                                           [  5%]
tests/test_licenses_api.py .....................................................................................                                                                      [ 64%]
tests/test_listings_api.py F.                                                                                                                                                         [ 65%]
tests/test_process.py ....                                                                                                                                                            [ 68%]
tests/test_settings_api.py FFFFF.FFFF....                                                                                                                                             [ 77%]
tests/test_themes_api.py F.                                                                                                                                                           [ 79%]
tests/test_translation_api.py FFFFF............                                                                                                                                       [ 91%]
tests/test_translation_utils.py ....                                                                                                                                                  [ 93%]
tests/test_workspaces_api.py FFFF....                                                                                                                                                 [ 99%]
tests/test_workspaces_app.py .                                                                                                                                                        [100%]

========================================================================================= FAILURES ==========================================================================================
_____________________________________________________________________________________ test_get_listing ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d275d310>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2fd82e0>

    async def test_get_listing(jp_fetch, labserverapp):
        url = r"lab/api/listings/@jupyterlab/extensionmanager-extension/listings.json"
        r = await jp_fetch(*url.split("/"))
>       validate_request(r)

tests/test_listings_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d289c590>,code=200,effective...nt.HTTPRequest object at 0x7fb3d2f69b50>,request_time=0.0035064220428466797,start_time=1686658501.5275545,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:01.499 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:37203/a%40b/?token=5224ea8cc5f649f0dbb4f6a73e5a73c86f054d0baa25f268
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:37203/a%40b/?token=5224ea8cc5f649f0dbb4f6a73e5a73c86f054d0baa25f268
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_listing0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:37203/a%40b/?token=5224ea8cc5f649f0dbb4f6a73e5a73c86f054d0baa25f268
    http://127.0.0.1:37203/a%40b/?token=5224ea8cc5f649f0dbb4f6a73e5a73c86f054d0baa25f268
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5224ea8cc5f649f0dbb4f6a73e5a73c86f054d0baa25f268'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 3c461adf58984a1dae6efe3de1c7c41e
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/listings/%40jupyterlab/extensionmanager-extension/listings.json (3c461adf58984a1dae6efe3de1c7c41e@127.0.0.1) 0.79ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________ test_get_settings_overrides_dicts _____________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2c76e50>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d28c82b0>

    async def test_get_settings_overrides_dicts(jp_fetch, labserverapp):
        # Check that values that are dictionaries in overrides.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2768310>,code=200,effective...lient.HTTPRequest object at 0x7fb3d28c19d0>,request_time=0.012053728103637695,start_time=1686658504.85868,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:04.803 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:36465/a%40b/?token=8a367dd8f5dad17eb66c0fd676a3e25af0452368786b5de3
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:36465/a%40b/?token=8a367dd8f5dad17eb66c0fd676a3e25af0452368786b5de3
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_di0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:36465/a%40b/?token=8a367dd8f5dad17eb66c0fd676a3e25af0452368786b5de3
    http://127.0.0.1:36465/a%40b/?token=8a367dd8f5dad17eb66c0fd676a3e25af0452368786b5de3
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='8a367dd8f5dad17eb66c0fd676a3e25af0452368786b5de3'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________ test_get_settings_overrides_d_dicts[json] _________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2bf2790>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2eba700>, ext = 'json'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c1f9f0>,code=200,effective...ient.HTTPRequest object at 0x7fb3d2e696a0>,request_time=0.007723093032836914,start_time=1686658504.981018,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:04.938 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:38943/a%40b/?token=36cf088a51c5b77255cc5bffe441154adab37ebd6449e6b2
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:38943/a%40b/?token=36cf088a51c5b77255cc5bffe441154adab37ebd6449e6b2
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:38943/a%40b/?token=36cf088a51c5b77255cc5bffe441154adab37ebd6449e6b2
    http://127.0.0.1:38943/a%40b/?token=36cf088a51c5b77255cc5bffe441154adab37ebd6449e6b2
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='36cf088a51c5b77255cc5bffe441154adab37ebd6449e6b2'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________ test_get_settings_overrides_d_dicts[json5] _________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2bbb280>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2b523d0>, ext = 'json5'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c266d0>,code=200,effective...ient.HTTPRequest object at 0x7fb3d2bbd1c0>,request_time=0.04274439811706543,start_time=1686658505.0878649,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.045 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:44705/a%40b/?token=4df78f0a430fcd9bd871fe5a6e5dc0041f1467b28a1b68fd
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:44705/a%40b/?token=4df78f0a430fcd9bd871fe5a6e5dc0041f1467b28a1b68fd
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_settings_overrides_d_1/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:44705/a%40b/?token=4df78f0a430fcd9bd871fe5a6e5dc0041f1467b28a1b68fd
    http://127.0.0.1:44705/a%40b/?token=4df78f0a430fcd9bd871fe5a6e5dc0041f1467b28a1b68fd
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='4df78f0a430fcd9bd871fe5a6e5dc0041f1467b28a1b68fd'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________________ test_get_settings _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2bbeb80>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2b5c190>

    async def test_get_settings(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c18220>,code=200,effective...ent.HTTPRequest object at 0x7fb3d2b59dc0>,request_time=0.005182027816772461,start_time=1686658505.2119858,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.182 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:46413/a%40b/?token=4c7265577d69488586b0aa52eaf652c1b3afdf12e364468a
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:46413/a%40b/?token=4c7265577d69488586b0aa52eaf652c1b3afdf12e364468a
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_settings0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:46413/a%40b/?token=4c7265577d69488586b0aa52eaf652c1b3afdf12e364468a
    http://127.0.0.1:46413/a%40b/?token=4c7265577d69488586b0aa52eaf652c1b3afdf12e364468a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='4c7265577d69488586b0aa52eaf652c1b3afdf12e364468a'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_get_federated _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2c76820>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2ecad30>

    async def test_get_federated(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension-federated:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d28a7d10>,code=200,effective...ient.HTTPRequest object at 0x7fb3d2ee5ca0>,request_time=0.004876613616943359,start_time=1686658505.338418,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.309 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:45327/a%40b/?token=8e1a9ef1de84817fff0fc27ba1eb108e766414bc17734266
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:45327/a%40b/?token=8e1a9ef1de84817fff0fc27ba1eb108e766414bc17734266
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_federated0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:45327/a%40b/?token=8e1a9ef1de84817fff0fc27ba1eb108e766414bc17734266
    http://127.0.0.1:45327/a%40b/?token=8e1a9ef1de84817fff0fc27ba1eb108e766414bc17734266
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='8e1a9ef1de84817fff0fc27ba1eb108e766414bc17734266'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________________ test_listing ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2fbd430>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2f72160>

    async def test_listing(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        versions = ["N/A", "N/A", "test-version"]
        r = await jp_fetch("lab", "api", "settings/")
>       validate_request(r)

tests/test_settings_api.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2b364a0>,code=200,effective...ent.HTTPRequest object at 0x7fb3d2b52400>,request_time=0.024813413619995117,start_time=1686658505.4630926,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.434 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_listing0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:33767/a%40b/?token=52c1a69b32558100a3a1ccbfee44742a8887cd9d520a1852
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:33767/a%40b/?token=52c1a69b32558100a3a1ccbfee44742a8887cd9d520a1852
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_listing0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:33767/a%40b/?token=52c1a69b32558100a3a1ccbfee44742a8887cd9d520a1852
    http://127.0.0.1:33767/a%40b/?token=52c1a69b32558100a3a1ccbfee44742a8887cd9d520a1852
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='52c1a69b32558100a3a1ccbfee44742a8887cd9d520a1852'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________________ test_listing_ids ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2c76a60>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d30611f0>

    async def test_listing_ids(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        r = await jp_fetch("lab", "api", "settings/", params={"ids_only": "true"})
>       validate_request(r)

tests/test_settings_api.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d28a7310>,code=200,effective...ent.HTTPRequest object at 0x7fb3d2ec8250>,request_time=0.005350828170776367,start_time=1686658505.5554516,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.526 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40853/a%40b/?token=aab10b2d71cc31a82a79b1ea81114fc0c217dfff8c159a75
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40853/a%40b/?token=aab10b2d71cc31a82a79b1ea81114fc0c217dfff8c159a75
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_listing_ids0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:40853/a%40b/?token=aab10b2d71cc31a82a79b1ea81114fc0c217dfff8c159a75
    http://127.0.0.1:40853/a%40b/?token=aab10b2d71cc31a82a79b1ea81114fc0c217dfff8c159a75
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='aab10b2d71cc31a82a79b1ea81114fc0c217dfff8c159a75'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________________________ test_patch _________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2bf4430>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2b52730>

    async def test_patch(jp_fetch, labserverapp):
        id = "@jupyterlab/shortcuts-extension:plugin"

        r = await jp_fetch(
            "lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
        )
>       validate_request(r)

tests/test_settings_api.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c2b3b0>,code=204,effective...ent.HTTPRequest object at 0x7fb3d2ebce50>,request_time=0.017767667770385742,start_time=1686658505.6283166,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.599 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_patch0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_patch0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_patch0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_patch0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:41259/a%40b/?token=0e6b2a1d8b01b0597a3790affaf4aae9bf5a3cf4a69f8250
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:41259/a%40b/?token=0e6b2a1d8b01b0597a3790affaf4aae9bf5a3cf4a69f8250
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_patch0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:41259/a%40b/?token=0e6b2a1d8b01b0597a3790affaf4aae9bf5a3cf4a69f8250
    http://127.0.0.1:41259/a%40b/?token=0e6b2a1d8b01b0597a3790affaf4aae9bf5a3cf4a69f8250
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='0e6b2a1d8b01b0597a3790affaf4aae9bf5a3cf4a69f8250'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_patch_unicode _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2ef35e0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2ec9f70>

    async def test_patch_unicode(jp_fetch, labserverapp):
        id = "@jupyterlab/unicode-extension:plugin"
        settings = dict(comment=big_unicode_string[::-1])
        payload = dict(raw=json5.dumps(settings))

        r = await jp_fetch("lab", "api", "settings", id, method="PUT", body=json.dumps(payload))
>       validate_request(r)

tests/test_settings_api.py:194:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2bcf400>,code=204,effective...ent.HTTPRequest object at 0x7fb3d2d31670>,request_time=0.019120216369628906,start_time=1686658505.7156553,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.686 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:33559/a%40b/?token=41c79eebddce141fb152c0ffbe7d3c9f58cf568c5685bf4a
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:33559/a%40b/?token=41c79eebddce141fb152c0ffbe7d3c9f58cf568c5685bf4a
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_patch_unicode0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:33559/a%40b/?token=41c79eebddce141fb152c0ffbe7d3c9f58cf568c5685bf4a
    http://127.0.0.1:33559/a%40b/?token=41c79eebddce141fb152c0ffbe7d3c9f58cf568c5685bf4a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='41c79eebddce141fb152c0ffbe7d3c9f58cf568c5685bf4a'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________________________________________________________________ test_get_theme _______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2a4a1f0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d29da7f0>

    async def test_get_theme(jp_fetch, labserverapp):
        r = await jp_fetch("lab", "api", "themes", "@jupyterlab", "foo", "index.css")
>       validate_request(r)

tests/test_themes_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2ba4270>,code=200,effective...ient.HTTPRequest object at 0x7fb3d29a0070>,request_time=0.006865739822387695,start_time=1686658505.985976,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:05.956 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:44045/a%40b/?token=140be3f175007ddd16d888d52ad37eeb14f10a5281bcbb85
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:44045/a%40b/?token=140be3f175007ddd16d888d52ad37eeb14f10a5281bcbb85
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_theme0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:44045/a%40b/?token=140be3f175007ddd16d888d52ad37eeb14f10a5281bcbb85
    http://127.0.0.1:44045/a%40b/?token=140be3f175007ddd16d888d52ad37eeb14f10a5281bcbb85
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='140be3f175007ddd16d888d52ad37eeb14f10a5281bcbb85'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________________ test_get __________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2a2d820>

    async def test_get(jp_fetch):
        r = await jp_fetch("lab", "api", "translations/")
>       validate_request(r)

tests/test_translation_api.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2bcb360>,code=200,effective...lient.HTTPRequest object at 0x7fb3d3037550>,request_time=0.0688028335571289,start_time=1686658511.0089045,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stdout setup -----------------------------------------------------------------------------------
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-some-package
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-some-package
  Building wheel for jupyterlab-some-package (setup.py): started
  Building wheel for jupyterlab-some-package (setup.py): finished with status 'done'
  Created wheel for jupyterlab-some-package: filename=jupyterlab_some_package-0.1.0-py3-none-any.whl size=2118 sha256=c84e0a5a32eb135c5f06a24a547b054a2c156ba11b223a7ffbca95d9d2ab6e9b
  Stored in directory: /home/tkloczko/.cache/pip/wheels/ce/76/72/3c7cbe7abea64c54232ff94384a057e70bf6263075fec512e7
Successfully built jupyterlab-some-package
Installing collected packages: jupyterlab-some-package
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-language-pack-es_CO
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-language-pack-es-CO
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): started
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): finished with status 'done'
  Created wheel for jupyterlab-language-pack-es-CO: filename=jupyterlab_language_pack_es_CO-0.1.0-py3-none-any.whl size=3781 sha256=f32784c44a9082e12ebfc5e6dac2fdf82a5544dbca987c8c13bd828fe5859c1d
  Stored in directory: /home/tkloczko/.cache/pip/wheels/a4/b0/ba/58d018e671d39610c544653e21ec1ab5f3be93e6347e21f52b
Successfully built jupyterlab-language-pack-es-CO
Installing collected packages: jupyterlab-language-pack-es-CO
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_some_package'
Check the permissions.

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_language_pack_es_CO'
Check the permissions.

[D 2023-06-13 12:15:10.962 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40661/a%40b/?token=abc5319fabc35d33e56b3e2e495476c216ebf2ac2f28cc34
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40661/a%40b/?token=abc5319fabc35d33e56b3e2e495476c216ebf2ac2f28cc34
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:40661/a%40b/?token=abc5319fabc35d33e56b3e2e495476c216ebf2ac2f28cc34
    http://127.0.0.1:40661/a%40b/?token=abc5319fabc35d33e56b3e2e495476c216ebf2ac2f28cc34
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='abc5319fabc35d33e56b3e2e495476c216ebf2ac2f28cc34'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 38a62ff98a3c4e2a81569c9a51771054
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/ (38a62ff98a3c4e2a81569c9a51771054@127.0.0.1) 65.77ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________________________________________________________________ test_get_locale ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d044b3a0>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
>       validate_request(r)

tests/test_translation_api.py:92:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2f97130>,code=200,effective...ient.HTTPRequest object at 0x7fb3d04796a0>,request_time=0.08901596069335938,start_time=1686658511.1698346,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:11.134 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:44551/a%40b/?token=b4131781b0fd55222969e31b24a6d88cf167998fe6cd1a0e
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:44551/a%40b/?token=b4131781b0fd55222969e31b24a6d88cf167998fe6cd1a0e
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_locale0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:44551/a%40b/?token=b4131781b0fd55222969e31b24a6d88cf167998fe6cd1a0e
    http://127.0.0.1:44551/a%40b/?token=b4131781b0fd55222969e31b24a6d88cf167998fe6cd1a0e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b4131781b0fd55222969e31b24a6d88cf167998fe6cd1a0e'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 63e53e4265c545359885072486dac873
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (63e53e4265c545359885072486dac873@127.0.0.1) 86.69ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_get_locale_bad ____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2f4ff70>

    async def test_get_locale_bad(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2fa3220>,code=200,effective...lient.HTTPRequest object at 0x7fb3d2ec8e50>,request_time=0.04215836524963379,start_time=1686658511.332722,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:11.300 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:35385/a%40b/?token=04f01a29cb2a2932d08e1ff8365325b25d37a1a2d1555b63
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:35385/a%40b/?token=04f01a29cb2a2932d08e1ff8365325b25d37a1a2d1555b63
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_locale_bad0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:35385/a%40b/?token=04f01a29cb2a2932d08e1ff8365325b25d37a1a2d1555b63
    http://127.0.0.1:35385/a%40b/?token=04f01a29cb2a2932d08e1ff8365325b25d37a1a2d1555b63
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='04f01a29cb2a2932d08e1ff8365325b25d37a1a2d1555b63'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 978e07f6a15e41e1a1b1f1d87807200a
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (978e07f6a15e41e1a1b1f1d87807200a@127.0.0.1) 39.98ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________ test_get_locale_not_installed _______________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d3021430>

    async def test_get_locale_not_installed(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "es_AR")
>       validate_request(r)

tests/test_translation_api.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d0432900>,code=200,effective...ient.HTTPRequest object at 0x7fb3d047c070>,request_time=0.037550926208496094,start_time=1686658511.443688,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:11.413 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40479/a%40b/?token=54e3f81bcc4aa2975430a8507657d70c35dbde05d279730e
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40479/a%40b/?token=54e3f81bcc4aa2975430a8507657d70c35dbde05d279730e
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_installed0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:40479/a%40b/?token=54e3f81bcc4aa2975430a8507657d70c35dbde05d279730e
    http://127.0.0.1:40479/a%40b/?token=54e3f81bcc4aa2975430a8507657d70c35dbde05d279730e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='54e3f81bcc4aa2975430a8507657d70c35dbde05d279730e'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: c3cd211903234aebaee9f95bdf7baf15
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_AR (c3cd211903234aebaee9f95bdf7baf15@127.0.0.1) 35.18ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________ test_get_locale_not_valid _________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d2bf4af0>

    async def test_get_locale_not_valid(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d29d6ea0>,code=200,effective...lient.HTTPRequest object at 0x7fb3d2b29760>,request_time=0.03936123847961426,start_time=1686658511.550768,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:11.520 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:36767/a%40b/?token=1a06833f438e32db82670f0121642715fec0db12cac675ed
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:36767/a%40b/?token=1a06833f438e32db82670f0121642715fec0db12cac675ed
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_locale_not_valid0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:36767/a%40b/?token=1a06833f438e32db82670f0121642715fec0db12cac675ed
    http://127.0.0.1:36767/a%40b/?token=1a06833f438e32db82670f0121642715fec0db12cac675ed
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='1a06833f438e32db82670f0121642715fec0db12cac675ed'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: ba314eeab0c3498b8c452b0381c175f2
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (ba314eeab0c3498b8c452b0381c175f2@127.0.0.1) 37.32ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________________________ test_delete ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d01c9280>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d0300310>

    async def test_delete(jp_fetch, labserverapp):
        orig = "f/o/o"
        copy = "baz"
        r = await jp_fetch("lab", "api", "workspaces", orig)
>       validate_request(r)

tests/test_workspaces_api.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c0e450>,code=200,effective...ient.HTTPRequest object at 0x7fb3d02f8f40>,request_time=0.004434823989868164,start_time=1686658513.334338,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:13.296 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_delete0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_delete0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_delete0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_delete0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:37021/a%40b/?token=317d5e913cde6bfc3257dd08b39576d74c526b5764e18c98
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:37021/a%40b/?token=317d5e913cde6bfc3257dd08b39576d74c526b5764e18c98
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_delete0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:37021/a%40b/?token=317d5e913cde6bfc3257dd08b39576d74c526b5764e18c98
    http://127.0.0.1:37021/a%40b/?token=317d5e913cde6bfc3257dd08b39576d74c526b5764e18c98
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='317d5e913cde6bfc3257dd08b39576d74c526b5764e18c98'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________________________________________________________ test_get_non_existant ___________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d0222430>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2b598b0>

    async def test_get_non_existant(jp_fetch, labserverapp):
        id = "foo"

        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d0257950>,code=200,effective...ient.HTTPRequest object at 0x7fb3d0234b50>,request_time=0.002943277359008789,start_time=1686658513.409037,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:13.380 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:45867/a%40b/?token=ca9e8343fab6253a76c59b167701d9864639464bd6a870fc
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:45867/a%40b/?token=ca9e8343fab6253a76c59b167701d9864639464bd6a870fc
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get_non_existant0/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:45867/a%40b/?token=ca9e8343fab6253a76c59b167701d9864639464bd6a870fc
    http://127.0.0.1:45867/a%40b/?token=ca9e8343fab6253a76c59b167701d9864639464bd6a870fc
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ca9e8343fab6253a76c59b167701d9864639464bd6a870fc'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________________ test_get __________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d022e4c0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d2fc31f0>

    @pytest.mark.skipif(os.name == "nt", reason="Temporal failure on windows")
    async def test_get(jp_fetch, labserverapp):
        id = "foo"
        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d01cc9f0>,code=200,effective...nt.HTTPRequest object at 0x7fb3d00d1e80>,request_time=0.0027272701263427734,start_time=1686658513.4794734,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:13.450 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_get1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_get1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_get1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:32773/a%40b/?token=ad8ef3699614af90f908b5f7999e820c069b0edb1d66d1ca
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:32773/a%40b/?token=ad8ef3699614af90f908b5f7999e820c069b0edb1d66d1ca
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_get1/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:32773/a%40b/?token=ad8ef3699614af90f908b5f7999e820c069b0edb1d66d1ca
    http://127.0.0.1:32773/a%40b/?token=ad8ef3699614af90f908b5f7999e820c069b0edb1d66d1ca
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ad8ef3699614af90f908b5f7999e820c069b0edb1d66d1ca'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________________ test_listing ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fb3d0179a60>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fb3d0090d00>

    async def test_listing(jp_fetch, labserverapp):
        # ID fields are from workspaces/*.jupyterlab-workspace
        listing = {"foo", "f/o/o/"}
        r = await jp_fetch("lab", "api", "workspaces/")
>       validate_request(r)

tests/test_workspaces_api.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fb3d2c16680>,code=200,effective...nt.HTTPRequest object at 0x7fb3d0092430>,request_time=0.0030591487884521484,start_time=1686658513.5495727,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-06-13 12:15:13.520 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-5/test_listing1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-5/test_listing1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-5/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-5/test_listing1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:34965/a%40b/?token=06f651847890a73a93902931bddd61d39312f5ef1c9f97bf
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:34965/a%40b/?token=06f651847890a73a93902931bddd61d39312f5ef1c9f97bf
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-5/test_listing1/runtime/jpserver-267479-open.html
Or copy and paste one of these URLs:
    http://localhost:34965/a%40b/?token=06f651847890a73a93902931bddd61d39312f5ef1c9f97bf
    http://127.0.0.1:34965/a%40b/?token=06f651847890a73a93902931bddd61d39312f5ef1c9f97bf
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='06f651847890a73a93902931bddd61d39312f5ef1c9f97bf'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
===================================================================================== warnings summary ======================================================================================
tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2379: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================== slowest 10 durations ====================================================================================
4.98s setup    tests/test_translation_api.py::test_get
2.02s call     tests/test_process.py::test_process
1.04s call     tests/test_process.py::test_process_app
1.01s teardown tests/test_translation_api.py::test_get_display_name_invalid
0.12s call     tests/test_translation_api.py::test_get_locale
0.10s call     tests/test_translation_api.py::test_get
0.10s setup    tests/test_labapp.py::test_lab_handler
0.08s call     tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5]
0.07s setup    tests/test_settings_api.py::test_get_settings_overrides_dicts
0.07s call     tests/test_translation_api.py::test_get_locale_bad
================================================================================== short test summary info ==================================================================================
FAILED tests/test_listings_api.py::test_get_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_dicts - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_federated - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing_ids - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch_unicode - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_themes_api.py::test_get_theme - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_bad - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_installed - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_valid - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_delete - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get_non_existant - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
======================================================================== 20 failed, 125 passed, 1 warning in 16.61s =========================================================================

@bnavigator
Copy link
Contributor

Make sure your test setup can install the test locales:

def setup_module(module):
"""setup any state specific to the execution of this module."""
for pkg in ["jupyterlab-some-package", "jupyterlab-language-pack-es_CO"]:
src = os.path.join(HERE, "translations", pkg)
subprocess.Popen([sys.executable, "-m", "pip", "install", src]).communicate() # noqa
def teardown_module(module):
"""teardown any state that was previously setup."""
for pkg in ["jupyterlab-some-package", "jupyterlab-language-pack-es_CO"]:
subprocess.Popen(
[sys.executable, "-m", "pip", "uninstall", pkg, "-y"] # noqa
).communicate()

This fails in your case, because you are not in a virtual environment.

I do this to fix it:

python3 -m venv build/testenv
build/testenv/bin/pip install tests/translations/jupyterlab-some-package
build/testenv/bin/pip install tests/translations/jupyterlab-language-pack-es_CO

@kloczek
Copy link
Author

kloczek commented Jun 13, 2023

Is it any reason why those gettext translations are distributed with exact jupyter packages and are distributed as separated modle? 🤔

@fcollonval
Copy link
Member

Is it any reason why those gettext translations are distributed with exact jupyter packages and are distributed as separated modle? thinking

Those are tests packages to emulated installation of separately distributed language packages.


All the test failing are related to openapi_core. We have quite some troubles with that package as their API is changing a lot. Which version are you using?

@kloczek
Copy link
Author

kloczek commented Jun 26, 2023

Those are tests packages to emulated installation of separately distributed language packages.

Hmm .. OK but why those translations are not part of each module tree like it is with all projects? 🤔

@kloczek
Copy link
Author

kloczek commented Jul 1, 2023

Those are tests packages to emulated installation of separately distributed language packages.

It would be good to mark this unit as @pytest.mark.network to allow skip it when pytest is executed with -m "no network".
Such mark is already widely is in many other modules test suites.

Just tested 2.23.0 and looks like I have now only units failing with AttributeError: 'NoneType' object has no attribute 'raise_for_errors'.
Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.23.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.23.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.23.0
configfile: pyproject.toml
testpaths: tests/
plugins: mock-3.11.1, anyio-3.6.2, asyncio-0.21.0, aiohttp-1.0.4, httpbin-2.0.0, requests-mock-1.11.0, timeout-2.1.0, console-scripts-1.4.1
asyncio: mode=strict
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                                                                                                                               [  1%]
tests/test_labapp.py ......                                                                                                                                                           [  5%]
tests/test_licenses_api.py .....................................................................................                                                                      [ 64%]
tests/test_listings_api.py F.                                                                                                                                                         [ 65%]
tests/test_process.py ....                                                                                                                                                            [ 68%]
tests/test_settings_api.py FFFFF.FFFF....                                                                                                                                             [ 77%]
tests/test_themes_api.py F.                                                                                                                                                           [ 79%]
tests/test_translation_api.py FFFFF............                                                                                                                                       [ 91%]
tests/test_translation_utils.py ....                                                                                                                                                  [ 93%]
tests/test_workspaces_api.py FFFF....                                                                                                                                                 [ 99%]
tests/test_workspaces_app.py .                                                                                                                                                        [100%]

========================================================================================= FAILURES ==========================================================================================
_____________________________________________________________________________________ test_get_listing ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f8e0430>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f379d90>

    async def test_get_listing(jp_fetch, labserverapp):
        url = r"lab/api/listings/@jupyterlab/extensionmanager-extension/listings.json"
        r = await jp_fetch(*url.split("/"))
>       validate_request(r)

tests/test_listings_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f8eae50>,code=200,effective...ent.HTTPRequest object at 0x7fea2f82d6a0>,request_time=0.003010272979736328,start_time=1688249092.2459793,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:52.214 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:42125/a%40b/?token=7843bc64f392b96a42e02893a64fd5cd27e5417af191e376
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:42125/a%40b/?token=7843bc64f392b96a42e02893a64fd5cd27e5417af191e376
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_listing0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:42125/a%40b/?token=7843bc64f392b96a42e02893a64fd5cd27e5417af191e376
    http://127.0.0.1:42125/a%40b/?token=7843bc64f392b96a42e02893a64fd5cd27e5417af191e376
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='7843bc64f392b96a42e02893a64fd5cd27e5417af191e376'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 3b53470bbea944499e7835862d8f5ab2
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/listings/%40jupyterlab/extensionmanager-extension/listings.json (3b53470bbea944499e7835862d8f5ab2@127.0.0.1) 1.03ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________ test_get_settings_overrides_dicts _____________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f513160>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f6f1220>

    async def test_get_settings_overrides_dicts(jp_fetch, labserverapp):
        # Check that values that are dictionaries in overrides.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f5a2950>,code=200,effective...ient.HTTPRequest object at 0x7fea2f7fddc0>,request_time=0.010889530181884766,start_time=1688249095.699502,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:55.648 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:44635/a%40b/?token=40cd5899bd7f92cf5792c73fa6d0baeebce05c0afa3e9a29
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:44635/a%40b/?token=40cd5899bd7f92cf5792c73fa6d0baeebce05c0afa3e9a29
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_di0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:44635/a%40b/?token=40cd5899bd7f92cf5792c73fa6d0baeebce05c0afa3e9a29
    http://127.0.0.1:44635/a%40b/?token=40cd5899bd7f92cf5792c73fa6d0baeebce05c0afa3e9a29
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='40cd5899bd7f92cf5792c73fa6d0baeebce05c0afa3e9a29'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________ test_get_settings_overrides_d_dicts[json] _________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f5159d0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f64efd0>, ext = 'json'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f9cabd0>,code=200,effective...ent.HTTPRequest object at 0x7fea2f929190>,request_time=0.007996320724487305,start_time=1688249095.8164363,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:55.773 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:33811/a%40b/?token=b32395d66eb514838bee530538495c62f8af2b25b8c4572d
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:33811/a%40b/?token=b32395d66eb514838bee530538495c62f8af2b25b8c4572d
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:33811/a%40b/?token=b32395d66eb514838bee530538495c62f8af2b25b8c4572d
    http://127.0.0.1:33811/a%40b/?token=b32395d66eb514838bee530538495c62f8af2b25b8c4572d
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b32395d66eb514838bee530538495c62f8af2b25b8c4572d'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________ test_get_settings_overrides_d_dicts[json5] _________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f4ac430>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f7d5160>, ext = 'json5'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f976090>,code=200,effective...ent.HTTPRequest object at 0x7fea2f65f400>,request_time=0.043039560317993164,start_time=1688249095.9257162,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:55.883 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:41505/a%40b/?token=5ef95303e8d584a45f076e47d16e62d2c255bc9e4f731978
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:41505/a%40b/?token=5ef95303e8d584a45f076e47d16e62d2c255bc9e4f731978
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_settings_overrides_d_1/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:41505/a%40b/?token=5ef95303e8d584a45f076e47d16e62d2c255bc9e4f731978
    http://127.0.0.1:41505/a%40b/?token=5ef95303e8d584a45f076e47d16e62d2c255bc9e4f731978
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5ef95303e8d584a45f076e47d16e62d2c255bc9e4f731978'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________________ test_get_settings _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f4b0ca0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f64e970>

    async def test_get_settings(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f49a950>,code=200,effective...ient.HTTPRequest object at 0x7fea2f91b5b0>,request_time=0.007203817367553711,start_time=1688249096.068787,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.027 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:39931/a%40b/?token=1453b40273894b995db366c54c664ebac47598e1331904e5
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:39931/a%40b/?token=1453b40273894b995db366c54c664ebac47598e1331904e5
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_settings0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:39931/a%40b/?token=1453b40273894b995db366c54c664ebac47598e1331904e5
    http://127.0.0.1:39931/a%40b/?token=1453b40273894b995db366c54c664ebac47598e1331904e5
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='1453b40273894b995db366c54c664ebac47598e1331904e5'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_get_federated _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f4cc3a0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f47d0a0>

    async def test_get_federated(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension-federated:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f9102c0>,code=200,effective...ent.HTTPRequest object at 0x7fea2f91b550>,request_time=0.005007266998291016,start_time=1688249096.1642795,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.134 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:38537/a%40b/?token=754cba6a47fb3bd41415cb7af9ca7be1812aabf4ca6d6935
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:38537/a%40b/?token=754cba6a47fb3bd41415cb7af9ca7be1812aabf4ca6d6935
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_federated0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:38537/a%40b/?token=754cba6a47fb3bd41415cb7af9ca7be1812aabf4ca6d6935
    http://127.0.0.1:38537/a%40b/?token=754cba6a47fb3bd41415cb7af9ca7be1812aabf4ca6d6935
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='754cba6a47fb3bd41415cb7af9ca7be1812aabf4ca6d6935'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________________ test_listing ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f45b8b0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f654070>

    async def test_listing(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        versions = ["N/A", "N/A", "test-version"]
        r = await jp_fetch("lab", "api", "settings/")
>       validate_request(r)

tests/test_settings_api.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f9103b0>,code=200,effective...ent.HTTPRequest object at 0x7fea2f827f70>,request_time=0.024608850479125977,start_time=1688249096.2929265,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.264 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_listing0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:34625/a%40b/?token=d926a7290c36a92d5599b59415fdb20f97729404370aee04
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:34625/a%40b/?token=d926a7290c36a92d5599b59415fdb20f97729404370aee04
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_listing0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:34625/a%40b/?token=d926a7290c36a92d5599b59415fdb20f97729404370aee04
    http://127.0.0.1:34625/a%40b/?token=d926a7290c36a92d5599b59415fdb20f97729404370aee04
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='d926a7290c36a92d5599b59415fdb20f97729404370aee04'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________________________________________________________________ test_listing_ids ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f514ca0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f8d97c0>

    async def test_listing_ids(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        r = await jp_fetch("lab", "api", "settings/", params={"ids_only": "true"})
>       validate_request(r)

tests/test_settings_api.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f842400>,code=200,effective...ent.HTTPRequest object at 0x7fea2f62d3d0>,request_time=0.005118131637573242,start_time=1688249096.3880417,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.358 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:35049/a%40b/?token=5927b5aa3ce87eca323289db414c39f4da7e5d5ab4c8b551
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:35049/a%40b/?token=5927b5aa3ce87eca323289db414c39f4da7e5d5ab4c8b551
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_listing_ids0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:35049/a%40b/?token=5927b5aa3ce87eca323289db414c39f4da7e5d5ab4c8b551
    http://127.0.0.1:35049/a%40b/?token=5927b5aa3ce87eca323289db414c39f4da7e5d5ab4c8b551
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5927b5aa3ce87eca323289db414c39f4da7e5d5ab4c8b551'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________________________ test_patch _________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f431e50>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f31c340>

    async def test_patch(jp_fetch, labserverapp):
        id = "@jupyterlab/shortcuts-extension:plugin"

        r = await jp_fetch(
            "lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
        )
>       validate_request(r)

tests/test_settings_api.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f337900>,code=204,effective...ent.HTTPRequest object at 0x7fea2f3c25b0>,request_time=0.017797470092773438,start_time=1688249096.4629161,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.433 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_patch0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_patch0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_patch0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_patch0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:44519/a%40b/?token=ae427023b4d6267ff21367fd4012df6e8095d14fb8f31237
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:44519/a%40b/?token=ae427023b4d6267ff21367fd4012df6e8095d14fb8f31237
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_patch0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:44519/a%40b/?token=ae427023b4d6267ff21367fd4012df6e8095d14fb8f31237
    http://127.0.0.1:44519/a%40b/?token=ae427023b4d6267ff21367fd4012df6e8095d14fb8f31237
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ae427023b4d6267ff21367fd4012df6e8095d14fb8f31237'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_patch_unicode _____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f30a9d0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f2a6eb0>

    async def test_patch_unicode(jp_fetch, labserverapp):
        id = "@jupyterlab/unicode-extension:plugin"
        settings = dict(comment=big_unicode_string[::-1])
        payload = dict(raw=json5.dumps(settings))

        r = await jp_fetch("lab", "api", "settings", id, method="PUT", body=json.dumps(payload))
>       validate_request(r)

tests/test_settings_api.py:194:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f558950>,code=204,effective...ent.HTTPRequest object at 0x7fea2f40c8e0>,request_time=0.020005226135253906,start_time=1688249096.5533497,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.524 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:34219/a%40b/?token=f6d632bb2a9160f845f544f2124655e9d878b29f4c7028bb
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:34219/a%40b/?token=f6d632bb2a9160f845f544f2124655e9d878b29f4c7028bb
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_patch_unicode0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:34219/a%40b/?token=f6d632bb2a9160f845f544f2124655e9d878b29f4c7028bb
    http://127.0.0.1:34219/a%40b/?token=f6d632bb2a9160f845f544f2124655e9d878b29f4c7028bb
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f6d632bb2a9160f845f544f2124655e9d878b29f4c7028bb'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________________________________________________________________ test_get_theme _______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f45b940>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f88fa30>

    async def test_get_theme(jp_fetch, labserverapp):
        r = await jp_fetch("lab", "api", "themes", "@jupyterlab", "foo", "index.css")
>       validate_request(r)

tests/test_themes_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f950d60>,code=200,effective...ent.HTTPRequest object at 0x7fea2f827370>,request_time=0.006933450698852539,start_time=1688249096.8935516,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:04:56.864 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40385/a%40b/?token=de6780240c5149be265cdb2388502f852f12bfbbeb8c6230
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40385/a%40b/?token=de6780240c5149be265cdb2388502f852f12bfbbeb8c6230
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_theme0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:40385/a%40b/?token=de6780240c5149be265cdb2388502f852f12bfbbeb8c6230
    http://127.0.0.1:40385/a%40b/?token=de6780240c5149be265cdb2388502f852f12bfbbeb8c6230
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='de6780240c5149be265cdb2388502f852f12bfbbeb8c6230'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________________ test_get __________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f4c9940>

    async def test_get(jp_fetch):
        r = await jp_fetch("lab", "api", "translations/")
>       validate_request(r)

tests/test_translation_api.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f5993b0>,code=200,effective...ient.HTTPRequest object at 0x7fea3186e730>,request_time=0.07084155082702637,start_time=1688249102.4802287,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stdout setup -----------------------------------------------------------------------------------
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-some-package
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-some-package
  Building wheel for jupyterlab-some-package (setup.py): started
  Building wheel for jupyterlab-some-package (setup.py): finished with status 'done'
  Created wheel for jupyterlab-some-package: filename=jupyterlab_some_package-0.1.0-py3-none-any.whl size=2118 sha256=b2daaa7659c621665044c96b3ed5e1db56f726e5883fef2ecca4dac08f2289c5
  Stored in directory: /home/tkloczko/.cache/pip/wheels/ce/76/72/3c7cbe7abea64c54232ff94384a057e70bf6263075fec512e7
Successfully built jupyterlab-some-package
Installing collected packages: jupyterlab-some-package
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-language-pack-es_CO
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-language-pack-es-CO
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): started
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): finished with status 'done'
  Created wheel for jupyterlab-language-pack-es-CO: filename=jupyterlab_language_pack_es_CO-0.1.0-py3-none-any.whl size=3781 sha256=43e535e66f243ddb9e136073d8c40706d26172ba724004e65c5e97b8a670f4e2
  Stored in directory: /home/tkloczko/.cache/pip/wheels/a4/b0/ba/58d018e671d39610c544653e21ec1ab5f3be93e6347e21f52b
Successfully built jupyterlab-language-pack-es-CO
Installing collected packages: jupyterlab-language-pack-es-CO
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_some_package'
Check the permissions.

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_language_pack_es_CO'
Check the permissions.

[D 2023-07-01 22:05:02.432 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:34931/a%40b/?token=ce02d83dd8cea41511d0888d48491e489d7eb3a1ff3d9907
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:34931/a%40b/?token=ce02d83dd8cea41511d0888d48491e489d7eb3a1ff3d9907
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:34931/a%40b/?token=ce02d83dd8cea41511d0888d48491e489d7eb3a1ff3d9907
    http://127.0.0.1:34931/a%40b/?token=ce02d83dd8cea41511d0888d48491e489d7eb3a1ff3d9907
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ce02d83dd8cea41511d0888d48491e489d7eb3a1ff3d9907'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 643510ec8c054ce8b73162b29643d211
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/ (643510ec8c054ce8b73162b29643d211@127.0.0.1) 67.84ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________________________________________________________________ test_get_locale ______________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2ce3d430>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
>       validate_request(r)

tests/test_translation_api.py:92:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2ced94f0>,code=200,effective...ent.HTTPRequest object at 0x7fea2f8b7ac0>,request_time=0.043350934982299805,start_time=1688249102.6419518,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:02.606 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40547/a%40b/?token=c2c482b9b3e5463bd9e11dcc0ecedf284c5d222efc4efbd7
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40547/a%40b/?token=c2c482b9b3e5463bd9e11dcc0ecedf284c5d222efc4efbd7
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_locale0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:40547/a%40b/?token=c2c482b9b3e5463bd9e11dcc0ecedf284c5d222efc4efbd7
    http://127.0.0.1:40547/a%40b/?token=c2c482b9b3e5463bd9e11dcc0ecedf284c5d222efc4efbd7
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c2c482b9b3e5463bd9e11dcc0ecedf284c5d222efc4efbd7'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: dce62e4639c940a7985610f4cb9383dd
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (dce62e4639c940a7985610f4cb9383dd@127.0.0.1) 41.31ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________________________________________________________________ test_get_locale_bad ____________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2cd59d30>

    async def test_get_locale_bad(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f6307c0>,code=200,effective...ient.HTTPRequest object at 0x7fea2f7c9970>,request_time=0.04150056838989258,start_time=1688249102.7592928,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:02.728 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:38015/a%40b/?token=a1cd9e732a1208c2ed035999c4b60caa2e7175863dcda913
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:38015/a%40b/?token=a1cd9e732a1208c2ed035999c4b60caa2e7175863dcda913
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_locale_bad0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:38015/a%40b/?token=a1cd9e732a1208c2ed035999c4b60caa2e7175863dcda913
    http://127.0.0.1:38015/a%40b/?token=a1cd9e732a1208c2ed035999c4b60caa2e7175863dcda913
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='a1cd9e732a1208c2ed035999c4b60caa2e7175863dcda913'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 6b1ab42e21424ad4bb63547a7f3ae150
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (6b1ab42e21424ad4bb63547a7f3ae150@127.0.0.1) 39.83ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________ test_get_locale_not_installed _______________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2cced550>

    async def test_get_locale_not_installed(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "es_AR")
>       validate_request(r)

tests/test_translation_api.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f089810>,code=200,effective...ent.HTTPRequest object at 0x7fea2f6f1730>,request_time=0.040289878845214844,start_time=1688249102.8740911,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:02.843 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:37239/a%40b/?token=ddff43fce3b2904aabb6437aa4e80e5d44cda626fe8971c0
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:37239/a%40b/?token=ddff43fce3b2904aabb6437aa4e80e5d44cda626fe8971c0
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_installed0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:37239/a%40b/?token=ddff43fce3b2904aabb6437aa4e80e5d44cda626fe8971c0
    http://127.0.0.1:37239/a%40b/?token=ddff43fce3b2904aabb6437aa4e80e5d44cda626fe8971c0
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ddff43fce3b2904aabb6437aa4e80e5d44cda626fe8971c0'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 20bd20908ec248e293f4fed1b582a3a5
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_AR (20bd20908ec248e293f4fed1b582a3a5@127.0.0.1) 38.14ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________ test_get_locale_not_valid _________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2ccadca0>

    async def test_get_locale_not_valid(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f0a1040>,code=200,effective...ient.HTTPRequest object at 0x7fea2cd0e1f0>,request_time=0.03979063034057617,start_time=1688249102.9868872,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:02.955 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:42875/a%40b/?token=02f53cc6dc89c4d7ed091d45e1143fee5c4b07a3cdf0bd6a
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:42875/a%40b/?token=02f53cc6dc89c4d7ed091d45e1143fee5c4b07a3cdf0bd6a
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_locale_not_valid0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:42875/a%40b/?token=02f53cc6dc89c4d7ed091d45e1143fee5c4b07a3cdf0bd6a
    http://127.0.0.1:42875/a%40b/?token=02f53cc6dc89c4d7ed091d45e1143fee5c4b07a3cdf0bd6a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='02f53cc6dc89c4d7ed091d45e1143fee5c4b07a3cdf0bd6a'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 7e277eef158945698a9889deffce1b57
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (7e277eef158945698a9889deffce1b57@127.0.0.1) 37.93ms
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________________________________________________________________ test_delete ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f286280>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f3f76d0>

    async def test_delete(jp_fetch, labserverapp):
        orig = "f/o/o"
        copy = "baz"
        r = await jp_fetch("lab", "api", "workspaces", orig)
>       validate_request(r)

tests/test_workspaces_api.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f144810>,code=200,effective...nt.HTTPRequest object at 0x7fea2f28b1f0>,request_time=0.0045223236083984375,start_time=1688249104.9515514,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:04.917 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_delete0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_delete0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_delete0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_delete0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:40819/a%40b/?token=54cd8df53af019c56d347c54545367e43f593c9a59078867
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:40819/a%40b/?token=54cd8df53af019c56d347c54545367e43f593c9a59078867
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_delete0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:40819/a%40b/?token=54cd8df53af019c56d347c54545367e43f593c9a59078867
    http://127.0.0.1:40819/a%40b/?token=54cd8df53af019c56d347c54545367e43f593c9a59078867
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='54cd8df53af019c56d347c54545367e43f593c9a59078867'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________________________________________________________ test_get_non_existant ___________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f3e1c10>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f33df70>

    async def test_get_non_existant(jp_fetch, labserverapp):
        id = "foo"

        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2cf90220>,code=200,effective...nt.HTTPRequest object at 0x7fea2f82d7f0>,request_time=0.0028417110443115234,start_time=1688249105.0305018,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:05.001 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:34559/a%40b/?token=4d1b738a46aa257f9e281bcb86d9c69386b0894d516a9c0c
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:34559/a%40b/?token=4d1b738a46aa257f9e281bcb86d9c69386b0894d516a9c0c
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get_non_existant0/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:34559/a%40b/?token=4d1b738a46aa257f9e281bcb86d9c69386b0894d516a9c0c
    http://127.0.0.1:34559/a%40b/?token=4d1b738a46aa257f9e281bcb86d9c69386b0894d516a9c0c
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='4d1b738a46aa257f9e281bcb86d9c69386b0894d516a9c0c'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________________________________________________________________ test_get __________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2f3f54c0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2cc3e4c0>

    @pytest.mark.skipif(os.name == "nt", reason="Temporal failure on windows")
    async def test_get(jp_fetch, labserverapp):
        id = "foo"
        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2ce97630>,code=200,effective...ent.HTTPRequest object at 0x7fea2f228b80>,request_time=0.003099679946899414,start_time=1688249105.1038897,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:05.074 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_get1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_get1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_get1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:42107/a%40b/?token=e39003e6aa1f7f95e83be4dc7015013e1ab1c9b92a511d4c
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:42107/a%40b/?token=e39003e6aa1f7f95e83be4dc7015013e1ab1c9b92a511d4c
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_get1/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:42107/a%40b/?token=e39003e6aa1f7f95e83be4dc7015013e1ab1c9b92a511d4c
    http://127.0.0.1:42107/a%40b/?token=e39003e6aa1f7f95e83be4dc7015013e1ab1c9b92a511d4c
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='e39003e6aa1f7f95e83be4dc7015013e1ab1c9b92a511d4c'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________________________________________________________________ test_listing ________________________________________________________________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fea2cba55e0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7fea2f8b7430>

    async def test_listing(jp_fetch, labserverapp):
        # ID fields are from workspaces/*.jupyterlab-workspace
        listing = {"foo", "f/o/o/"}
        r = await jp_fetch("lab", "api", "workspaces/")
>       validate_request(r)

tests/test_workspaces_api.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

response = HTTPResponse(_body=None,_error_is_response_code=False,buffer=<_io.BytesIO object at 0x7fea2f4a8090>,code=200,effective...nt.HTTPRequest object at 0x7fea2cca0e50>,request_time=0.0028829574584960938,start_time=1688249105.1768684,time_info={})

    def validate_request(response):
        """Validate an API request"""
        openapi_spec = get_openapi_spec()

        request = TornadoOpenAPIRequest(response.request, openapi_spec)
        if V30RequestValidator:
            result = V30RequestValidator(openapi_spec).validate(request)
        else:
            result = openapi_request_validator.validate(openapi_spec, request)
>       result.raise_for_errors()
E       AttributeError: 'NoneType' object has no attribute 'raise_for_errors'

jupyterlab_server/test_utils.py:159: AttributeError
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2023-07-01 22:05:05.147 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-48/test_listing1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-48/test_listing1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-48/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2801 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-48/test_listing1/root_dir
INFO     ServerApp:serverapp.py:2801 Jupyter Server 2.6.0 is running at:
INFO     ServerApp:serverapp.py:2801 http://localhost:45801/a%40b/?token=b5ac44d90c958fc9957198ba62124939f7159cc4d8189a99
INFO     ServerApp:serverapp.py:2801     http://127.0.0.1:45801/a%40b/?token=b5ac44d90c958fc9957198ba62124939f7159cc4d8189a99
INFO     ServerApp:serverapp.py:2802 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2864

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-48/test_listing1/runtime/jpserver-1217924-open.html
Or copy and paste one of these URLs:
    http://localhost:45801/a%40b/?token=b5ac44d90c958fc9957198ba62124939f7159cc4d8189a99
    http://127.0.0.1:45801/a%40b/?token=b5ac44d90c958fc9957198ba62124939f7159cc4d8189a99
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='b5ac44d90c958fc9957198ba62124939f7159cc4d8189a99'>}}
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO     ServerApp:serverapp.py:2581 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
===================================================================================== warnings summary ======================================================================================
tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2379: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================== slowest 10 durations ====================================================================================
5.54s setup    tests/test_translation_api.py::test_get
2.02s call     tests/test_process.py::test_process
1.09s teardown tests/test_translation_api.py::test_get_display_name_invalid
1.07s call     tests/test_process.py::test_process_app
0.14s call     tests/test_listings_api.py::test_get_listing
0.11s call     tests/test_translation_api.py::test_get
0.10s setup    tests/test_labapp.py::test_lab_handler
0.09s setup    tests/test_settings_api.py::test_patch_invalid_json
0.08s call     tests/test_licenses_api.py::test_get_license_report[mime_format_parser0-False-nothing-true-False]
0.08s call     tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5]
================================================================================== short test summary info ==================================================================================
FAILED tests/test_listings_api.py::test_get_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_dicts - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5] - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_settings - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_get_federated - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_listing_ids - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_settings_api.py::test_patch_unicode - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_themes_api.py::test_get_theme - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_bad - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_installed - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_translation_api.py::test_get_locale_not_valid - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_delete - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get_non_existant - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_get - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
FAILED tests/test_workspaces_api.py::test_listing - AttributeError: 'NoneType' object has no attribute 'raise_for_errors'
======================================================================== 20 failed, 125 passed, 1 warning in 17.55s =========================================================================

Here is list of installed modules in updated build env

Package                       Version
----------------------------- -------
alabaster                     0.7.13
asttokens                     2.2.1
Babel                         2.12.1
backcall                      0.2.0
build                         0.10.0
charset-normalizer            3.1.0
decorator                     5.1.1
distro                        1.8.0
docutils                      0.19
exceptiongroup                1.1.1
executing                     1.2.0
gpg                           1.20.0
idna                          3.4
imagesize                     1.4.1
importlib-metadata            6.7.0
iniconfig                     2.0.0
installer                     0.7.0
ipython                       8.12.0
jedi                          0.18.2
Jinja2                        3.1.2
libcomps                      0.1.19
MarkupSafe                    2.1.2
matplotlib-inline             0.1.6
packaging                     23.1
parso                         0.8.3
pexpect                       4.8.0
pickleshare                   0.7.5
pluggy                        1.0.0
prompt-toolkit                3.0.38
ptyprocess                    0.7.0
pure-eval                     0.2.2
Pygments                      2.15.1
pyproject_hooks               1.0.0
pytest                        7.4.0
python-dateutil               2.8.2
pytz                          2023.2
requests                      2.31.0
setuptools                    68.0.0
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        6.2.1
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
stack-data                    0.6.2
tomli                         2.0.1
traitlets                     5.9.0
typing_extensions             4.6.3
urllib3                       1.26.15
wcwidth                       0.2.6
wheel                         0.40.0
zipp                          3.15.0

@bnavigator
Copy link
Contributor

It does not need network

@kloczek
Copy link
Author

kloczek commented Jul 2, 2023

If unit downloads .whl archives from pypi archive it is in that class of units.

@kloczek
Copy link
Author

kloczek commented Sep 12, 2023

Just FTR pytest output on 2.25.0 (less units are failing now)

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.25.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.25.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.25.0
configfile: pyproject.toml
testpaths: tests/
plugins: anyio-3.7.1, requests-mock-1.11.0, console-scripts-1.4.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                  [  1%]
tests/test_labapp.py ......                                              [  5%]
tests/test_licenses_api.py ............................................. [ 36%]
........................................                                 [ 64%]
tests/test_listings_api.py ..                                            [ 65%]
tests/test_process.py ....                                               [ 68%]
tests/test_settings_api.py ..............                                [ 77%]
tests/test_themes_api.py ..                                              [ 79%]
tests/test_translation_api.py .F...FFFFFFF.....                          [ 91%]
tests/test_translation_utils.py ....                                     [ 93%]
tests/test_workspaces_api.py ........                                    [ 99%]
tests/test_workspaces_app.py .                                           [100%]

=================================== FAILURES ===================================
_______________________________ test_get_locale ________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f634a0e0dc0>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
        validate_request(r)
        data = json.loads(r.body.decode())["data"]
>       assert "jupyterlab" in data
E       AssertionError: assert 'jupyterlab' in {}

tests/test_translation_api.py:94: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:58.659 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:35627/a%40b/?token=aa3de96471bd3359896cc967819bbd7deba83cae2c5e51ee
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:35627/a%40b/?token=aa3de96471bd3359896cc967819bbd7deba83cae2c5e51ee
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_locale0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:35627/a%40b/?token=aa3de96471bd3359896cc967819bbd7deba83cae2c5e51ee
    http://127.0.0.1:35627/a%40b/?token=aa3de96471bd3359896cc967819bbd7deba83cae2c5e51ee
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='aa3de96471bd3359896cc967819bbd7deba83cae2c5e51ee'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: ae31e511988a4be094b5f5f2d44aa8fe
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (ae31e511988a4be094b5f5f2d44aa8fe@127.0.0.1) 32.94ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________ test_backend_locale ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f6349f7b550>

    async def test_backend_locale(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab")
        result = trans.__("MORE ABOUT PROJECT JUPYTER")
>       assert result == "Más sobre el proyecto jupyter"
E       AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yecto jupyter'
E         - Más sobre el proyecto jupyter
E         + MORE ABOUT PROJECT JUPYTER

tests/test_translation_api.py:132: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.171 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:38449/a%40b/?token=52759955dda1cc4f44662fbb0d9fe6cfba472200215b35b8
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:38449/a%40b/?token=52759955dda1cc4f44662fbb0d9fe6cfba472200215b35b8
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_backend_locale0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:38449/a%40b/?token=52759955dda1cc4f44662fbb0d9fe6cfba472200215b35b8
    http://127.0.0.1:38449/a%40b/?token=52759955dda1cc4f44662fbb0d9fe6cfba472200215b35b8
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='52759955dda1cc4f44662fbb0d9fe6cfba472200215b35b8'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 4f3ad3123a6a4f24b83bd318b8413ff4
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (4f3ad3123a6a4f24b83bd318b8413ff4@127.0.0.1) 30.85ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________ test_backend_locale_extension _________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f6348666790>

    async def test_backend_locale_extension(jp_fetch):
        locale = "es_CO"
        await jp_fetch("lab", "api", "translations", locale)
        trans = translator.load("jupyterlab_some_package")
        result = trans.__("BOOM")
>       assert result == "Foo bar 2"
E       AssertionError: assert 'BOOM' == 'Foo bar 2'
E         - Foo bar 2
E         + BOOM

tests/test_translation_api.py:140: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.249 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:33495/a%40b/?token=ae74f3c208f1011d63e7448557b7817a2fa65335424aa7f3
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:33495/a%40b/?token=ae74f3c208f1011d63e7448557b7817a2fa65335424aa7f3
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_backend_locale_extension0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:33495/a%40b/?token=ae74f3c208f1011d63e7448557b7817a2fa65335424aa7f3
    http://127.0.0.1:33495/a%40b/?token=ae74f3c208f1011d63e7448557b7817a2fa65335424aa7f3
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='ae74f3c208f1011d63e7448557b7817a2fa65335424aa7f3'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: c1bd847018ce41e585f945ba30e7e7d9
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (c1bd847018ce41e585f945ba30e7e7d9@127.0.0.1) 30.65ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________ test_get_installed_language_pack_locales_passes ________________

    def test_get_installed_language_pack_locales_passes():
        data, message = _get_installed_language_pack_locales()
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {}

tests/test_translation_api.py:147: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.327 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:41209/a%40b/?token=f15180ae2ec5c6cf2570c4fdaa1ebdcd45940b357d184dc3
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:41209/a%40b/?token=f15180ae2ec5c6cf2570c4fdaa1ebdcd45940b357d184dc3
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_installed_language_pa0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:41209/a%40b/?token=f15180ae2ec5c6cf2570c4fdaa1ebdcd45940b357d184dc3
    http://127.0.0.1:41209/a%40b/?token=f15180ae2ec5c6cf2570c4fdaa1ebdcd45940b357d184dc3
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f15180ae2ec5c6cf2570c4fdaa1ebdcd45940b357d184dc3'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_installed_package_locales ______________________

    def test_get_installed_package_locales():
        data, message = _get_installed_package_locales()
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:153: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.382 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:39763/a%40b/?token=da86e49abfb2433af6e2418af8a119786fac8dfcfb2e7761
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:39763/a%40b/?token=da86e49abfb2433af6e2418af8a119786fac8dfcfb2e7761
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_installed_package_loc0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:39763/a%40b/?token=da86e49abfb2433af6e2418af8a119786fac8dfcfb2e7761
    http://127.0.0.1:39763/a%40b/?token=da86e49abfb2433af6e2418af8a119786fac8dfcfb2e7761
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='da86e49abfb2433af6e2418af8a119786fac8dfcfb2e7761'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_installed_packages_locale ______________________

    def test_get_installed_packages_locale():
        data, message = get_installed_packages_locale("es_CO")
>       assert "jupyterlab_some_package" in data
E       AssertionError: assert 'jupyterlab_some_package' in {}

tests/test_translation_api.py:160: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.434 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:40363/a%40b/?token=bbd3f8652cc31d3d4de98dcbbca5d4fadbbfe10c10f6c2d5
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:40363/a%40b/?token=bbd3f8652cc31d3d4de98dcbbca5d4fadbbfe10c10f6c2d5
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_installed_packages_lo0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:40363/a%40b/?token=bbd3f8652cc31d3d4de98dcbbca5d4fadbbfe10c10f6c2d5
    http://127.0.0.1:40363/a%40b/?token=bbd3f8652cc31d3d4de98dcbbca5d4fadbbfe10c10f6c2d5
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='bbd3f8652cc31d3d4de98dcbbca5d4fadbbfe10c10f6c2d5'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________ test_get_language_packs ____________________________

    def test_get_language_packs():
        data, message = get_language_packs("en")
        assert "en" in data
>       assert "es_CO" in data
E       AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'nativeName': 'English'}}

tests/test_translation_api.py:168: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.533 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:44347/a%40b/?token=cd25b5b46694fe7aa531a72caea6b0bb9e2f0537d37a155a
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:44347/a%40b/?token=cd25b5b46694fe7aa531a72caea6b0bb9e2f0537d37a155a
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_language_packs0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:44347/a%40b/?token=cd25b5b46694fe7aa531a72caea6b0bb9e2f0537d37a155a
    http://127.0.0.1:44347/a%40b/?token=cd25b5b46694fe7aa531a72caea6b0bb9e2f0537d37a155a
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='cd25b5b46694fe7aa531a72caea6b0bb9e2f0537d37a155a'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________ test_get_language_pack ____________________________

    def test_get_language_pack():
        data, message = get_language_pack("es_CO")
>       assert "jupyterlab" in data
E       AssertionError: assert 'jupyterlab' in {}

tests/test_translation_api.py:174: AssertionError
---------------------------- Captured stderr setup -----------------------------
[D 2023-09-12 14:19:59.586 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/env/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:902 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2837 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/root_dir
INFO     ServerApp:serverapp.py:2837 Jupyter Server 2.7.3 is running at:
INFO     ServerApp:serverapp.py:2837 http://localhost:34925/a%40b/?token=c0a41f73842d0f36971a3ae50a27aad5cf2db26b52b91136
INFO     ServerApp:serverapp.py:2837     http://127.0.0.1:34925/a%40b/?token=c0a41f73842d0f36971a3ae50a27aad5cf2db26b52b91136
INFO     ServerApp:serverapp.py:2838 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2900

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-32/test_get_language_pack0/runtime/jpserver-3561026-open.html
Or copy and paste one of these URLs:
    http://localhost:34925/a%40b/?token=c0a41f73842d0f36971a3ae50a27aad5cf2db26b52b91136
    http://127.0.0.1:34925/a%40b/?token=c0a41f73842d0f36971a3ae50a27aad5cf2db26b52b91136
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c0a41f73842d0f36971a3ae50a27aad5cf2db26b52b91136'>}}
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2617 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
=============================== warnings summary ===============================
tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2415: ResourceWarning: unclosed <socket.socket fd=20, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
2.02s call     tests/test_process.py::test_process
1.09s call     tests/test_process.py::test_process_app
0.29s call     tests/test_settings_api.py::test_patch
0.19s call     tests/test_workspaces_api.py::test_get_non_existant
0.14s setup    tests/test_translation_api.py::test_get
0.11s call     tests/test_settings_api.py::test_listing
0.11s call     tests/test_settings_api.py::test_patch_unicode
0.11s setup    tests/test_labapp.py::test_lab_handler
0.10s call     tests/test_translation_api.py::test_get
0.09s teardown tests/test_translation_api.py::test_get_display_name_invalid
=========================== short test summary info ============================
FAILED tests/test_translation_api.py::test_get_locale - AssertionError: assert 'jupyterlab' in {}
FAILED tests/test_translation_api.py::test_backend_locale - AssertionError: assert 'MORE ABOUT PROJECT JUPYTER' == 'Más sobre el...yect...
FAILED tests/test_translation_api.py::test_backend_locale_extension - AssertionError: assert 'BOOM' == 'Foo bar 2'
FAILED tests/test_translation_api.py::test_get_installed_language_pack_locales_passes - AssertionError: assert 'es_CO' in {}
FAILED tests/test_translation_api.py::test_get_installed_package_locales - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_installed_packages_locale - AssertionError: assert 'jupyterlab_some_package' in {}
FAILED tests/test_translation_api.py::test_get_language_packs - AssertionError: assert 'es_CO' in {'en': {'displayName': 'English', 'native...
FAILED tests/test_translation_api.py::test_get_language_pack - AssertionError: assert 'jupyterlab' in {}
================== 8 failed, 137 passed, 1 warning in 11.60s ===================

@kloczek
Copy link
Author

kloczek commented Nov 6, 2023

Looks like jupyterlab_server needs update to move from jsonschema-spec to jsonschema-path.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.25.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.25.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.25.0
configfile: pyproject.toml
testpaths: tests/
plugins: anyio-4.0.0, requests-mock-1.11.0, console-scripts-1.4.1, timeout-2.2.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 145 items

tests/test_config.py ..                                                  [  1%]
tests/test_labapp.py ......                                              [  5%]
tests/test_licenses_api.py ............................................. [ 36%]
........................................                                 [ 64%]
tests/test_listings_api.py F.                                            [ 65%]
tests/test_process.py ....                                               [ 68%]
tests/test_settings_api.py FFFFF.FFFF....                                [ 77%]
tests/test_themes_api.py F.                                              [ 79%]
tests/test_translation_api.py FFFFF............                          [ 91%]
tests/test_translation_utils.py ....                                     [ 93%]
tests/test_workspaces_api.py FFFF....                                    [ 99%]
tests/test_workspaces_app.py .                                           [100%]

=================================== FAILURES ===================================
_______________________________ test_get_listing _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a9ebca0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439ab951f0>

    async def test_get_listing(jp_fetch, labserverapp):
        url = r"lab/api/listings/@jupyterlab/extensionmanager-extension/listings.json"
        r = await jp_fetch(*url.split("/"))
>       validate_request(r)

tests/test_listings_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:06.174 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:42429/a%40b/?token=d2c8cec101c3d50304b8cbe810089eec02715916e75e9fec
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:42429/a%40b/?token=d2c8cec101c3d50304b8cbe810089eec02715916e75e9fec
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_listing0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:42429/a%40b/?token=d2c8cec101c3d50304b8cbe810089eec02715916e75e9fec
    http://127.0.0.1:42429/a%40b/?token=d2c8cec101c3d50304b8cbe810089eec02715916e75e9fec
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='d2c8cec101c3d50304b8cbe810089eec02715916e75e9fec'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: c1bcd683f7ed48ed838bbe6c59e2122b
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/listings/%40jupyterlab/extensionmanager-extension/listings.json (c1bcd683f7ed48ed838bbe6c59e2122b@127.0.0.1) 1.88ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________ test_get_settings_overrides_dicts _______________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a8ba5e0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439aa67520>

    async def test_get_settings_overrides_dicts(jp_fetch, labserverapp):
        # Check that values that are dictionaries in overrides.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:09.507 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:32959/a%40b/?token=519d97b4b0fa41f689a0e0f3e32c47987be5645576d2333c
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:32959/a%40b/?token=519d97b4b0fa41f689a0e0f3e32c47987be5645576d2333c
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_di0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:32959/a%40b/?token=519d97b4b0fa41f689a0e0f3e32c47987be5645576d2333c
    http://127.0.0.1:32959/a%40b/?token=519d97b4b0fa41f689a0e0f3e32c47987be5645576d2333c
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='519d97b4b0fa41f689a0e0f3e32c47987be5645576d2333c'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________ test_get_settings_overrides_d_dicts[json] ___________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a8b5940>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a845490>
ext = 'json'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:09.622 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:44333/a%40b/?token=e75386dcf73cf88e2ffe4a36fead0ef0b2eca47efd468a97
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:44333/a%40b/?token=e75386dcf73cf88e2ffe4a36fead0ef0b2eca47efd468a97
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:44333/a%40b/?token=e75386dcf73cf88e2ffe4a36fead0ef0b2eca47efd468a97
    http://127.0.0.1:44333/a%40b/?token=e75386dcf73cf88e2ffe4a36fead0ef0b2eca47efd468a97
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='e75386dcf73cf88e2ffe4a36fead0ef0b2eca47efd468a97'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________ test_get_settings_overrides_d_dicts[json5] __________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a8b5700>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a7b3c10>
ext = 'json5'

    @pytest.mark.parametrize("ext", ["json", "json5"])
    async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
        # Check that values that are dictionaries in overrides.d/*.json are
        # merged with the schema.
        id = "@jupyterlab/apputils-extension:themes"
        overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
        overrides_d.mkdir(exist_ok=True, parents=True)
        for i in range(10):
            text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
            if ext == "json5":
                text += "\n// a comment"
            (overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:09.712 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:41989/a%40b/?token=89bc38b59118ee98497599626be65b485c2a1ee47bc42002
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:41989/a%40b/?token=89bc38b59118ee98497599626be65b485c2a1ee47bc42002
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_settings_overrides_d_1/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:41989/a%40b/?token=89bc38b59118ee98497599626be65b485c2a1ee47bc42002
    http://127.0.0.1:41989/a%40b/?token=89bc38b59118ee98497599626be65b485c2a1ee47bc42002
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='89bc38b59118ee98497599626be65b485c2a1ee47bc42002'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_get_settings _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a84b940>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a77b910>

    async def test_get_settings(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:09.837 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:32971/a%40b/?token=6aabaf792f981c39ef78f48f7978d339544598f1cbd755f3
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:32971/a%40b/?token=6aabaf792f981c39ef78f48f7978d339544598f1cbd755f3
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_settings0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:32971/a%40b/?token=6aabaf792f981c39ef78f48f7978d339544598f1cbd755f3
    http://127.0.0.1:32971/a%40b/?token=6aabaf792f981c39ef78f48f7978d339544598f1cbd755f3
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='6aabaf792f981c39ef78f48f7978d339544598f1cbd755f3'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_get_federated ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a7a0c10>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a6c0640>

    async def test_get_federated(jp_fetch, labserverapp):
        id = "@jupyterlab/apputils-extension-federated:themes"
        r = await jp_fetch("lab", "api", "settings", id)
>       validate_request(r)

tests/test_settings_api.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:09.925 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:42111/a%40b/?token=cded1cc300caf3303d057abadf50f443360592cec39790fe
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:42111/a%40b/?token=cded1cc300caf3303d057abadf50f443360592cec39790fe
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_federated0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:42111/a%40b/?token=cded1cc300caf3303d057abadf50f443360592cec39790fe
    http://127.0.0.1:42111/a%40b/?token=cded1cc300caf3303d057abadf50f443360592cec39790fe
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='cded1cc300caf3303d057abadf50f443360592cec39790fe'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_listing _________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a6b48b0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a8645b0>

    async def test_listing(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        versions = ["N/A", "N/A", "test-version"]
        r = await jp_fetch("lab", "api", "settings/")
>       validate_request(r)

tests/test_settings_api.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:10.091 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_listing0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:40785/a%40b/?token=2aff816a7e5cc362b406c664707aa7ee3953bcbd0cc6349e
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:40785/a%40b/?token=2aff816a7e5cc362b406c664707aa7ee3953bcbd0cc6349e
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_listing0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:40785/a%40b/?token=2aff816a7e5cc362b406c664707aa7ee3953bcbd0cc6349e
    http://127.0.0.1:40785/a%40b/?token=2aff816a7e5cc362b406c664707aa7ee3953bcbd0cc6349e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='2aff816a7e5cc362b406c664707aa7ee3953bcbd0cc6349e'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________ test_listing_ids _______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a8b5550>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a59a0a0>

    async def test_listing_ids(jp_fetch, labserverapp):
        ids = [
            "@jupyterlab/apputils-extension:themes",
            "@jupyterlab/apputils-extension-federated:themes",
            "@jupyterlab/codemirror-extension:commands",
            "@jupyterlab/codemirror-extension-federated:commands",
            "@jupyterlab/shortcuts-extension:plugin",
            "@jupyterlab/translation-extension:plugin",
            "@jupyterlab/unicode-extension:plugin",
        ]
        r = await jp_fetch("lab", "api", "settings/", params={"ids_only": "true"})
>       validate_request(r)

tests/test_settings_api.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:10.252 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:35565/a%40b/?token=f62859eb9a31df573a707d037d07d980edc078689f6eef52
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:35565/a%40b/?token=f62859eb9a31df573a707d037d07d980edc078689f6eef52
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_listing_ids0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:35565/a%40b/?token=f62859eb9a31df573a707d037d07d980edc078689f6eef52
    http://127.0.0.1:35565/a%40b/?token=f62859eb9a31df573a707d037d07d980edc078689f6eef52
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f62859eb9a31df573a707d037d07d980edc078689f6eef52'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________________ test_patch __________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a8baee0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439ab25040>

    async def test_patch(jp_fetch, labserverapp):
        id = "@jupyterlab/shortcuts-extension:plugin"

        r = await jp_fetch(
            "lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
        )
>       validate_request(r)

tests/test_settings_api.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:10.318 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_patch0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_patch0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_patch0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_patch0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:46665/a%40b/?token=7c9ab0dcc8d93ea1e30ff60acbccbaba2be7163c985c24df
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:46665/a%40b/?token=7c9ab0dcc8d93ea1e30ff60acbccbaba2be7163c985c24df
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_patch0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:46665/a%40b/?token=7c9ab0dcc8d93ea1e30ff60acbccbaba2be7163c985c24df
    http://127.0.0.1:46665/a%40b/?token=7c9ab0dcc8d93ea1e30ff60acbccbaba2be7163c985c24df
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='7c9ab0dcc8d93ea1e30ff60acbccbaba2be7163c985c24df'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
______________________________ test_patch_unicode ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a929b80>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a84fd30>

    async def test_patch_unicode(jp_fetch, labserverapp):
        id = "@jupyterlab/unicode-extension:plugin"
        settings = dict(comment=big_unicode_string[::-1])
        payload = dict(raw=json5.dumps(settings))

        r = await jp_fetch("lab", "api", "settings", id, method="PUT", body=json.dumps(payload))
>       validate_request(r)

tests/test_settings_api.py:194:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:10.397 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:43653/a%40b/?token=c474460825ad1dec524d085fdea107c2370ab3c896dbbbcf
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:43653/a%40b/?token=c474460825ad1dec524d085fdea107c2370ab3c896dbbbcf
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_patch_unicode0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:43653/a%40b/?token=c474460825ad1dec524d085fdea107c2370ab3c896dbbbcf
    http://127.0.0.1:43653/a%40b/?token=c474460825ad1dec524d085fdea107c2370ab3c896dbbbcf
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c474460825ad1dec524d085fdea107c2370ab3c896dbbbcf'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________________ test_get_theme ________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a929d30>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439aac8eb0>

    async def test_get_theme(jp_fetch, labserverapp):
        r = await jp_fetch("lab", "api", "themes", "@jupyterlab", "foo", "index.css")
>       validate_request(r)

tests/test_themes_api.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:10.677 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:38701/a%40b/?token=e1a9886f03ea0a5de7b5d7a0a56576e2dbb0e5dbf8648ee4
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:38701/a%40b/?token=e1a9886f03ea0a5de7b5d7a0a56576e2dbb0e5dbf8648ee4
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_theme0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:38701/a%40b/?token=e1a9886f03ea0a5de7b5d7a0a56576e2dbb0e5dbf8648ee4
    http://127.0.0.1:38701/a%40b/?token=e1a9886f03ea0a5de7b5d7a0a56576e2dbb0e5dbf8648ee4
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='e1a9886f03ea0a5de7b5d7a0a56576e2dbb0e5dbf8648ee4'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________ test_get ___________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a84baf0>

    async def test_get(jp_fetch):
        r = await jp_fetch("lab", "api", "translations/")
>       validate_request(r)

tests/test_translation_api.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stdout setup -----------------------------
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-some-package
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-some-package
  Building wheel for jupyterlab-some-package (setup.py): started
  Building wheel for jupyterlab-some-package (setup.py): finished with status 'done'
  Created wheel for jupyterlab-some-package: filename=jupyterlab_some_package-0.1.0-py3-none-any.whl size=2118 sha256=00ab745f53f7391cb76b35110df6d8842109404e2e44d6c121cae215cae566c4
  Stored in directory: /home/tkloczko/.cache/pip/wheels/10/8f/c5/b5f5995b5b241968c9be8a82ddd76503c5e9083d6cbce4022e
Successfully built jupyterlab-some-package
Installing collected packages: jupyterlab-some-package
Defaulting to user installation because normal site-packages is not writeable
Processing ./tests/translations/jupyterlab-language-pack-es_CO
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jupyterlab-language-pack-es-CO
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): started
  Building wheel for jupyterlab-language-pack-es-CO (setup.py): finished with status 'done'
  Created wheel for jupyterlab-language-pack-es-CO: filename=jupyterlab_language_pack_es_CO-0.1.0-py3-none-any.whl size=3780 sha256=f7a5c01d1d93f5c40b1f6efc2fcbf65846c42ae40234f24dc2379dd5da4f0626
  Stored in directory: /home/tkloczko/.cache/pip/wheels/b7/6a/ea/0ba0bca641f47e8fb63be9249b4913c2145ba7f25b2781492a
Successfully built jupyterlab-language-pack-es-CO
Installing collected packages: jupyterlab-language-pack-es-CO
---------------------------- Captured stderr setup -----------------------------
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_some_package'
Check the permissions.

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/tkloczko/.local/lib/python3.8/site-packages/jupyterlab_language_pack_es_CO'
Check the permissions.

[D 2023-11-06 13:36:15.404 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:33485/a%40b/?token=086a338d87b8b4b6b3b1fd983de25a63a501716f83b84bd8
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:33485/a%40b/?token=086a338d87b8b4b6b3b1fd983de25a63a501716f83b84bd8
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:33485/a%40b/?token=086a338d87b8b4b6b3b1fd983de25a63a501716f83b84bd8
    http://127.0.0.1:33485/a%40b/?token=086a338d87b8b4b6b3b1fd983de25a63a501716f83b84bd8
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='086a338d87b8b4b6b3b1fd983de25a63a501716f83b84bd8'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: f7dbb19a9c3646b38c66874d8453839c
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/ (f7dbb19a9c3646b38c66874d8453839c@127.0.0.1) 63.47ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_______________________________ test_get_locale ________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f4398115550>

    async def test_get_locale(jp_fetch):
        locale = "es_CO"
        r = await jp_fetch("lab", "api", "translations", locale)
>       validate_request(r)

tests/test_translation_api.py:92:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:15.558 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:40703/a%40b/?token=4b176732c9d5dbd7cfa61248aa9ce9f04ef215060e1a65a4
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:40703/a%40b/?token=4b176732c9d5dbd7cfa61248aa9ce9f04ef215060e1a65a4
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_locale0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:40703/a%40b/?token=4b176732c9d5dbd7cfa61248aa9ce9f04ef215060e1a65a4
    http://127.0.0.1:40703/a%40b/?token=4b176732c9d5dbd7cfa61248aa9ce9f04ef215060e1a65a4
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='4b176732c9d5dbd7cfa61248aa9ce9f04ef215060e1a65a4'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 3b54cacb08174b5386bbe7f45ff60748
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_CO (3b54cacb08174b5386bbe7f45ff60748@127.0.0.1) 33.75ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_____________________________ test_get_locale_bad ______________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f4398042940>

    async def test_get_locale_bad(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:15.665 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:41037/a%40b/?token=76dac3151cf4a567d9ab6f7e3b708d2391f16967438f0153
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:41037/a%40b/?token=76dac3151cf4a567d9ab6f7e3b708d2391f16967438f0153
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_locale_bad0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:41037/a%40b/?token=76dac3151cf4a567d9ab6f7e3b708d2391f16967438f0153
    http://127.0.0.1:41037/a%40b/?token=76dac3151cf4a567d9ab6f7e3b708d2391f16967438f0153
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='76dac3151cf4a567d9ab6f7e3b708d2391f16967438f0153'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: e18a9e2db3384d5d877c9027adac7d13
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (e18a9e2db3384d5d877c9027adac7d13@127.0.0.1) 31.77ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
________________________ test_get_locale_not_installed _________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f438bfd9c10>

    async def test_get_locale_not_installed(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "es_AR")
>       validate_request(r)

tests/test_translation_api.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:15.761 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:40733/a%40b/?token=5f954c8d4ec444147bb988da6951d76ae145c753f03933df
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:40733/a%40b/?token=5f954c8d4ec444147bb988da6951d76ae145c753f03933df
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_installed0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:40733/a%40b/?token=5f954c8d4ec444147bb988da6951d76ae145c753f03933df
    http://127.0.0.1:40733/a%40b/?token=5f954c8d4ec444147bb988da6951d76ae145c753f03933df
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='5f954c8d4ec444147bb988da6951d76ae145c753f03933df'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: d97d15d472b04aae95776cbb03be09c8
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/es_AR (d97d15d472b04aae95776cbb03be09c8@127.0.0.1) 31.90ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
__________________________ test_get_locale_not_valid ___________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439b1c5820>

    async def test_get_locale_not_valid(jp_fetch):
        r = await jp_fetch("lab", "api", "translations", "foo_BAR")
>       validate_request(r)

tests/test_translation_api.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:15.855 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:43141/a%40b/?token=652c9e5c1578ecb9f326bd928d34d0de7856c432bc1e44e7
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:43141/a%40b/?token=652c9e5c1578ecb9f326bd928d34d0de7856c432bc1e44e7
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_locale_not_valid0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:43141/a%40b/?token=652c9e5c1578ecb9f326bd928d34d0de7856c432bc1e44e7
    http://127.0.0.1:43141/a%40b/?token=652c9e5c1578ecb9f326bd928d34d0de7856c432bc1e44e7
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='652c9e5c1578ecb9f326bd928d34d0de7856c432bc1e44e7'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
DEBUG    ServerApp:identity.py:478 Generating new user for token-authenticated request: 6d391fecbe604cd08533dd529bfa790a
DEBUG    ServerApp:log.py:98 200 GET /a%40b/lab/api/translations/foo_BAR (6d391fecbe604cd08533dd529bfa790a@127.0.0.1) 30.99ms
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_delete __________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a929b80>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f439a8458b0>

    async def test_delete(jp_fetch, labserverapp):
        orig = "f/o/o"
        copy = "baz"
        r = await jp_fetch("lab", "api", "workspaces", orig)
>       validate_request(r)

tests/test_workspaces_api.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:17.676 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_delete0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_delete0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_delete0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_delete0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_delete0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:41731/a%40b/?token=c36e779a8cfd684287ec214faeae273bda9eeed97f9eca1c
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:41731/a%40b/?token=c36e779a8cfd684287ec214faeae273bda9eeed97f9eca1c
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_delete0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:41731/a%40b/?token=c36e779a8cfd684287ec214faeae273bda9eeed97f9eca1c
    http://127.0.0.1:41731/a%40b/?token=c36e779a8cfd684287ec214faeae273bda9eeed97f9eca1c
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='c36e779a8cfd684287ec214faeae273bda9eeed97f9eca1c'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
____________________________ test_get_non_existant _____________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f439a84b5e0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f438beaa1c0>

    async def test_get_non_existant(jp_fetch, labserverapp):
        id = "foo"

        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:17.746 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:37237/a%40b/?token=f89723f47c331ee2d3d0c63b37d43112df05200d41fd823e
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:37237/a%40b/?token=f89723f47c331ee2d3d0c63b37d43112df05200d41fd823e
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get_non_existant0/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:37237/a%40b/?token=f89723f47c331ee2d3d0c63b37d43112df05200d41fd823e
    http://127.0.0.1:37237/a%40b/?token=f89723f47c331ee2d3d0c63b37d43112df05200d41fd823e
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='f89723f47c331ee2d3d0c63b37d43112df05200d41fd823e'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
___________________________________ test_get ___________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f438bec1280>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f438be4f9d0>

    @pytest.mark.skipif(os.name == "nt", reason="Temporal failure on windows")
    async def test_get(jp_fetch, labserverapp):
        id = "foo"
        r = await jp_fetch("lab", "api", "workspaces", id)
>       validate_request(r)

tests/test_workspaces_api.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:17.808 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_get1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_get1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_get1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_get1/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:45055/a%40b/?token=73393c67757308835e4bf4562d0e3f6659dfbe5ee8fb18e9
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:45055/a%40b/?token=73393c67757308835e4bf4562d0e3f6659dfbe5ee8fb18e9
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_get1/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:45055/a%40b/?token=73393c67757308835e4bf4562d0e3f6659dfbe5ee8fb18e9
    http://127.0.0.1:45055/a%40b/?token=73393c67757308835e4bf4562d0e3f6659dfbe5ee8fb18e9
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='73393c67757308835e4bf4562d0e3f6659dfbe5ee8fb18e9'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
_________________________________ test_listing _________________________________

jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f438bf3f4c0>
labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f438bdd1a90>

    async def test_listing(jp_fetch, labserverapp):
        # ID fields are from workspaces/*.jupyterlab-workspace
        listing = {"foo", "f/o/o/"}
        r = await jp_fetch("lab", "api", "workspaces/")
>       validate_request(r)

tests/test_workspaces_api.py:113:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:146: in validate_request
    openapi_spec = get_openapi_spec()
jupyterlab_server/spec.py:20: in get_openapi_spec
    return Spec.from_dict(openapi_spec_dict)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = <class 'openapi_core.spec.paths.Spec'>
data = {'components': {'schemas': {'LicenseBundles': {'properties': {'bundles': {'additionalProperties': {...}, 'type': 'obje...: {'description': 'The setting has been updated'}}, 'summary': 'Override the settings data for a given schema'}}, ...}}
args = (), kwargs = {}

    @classmethod
    def from_dict(
        cls: Type[TSpec],
        data: Mapping[Hashable, Any],
        *args: Any,
        **kwargs: Any,
    ) -> TSpec:
>       warnings.warn(
            "Spec is deprecated. Use SchemaPath from jsonschema-path package.",
            DeprecationWarning,
        )
E       DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path package.

/usr/lib/python3.8/site-packages/openapi_core/spec/paths.py:24: DeprecationWarning
---------------------------- Captured stderr setup -----------------------------
[D 2023-11-06 13:36:17.881 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
------------------------------ Captured log setup ------------------------------
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:198 Searching ['/tmp/pytest-of-tkloczko/pytest-24/test_listing1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-24/test_listing1/etc/jupyter'] for config files
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/env/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG    ServerApp:application.py:908 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-24/test_listing1/config
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue {}>}}
INFO     ServerApp:serverapp.py:2852 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-24/test_listing1/root_dir
INFO     ServerApp:serverapp.py:2852 Jupyter Server 2.9.1 is running at:
INFO     ServerApp:serverapp.py:2852 http://localhost:41619/a%40b/?token=d9d89eba86e04f8e15d6b689a9e0ef9b12ea5b60ee6de692
INFO     ServerApp:serverapp.py:2852     http://127.0.0.1:41619/a%40b/?token=d9d89eba86e04f8e15d6b689a9e0ef9b12ea5b60ee6de692
INFO     ServerApp:serverapp.py:2853 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
CRITICAL ServerApp:serverapp.py:2915

To access the server, open this file in a browser:
    file:///tmp/pytest-of-tkloczko/pytest-24/test_listing1/runtime/jpserver-357656-open.html
Or copy and paste one of these URLs:
    http://localhost:41619/a%40b/?token=d9d89eba86e04f8e15d6b689a9e0ef9b12ea5b60ee6de692
    http://127.0.0.1:41619/a%40b/?token=d9d89eba86e04f8e15d6b689a9e0ef9b12ea5b60ee6de692
DEBUG    ServerApp:application.py:457 Config changed: {'ServerApp': {'jpserver_extensions': {'jupyter_server_terminals': True}}, 'NotebookNotary': {'db_file': ':memory:'}, 'IdentityProvider': {'token': <LazyConfigValue value='d9d89eba86e04f8e15d6b689a9e0ef9b12ea5b60ee6de692'>}}
------------------------------ Captured log call -------------------------------
DEBUG    ServerApp:identity.py:447 Accepting token-authenticated request from 127.0.0.1
---------------------------- Captured log teardown -----------------------------
INFO     ServerApp:serverapp.py:2635 Shutting down 1 extension
DEBUG    ServerApp:manager.py:369 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopping
DEBUG    ServerApp:manager.py:371 jupyter_server_terminals | extension app 'jupyter_server_terminals' stopped
=============================== warnings summary ===============================
tests/test_process.py::test_process_app
  /usr/lib/python3.8/site-packages/jupyter_server/serverapp.py:2433: ResourceWarning: unclosed <socket.socket fd=20, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 8888, 0, 0)>
    self._find_http_port()
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
4.72s setup    tests/test_translation_api.py::test_get
2.02s call     tests/test_process.py::test_process
1.08s call     tests/test_process.py::test_process_app
1.01s teardown tests/test_translation_api.py::test_get_display_name_invalid
0.11s setup    tests/test_labapp.py::test_lab_handler
0.08s setup    tests/test_translation_api.py::test_get_locale_not_valid
0.08s setup    tests/test_licenses_api.py::test_get_license_report[mime_format_parser2-False-@jupyterlab/.*-true-False]
0.08s call     tests/test_translation_api.py::test_get
0.08s setup    tests/test_settings_api.py::test_get_settings_overrides_dicts
0.07s setup    tests/test_licenses_api.py::test_get_license_report[mime_format_parser0-True-nothing-false-True]
=========================== short test summary info ============================
FAILED tests/test_listings_api.py::test_get_listing - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_get_settings_overrides_dicts - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json] - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5] - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_get_settings - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_get_federated - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_listing - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_listing_ids - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_patch - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_settings_api.py::test_patch_unicode - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_themes_api.py::test_get_theme - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_translation_api.py::test_get - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_translation_api.py::test_get_locale - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_translation_api.py::test_get_locale_bad - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_translation_api.py::test_get_locale_not_installed - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_translation_api.py::test_get_locale_not_valid - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_workspaces_api.py::test_delete - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_workspaces_api.py::test_get_non_existant - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_workspaces_api.py::test_get - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
FAILED tests/test_workspaces_api.py::test_listing - DeprecationWarning: Spec is deprecated. Use SchemaPath from jsonschema-path...
================== 20 failed, 125 passed, 1 warning in 16.56s ==================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants