Skip to content

Commit

Permalink
Merge pull request #103 from RRosio/ci/js_tests
Browse files Browse the repository at this point in the history
Fix part of the ```Linux JS Tests``` / Notebook and Base Test Failures in CI Job
  • Loading branch information
echarles authored May 24, 2022
2 parents 5328e00 + f6a14a4 commit 89b046a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nbclassic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
from ._version import __version__

# Packagers: modify this line if you store the notebook static files elsewhere
DEFAULT_STATIC_FILES_PATH = os.path.join(os.path.dirname(__file__), "static")

Expand Down
2 changes: 1 addition & 1 deletion nbclassic/tests/base/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
casper.notebook_test(function () {
var jsver = this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
cell.set_text('import notebook; print(notebook.__version__)');
cell.set_text('import nbclassic; print(nbclassic.__version__)');
cell.execute();
return IPython.version;
});
Expand Down
4 changes: 2 additions & 2 deletions nbclassic/tests/notebook/roundtrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ casper.notebook_test(function () {

this.then(function() {
clear_and_execute(this,
"from IPython.core.display import SVG; SVG(" + svg + ")");
"from IPython.display import SVG; SVG(" + svg + ")");
});

this.then(function ( ) {
Expand All @@ -216,7 +216,7 @@ casper.notebook_test(function () {

this.then(function() {
clear_and_execute(this,
"from IPython.core.display import SVG, display; display(SVG(" + svg + "))");
"from IPython.display import SVG, display; display(SVG(" + svg + "))");
});

this.then(function ( ) {
Expand Down

0 comments on commit 89b046a

Please sign in to comment.