Open
Description
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