[sagenb] 132/157: Fix doctests
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:52:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit 45e855d481c03f2920674b21d9392f2180ac6ca6
Author: Karl-Dieter Crisman <kcrisman at gmail.com>
Date: Mon Oct 27 16:19:08 2014 -0400
Fix doctests
---
sagenb/notebook/notebook.py | 2 +-
sagenb/notebook/worksheet.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sagenb/notebook/notebook.py b/sagenb/notebook/notebook.py
index a1e441d..1061e28 100644
--- a/sagenb/notebook/notebook.py
+++ b/sagenb/notebook/notebook.py
@@ -1704,7 +1704,7 @@ class Notebook(object):
sage: nb.create_default_users('password')
sage: W = nb.create_new_worksheet('Test', 'admin')
sage: nb.html(W.filename(), 'admin')
- u'...Test...cell_input...plainclick...state_number...'
+ u'...Test...cell_input...if (e.shiftKey)...state_number...'
"""
if worksheet_filename is None or worksheet_filename == '':
worksheet_filename = None
diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
index 44cabb6..53048a1 100644
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -295,7 +295,7 @@ class Worksheet(object):
sage: import sagenb.notebook.worksheet
sage: W = sagenb.notebook.worksheet.Worksheet('test', 0, tmp_dir(), owner='sage')
sage: sorted((W.basic().items()))
- [('auto_publish', False), ('collaborators', []), ('id_number', 0), ('last_change', ('sage', ...)), ('name', u'test'), ('owner', 'sage'), ('pretty_print', False), ('published_id_number', None), ('ratings', []), ('saved_by_info', {}), ('system', None), ('tags', {'sage': [1]}), ('viewers', []), ('worksheet_that_was_published', ('sage', 0))]
+ [('auto_publish', False), ('collaborators', []), ('id_number', 0), ('last_change', ('sage', ...)), ('live_3D', False), ('name', u'test'), ('owner', 'sage'), ('pretty_print', False), ('published_id_number', None), ('ratings', []), ('saved_by_info', {}), ('system', None), ('tags', {'sage': [1]}), ('viewers', []), ('worksheet_that_was_published', ('sage', 0))]
"""
try:
published_id_number = int(os.path.split(self.__published_version)[1])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list