Skip to content

Instantly share code, notes, and snippets.

@julienr
Last active March 14, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julienr/1f7c3a953c5a418d7a95 to your computer and use it in GitHub Desktop.
Save julienr/1f7c3a953c5a418d7a95 to your computer and use it in GitHub Desktop.
Ipython notebook save.js test output
# This is running with python -m notebook.jstest notebook/save.js
Test group: notebook/save.js
Test file: notebook/tests/notebook/save.js 
step complete undefined
step complete undefined
remote message caught: Object {
"readyState": 4,
"responseText": "{\"reason\": null, \"message\": \"No such file or directory: has#hash and space and unic\\u00f8\\u2202e.ipynb\"}",
"responseJSON":
"reason": null,
"message": "No such file or directory: has#hash and space and unicø∂e.ipynb"
"status": 404,
"statusText": "Not Found"
}
remote message caught: API request failed (404): No such file or directory: has#hash and space and unicø∂e.ipynb
step complete undefined
PASS Save did not fail
PASS Save OK
PASS Save with complicated name
PASS path OK
step complete undefined
step complete undefined
step complete undefined
PASS checkpoints OK
step complete undefined
step complete undefined
step complete undefined
step complete undefined
step complete undefined
step complete undefined
PASS 5 tests executed in 4.817s, 5 passed, 0 failed, 0 dubious, 0 skipped. 
Running tests with notebook directory '/var/folders/x3/5y72x0994c7b32kr_kj8yg6w0000gn/T/tmpdhR65D'
______________________________________________________________________
Test suite completed for system with the following information:
Python version: 2.7.11 |Continuum Analytics, Inc.| (default, Dec 6 2015, 18:57:58) [GCC 4.2.1 (Apple Inc. build 5577)]
sys.executable: /Users/julien/anaconda/envs/jupydev/bin/python
Platform : Darwin-13.4.0-x86_64-i386-64bit
Tools and libraries available at test time:
casperjs phantomjs
Tools and libraries NOT available at test time:
slimerjs
Status: OK (1 test groups). Took 8.123s.
# This is running with python -m notebook.jstest notebook/save.js --url=http://localhost:8889
Test group: notebook/save.js
Test file: notebook/tests/notebook/save.js 
Timeout for http://localhost:8889
Is the notebook server running?
FAIL "function () {
// Return whether or not the kernel is running.
return this.evaluate(function() {
return IPython &&
IPython.notebook &&
IPython.notebook.kernel &&
IPython.notebook.kernel.is_connected();
});
}" did not evaluate to something truthy in 10000ms
# type: uncaughtError
# file: notebook/tests/notebook/save.js
# error: "function () {
// Return whether or not the kernel is running.
return this.evaluate(function() {
return IPython &&
IPython.notebook &&
IPython.notebook.kernel &&
IPython.notebook.kernel.is_connected();
});
}" did not evaluate to something truthy in 10000ms

# stack: not provided
Captured console.log:
Error adding link: TypeError: 'undefined' is not a function (evaluating 'model.mimetype.endsWith('javascript')')
Error adding link: TypeError: 'undefined' is not a function (evaluating 'model.mimetype.endsWith('javascript')')
Error adding link: TypeError: 'undefined' is not a function (evaluating 'model.mimetype.endsWith('javascript')')
Error adding link: TypeError: 'undefined' is not a function (evaluating 'model.mimetype.endsWith('javascript')')
Error adding link: TypeError: 'undefined' is not a function (evaluating 'model.mimetype.endsWith('javascript')')
Default extension for cell metadata editing loaded.
Raw Cell Format toolbar preset loaded.
Slideshow extension for metadata editing loaded.
Attachments editing toolbar loaded.
actions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later...
Session: kernel_created (3b6b8ded-3f3d-4a17-9399-2792a725d588)
Starting WebSockets: ws://localhost:8889/api/kernels/a1952e76-05d5-449e-8aed-f079efe3d226
Unexpected response code: 426
Importing jquery and associated libraries, such as bootstrap, is deprecated. This functionality will be remove in the notebook 6.0 in favor of a fully loaded jQuery global
Direct module require deprecated. Instead of using `define(['base/js/namespace'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['base/js/namespace']});`
Direct module require deprecated. Instead of using `define(['base/js/events'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['base/js/events']});`
Direct module require deprecated. Instead of using `define(['base/js/utils'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['base/js/utils']});`
Direct module require deprecated. Instead of using `define(['services/kernels/comm'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['services/kernels/comm']});`
Direct module require deprecated. Instead of using `define(['notebook/js/outputarea'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['notebook/js/outputarea']});`
Direct module require deprecated. Instead of using `define(['base/js/keyboard'], function(module) {});`, use `define(['notebook'], function(notebookApp) { var module = notebookApp['base/js/keyboard']});`
Kernel: kernel_disconnected (a1952e76-05d5-449e-8aed-f079efe3d226)
Connection lost, reconnecting in 1 seconds.
Kernel: kernel_reconnecting (a1952e76-05d5-449e-8aed-f079efe3d226)
Starting WebSockets: ws://localhost:8889/api/kernels/a1952e76-05d5-449e-8aed-f079efe3d226
Unexpected response code: 426
Kernel: kernel_disconnected (a1952e76-05d5-449e-8aed-f079efe3d226)
Connection lost, reconnecting in 2 seconds.
Kernel: kernel_reconnecting (a1952e76-05d5-449e-8aed-f079efe3d226)
Starting WebSockets: ws://localhost:8889/api/kernels/a1952e76-05d5-449e-8aed-f079efe3d226
Unexpected response code: 426
Kernel: kernel_disconnected (a1952e76-05d5-449e-8aed-f079efe3d226)
Connection lost, reconnecting in 4 seconds.
Kernel: kernel_reconnecting (a1952e76-05d5-449e-8aed-f079efe3d226)
Starting WebSockets: ws://localhost:8889/api/kernels/a1952e76-05d5-449e-8aed-f079efe3d226
Unexpected response code: 426
Kernel: kernel_disconnected (a1952e76-05d5-449e-8aed-f079efe3d226)
Connection lost, reconnecting in 8 seconds.
FAIL 1 test executed in 12.419s, 0 passed, 1 failed, 0 dubious, 0 skipped. 

Details for the 1 failed test:

In notebook/tests/notebook/save.js
 Untitled suite in notebook/tests/notebook/save.js
 uncaughtError: "function () {
// Return whether or not the kernel is running.
return this.evaluate(function() {
return IPython &&
IPython.notebook &&
IPython.notebook.kernel &&
IPython.notebook.kernel.is_connected();
});
}" did not evaluate to something truthy in 10000ms
Running tests with notebook directory '/var/folders/x3/5y72x0994c7b32kr_kj8yg6w0000gn/T/tmpvy5pvK'
______________________________________________________________________
Test suite completed for system with the following information:
Python version: 2.7.11 |Continuum Analytics, Inc.| (default, Dec 6 2015, 18:57:58) [GCC 4.2.1 (Apple Inc. build 5577)]
sys.executable: /Users/julien/anaconda/envs/jupydev/bin/python
Platform : Darwin-13.4.0-x86_64-i386-64bit
Tools and libraries available at test time:
casperjs phantomjs
Tools and libraries NOT available at test time:
slimerjs
Status: ERROR - 1 out of 1 test groups failed (notebook/save.js). Took 14.040s.
You may wish to rerun these, with:
python -m notebook.jstest notebook/save.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment