tarmstrong / nbdiff

A diffing and merging tool for the IPython Notebook.
http://nbdiff.org
MIT License
212 stars 28 forks source link

test failing: test_process #230

Closed ketch closed 9 years ago

ketch commented 10 years ago

I am using IPython 2.1.0. I installed nbdiff from source and followed the instructions for running the tests. I got the following:

nosetests
.................................................................F......................
======================================================================
FAIL: test_process (tests.test_remote_server.ComparisonCommandTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ketch/nbdiff/tests/test_remote_server.py", line 127, in test_process
    assert response.status == "200 OK"
AssertionError:
-------------------- >> begin captured logging << --------------------
nbdiff.server.remote_server: ERROR: Exception on /Comparision/1 [GET]
Traceback (most recent call last):
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/ketch/nbdiff/nbdiff/server/remote_server.py", line 70, in redirectCommand
    return run_command(command, request)
  File "/Users/ketch/nbdiff/nbdiff/server/remote_server.py", line 50, in run_command
    return render_template('Error.html', err=errMsg)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/templating.py", line 128, in render_template
    context, ctx.app)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/flask/templating.py", line 110, in _render
    rv = template.render(context)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/IPython/html/templates/Error.html", line 1, in top-level template code
    {% extends "page.html" %}
  File "/Users/ketch/anaconda/lib/python2.7/site-packages/IPython/html/templates/page.html", line 8, in top-level template code
    <link rel="shortcut icon" type="image/x-icon" href="{{static_url("base/images/favicon.ico") }}">
UndefinedError: 'static_url' is undefined
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 88 tests in 2.737s
cel4 commented 9 years ago

This is the issue tackled in https://github.com/tarmstrong/nbdiff/issues/234. It should be fixed now.