Steven Silvester
44c7f1260b
clean up link checking ( #6130 )
5 years ago
Karolina Surma
0723596c54
Rename StopTestApp -> StopAppTest to reflect the original class better.
5 years ago
Karolina Surma
34b4f7ed6d
Fix skipped tests & remove deprecation warnings
5 years ago
Kevin Bates
8cd9a5f78a
Merge pull request #5957 from afshin/contents-manager
...
Allow jupyter_server-based contents managers in notebook
5 years ago
Kevin Bates
3e69164479
Update GatewayKernelManager to derive from AsyncMappingKernelManager
5 years ago
Afshin T. Darian
3865b7f2e5
Allow jupyter_server-based contents managers in notebook
5 years ago
Kevin Bates
364ac5257d
Replace Travis and Appveyor with Github Actions
5 years ago
Kevin Bates
8d0af52125
Adjust skip decorators to avoid remaining dependency on nose ( #5932 )
5 years ago
Min RK
f716328d90
relax busy/idle ordering on reconnect
...
nudge can leak idle messages, so it could be busy->idle, or idle->busy->idle.
The important thing is that we get at least one idle message
5 years ago
Min RK
1abd95130c
Validate redirect target in TrailingSlashHandler
...
Fixes open redirect vulnerability GHSA-c7vm-f5p4-8fqh
5 years ago
pgajdos
30a716fb85
remove redundant print statements
5 years ago
pgajdos
1c3dbcc6bf
do not use nose for testing
5 years ago
Kevin Bates
1550410229
Merge pull request #5799 from mriedem/5798-json-logging
...
Add support for JSON formatted logs
5 years ago
Kevin Bates
545dbab070
Merge pull request #5807 from rahulporuri/cln/remove-dead-code
...
Remove code for unsupported python versions
5 years ago
Kevin Bates
18e4834b12
Merge pull request #5806 from rahulporuri/cln/update-super-usage
...
Update super usage
5 years ago
Matt Riedemann
67ad5a1c06
Merge remote-tracking branch 'origin/master' into 5798-json-logging
5 years ago
Kevin Bates
158cc007e8
Merge pull request #5805 from rahulporuri/cln/remove-unnecessary-future-imports
...
Remove unnecessary future imports
5 years ago
Matt Riedemann
6a883e0a1c
Fix NotebookAppJSONLoggingTests.test_log_json_enabled
...
The intent of the test is to make sure that log_json defaults
to True when JUPYTER_ENABLE_JSON_LOGGING is set to "true" so
this makes the test more explicit and to pass when json-logging
is not installed so that does not interfere due to validation.
5 years ago
Matt Riedemann
4ee4bb24f9
Use unittest assertion methods for improved logging
5 years ago
Matt Riedemann
08f8ccd1f8
Add log_json=True test for log_request
...
Basic test just to make sure log_request handles log_json=True
properly.
5 years ago
Matt Riedemann
093aee290f
Add some basic tests for log_json config
...
Make sure the default value is handled properly based
on environment variables. Also checks the validation
code based on whether or not json_logging is imported.
5 years ago
Sai Rahul Poruri
2641b64ada
CLN : Remove code for unsupported python versions
...
specifically, code which was handling python 2.x and < 3.4
modified: notebook/base/zmqhandlers.py
modified: notebook/services/contents/tests/test_manager.py
modified: notebook/tests/test_serverextensions.py
5 years ago
Sai Rahul Poruri
667e0d7519
CLN : Remove unnecessary future imports
...
specifically print_function and absolute_import future imports
5 years ago
Sai Rahul Poruri
84df5297d5
CLN : Update super usage
...
This commit updates the super usage. Because Python 2 is not supported
anymore, super usage can be updated such that super is called without
any arguments in the default case where super is called with the class
name and self.
Note that all usage of super has not been updated - a few cases which
smelled funny have been ignored.
5 years ago
Sai Rahul Poruri
9dd2af27de
CLN : Remove utf8 coding cookies
...
On Python 3, the default source file encoding for Python files is utf-8
and because Python 2 is no longer supported, the utf8 coding cookies can
be removed
5 years ago
Kevin Bates
2ba296039a
Merge pull request #5488 from toonijn/refactor-markdown
...
Refactor code duplication of markdown renderers
5 years ago
Tomas Hrnciar
63ee7ac809
Move requests_unixsocket import outside of fetch_url()
5 years ago
Kevin Bates
73e6c27369
Prevent inclusion of requests_unixsocket on Windows ( #5650 )
...
* Prevent inclusion of requests_unixsocket on Windows
* lazily import
Co-authored-by: Steven Silvester <stslve@amazon.com>
6 years ago
Toon Baeyens
a4ac2750b1
fix test
6 years ago
Ram Rachum
7d375282a9
Fix exception causes all over the codebase
6 years ago
mattn
dbfa82c3e7
Add japanese translation files ( #4490 )
...
* Add japanese translation
* Add translations
* rename
* Add fallback to match Accept-Language to the UNIX locale.
* Fix supported_languages
* Do not add if exists
* Do not add en
* Fix translation
* Add translation
* Fix typo
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbui.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/nbjs.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Update notebook/i18n/ja_JP/LC_MESSAGES/notebook.po
Co-Authored-By: mattn <mattn.jp@gmail.com>
* Fixes some pointed by review
* Add translation
Co-authored-by: Kenichi Ito <ken.i54k@gmail.com>
6 years ago
John
de2f3f724d
remove old JS markdown tests, add a new one in selenium ( #5497 )
...
* remove old JS tests, which are already converted to pytest
add test for a markdown heading
* Update markdown.js
remove old test [skip ci]
* remove debug statement
[skip ci]
6 years ago
Toon Baeyens
b278fa67de
Make a notebook writable after successful save-as ( #5296 )
...
* add failing test for readonly notebook
* test typing after save-as
* make notebook writable after save-as
fixes #1324
* fix failing test in travis
6 years ago
dSchurch
f42f2408b0
Migrate Move multiselection test to selenium ( #5158 )
...
* converted move multiselection to selenium test
* deleted the time library
* Remove move_multiselection
Co-authored-by: Diego Schurch <dschurch@NSL-DSCHURCHs-MacBook-Pro.local>
6 years ago
Niko Felger
d84faae6a8
Convert notifications JS test to selenium ( #5455 )
...
* Add selenium test helper to wait for JS expressions
* Convert notifications JS test to selenium (#3335 )
6 years ago
Kris Wilson
5aa6e0dfd5
Feedback: add socket usage check on bind and test.
6 years ago
Kris Wilson
02cd1fa8a0
Traitlets type handling fixup.
6 years ago
Kris Wilson
1af8283afa
Feedback: validate sock-mode.
6 years ago
Kris Wilson
1a5eed8678
Make integration test conditional for CI compatibility.
6 years ago
Kris Wilson
3e28cfd603
Feedback: improve test coverage.
6 years ago
Kris Wilson
8d9b8c6f06
Cleanup.
6 years ago
Kris Wilson
4af22581fc
Feedback: repair stop command port targeting.
6 years ago
Kris Wilson
b9567512f8
Fixup tests.
6 years ago
Kris Wilson
20b5cb8e4d
Fixup.
6 years ago
Kris Wilson
a9ed339d58
Add UNIX socket support to notebook server.
6 years ago
Kevin Bates
7de8df4dd8
Gateway only: Ensure launch and request timeouts are in sync ( #5317 )
...
Prior to this change, the request timeout for a Gateway request
was synchronized with KERNEL_LAUNCH_TIMEOUT only if KLT
was greater. However, the two are closely associated and KLT
should be adjusted if the configurable request_timeout is greater.
This change ensures that the two values are synchronized to the
greater value. It changes the two configurable timeouts to default
to 40 (to match that of KLT) and removes the 2-second pad,
since that wasn't helpful and only confused the situation.
These changes were prompted by this issue: jupyter/enterprise_gateway#792
6 years ago
Karthikeyan Singaravelan
c01b2cc014
Remove deprecated encoding parameter for Python 3.9 compatibility.
6 years ago
Thomas Kluyver
d6259ae285
Don't monkeypatch environment data locations for test notebook server
6 years ago
Thomas Kluyver
b67164033e
Merge pull request #5043 from takluyver/selenium-prefill
...
Selenium test fixture to open a notebook with prefilled content
6 years ago
Thomas Kluyver
fd4275cdf6
Merge branch 'master' into master
6 years ago