diff options
| author | Armin Ronacher <armin.ronacher@active-4.com> | 2015-10-04 17:40:12 +0200 |
|---|---|---|
| committer | Armin Ronacher <armin.ronacher@active-4.com> | 2015-10-04 17:40:12 +0200 |
| commit | bcc0e293c8e88915967ac29e96ece21e254c0901 (patch) | |
| tree | 2062ad2568bd8d53c7a4c4c0f477caf276e56d29 | |
| parent | 34de6bc16ca6777e98b263df8aa8292dfb4b40ab (diff) | |
| download | werkzeug-feature/slim-debugger.tar.gz | |
Fixed test regressions from debugger changes.feature/slim-debugger
| -rw-r--r-- | tests/test_utils.py | 7 | ||||
| -rw-r--r-- | tests/test_wsgi.py | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index add8aa40..4b106101 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -200,10 +200,11 @@ def test_import_string_attribute_error(tmpdir, monkeypatch): def test_find_modules(): - assert list(utils.find_modules('werkzeug.debug')) == [ + assert set(utils.find_modules('werkzeug.debug')) == set([ 'werkzeug.debug.console', 'werkzeug.debug.repr', - 'werkzeug.debug.tbtools' - ] + 'werkzeug.debug.tbtools', 'werkzeug.debug._jquery', + 'werkzeug.debug._resources', + ]) def test_html_builder(): diff --git a/tests/test_wsgi.py b/tests/test_wsgi.py index 8f7540d8..2ec6e885 100644 --- a/tests/test_wsgi.py +++ b/tests/test_wsgi.py @@ -40,7 +40,7 @@ def test_shared_data_middleware(tmpdir): app = wsgi.SharedDataMiddleware(null_application, { '/': path.join(path.dirname(__file__), 'res'), '/sources': path.join(path.dirname(__file__), 'res'), - '/pkg': ('werkzeug.debug', 'shared'), + '/pkg': ('werkzeug', 'debug'), '/foo': test_dir }) @@ -52,10 +52,10 @@ def test_shared_data_middleware(tmpdir): assert data == b'FOUND' app_iter, status, headers = run_wsgi_app( - app, create_environ('/pkg/debugger.js')) + app, create_environ('/pkg/__init__.py')) with closing(app_iter) as app_iter: contents = b''.join(app_iter) - assert b'$(function() {' in contents + assert b'werkzeug.debug' in contents app_iter, status, headers = run_wsgi_app( app, create_environ('/missing')) |
