Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing unit tests #16

Closed
johnwoltman opened this issue Apr 18, 2013 · 4 comments
Closed

Failing unit tests #16

johnwoltman opened this issue Apr 18, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@johnwoltman
Copy link

When I use django's ./manage test, there are many failed unit tests coming from django.js. I'm using Django 1.4.5 with psycopg2. Here is a typical example:

Failure
Traceback (most recent call last):
File "/home/woltman/projects/ve/compass/lib/python2.7/site-packages/django      /test/utils.py", line 211, in inner
    return test_func(*args, **kwargs)
File "/home/woltman/projects/ve/compass/lib/python2.7/site-packages/djangojs/tests/test_urls.py", line 134, in test_urls_namespaces_whitelist
self.assertIn('ns1:fake', self.result)
AssertionError: 'ns1:fake' not found in {u'grp_doc_filter': u'/grappelli/grp-doc/filter/', u'grp_doc_mueller_grid_system_layouts': u'/grappelli/grp-doc/mueller-grid-system-layouts/', u'grp_doc_groups': u'/grappelli/grp-doc/groups/', u'grp_doc_basic_page_structure': u'/grappelli/grp-doc/basic-page-structure/', u'grp_doc_modules': u'/grappelli/grp-doc/modules/', u'js_catalog': u'/djangojs/translation', u'grp_m2m_lookup': u'/grappelli/lookup/m2m/', u'selectable-lookup': u'/selectable/<lookup_name>/', u'grp_doc_admin_index': u'/grappelli/grp-doc/admin-index/', u'grp_doc_submit_rows': u'/grappelli/grp-doc/submit-rows/', u'grp_related_lookup': u'/grappelli/lookup/related/', u'grp_doc_errors': u'/grappelli/grp-doc/errors/', u'grp_autocomplete_lookup': u'/grappelli/lookup/autocomplete/', u'grp_doc_change_list': u'/grappelli/grp-doc/change-list/', u'grp_doc_navigation': u'/grappelli/grp-doc/navigation/', u'grp_doc_pagination': u'/grappelli/grp-doc/pagination/', u'django_js_urls': u'/djangojs/urls', u'grp_doc_mueller_grid_system_tests': u'/grappelli/grp-doc/mueller-grid-system-tests/', u'grp_doc_change_form': u'/grappelli/grp-doc/change-form/', u'grp_doc_mueller_grid_system': u'/grappelli/grp-doc/mueller-grid-system/', u'grp_doc_context_navigation': u'/grappelli/grp-doc/context-navigation/', u'grp_doc_form_fields': u'/grappelli/grp-doc/form-fields/', u'grp_doc_object_tools': u'/grappelli/grp-doc/object-tools/', u'grp_doc_tables': u'/grappelli/grp-doc/tables/', u'django_js_context': u'/djangojs/context', u'grp_doc': u'/grappelli/grp-doc', u'grp_doc_tools': u'/grappelli/grp-doc/tools/', u'grp_doc_fieldsets': u'/grappelli/grp-doc/fieldsets/', u'grp_doc_date_hierarchy': u'/grappelli/grp-doc/date-hierarchy/', u'django_js_init': u'/djangojs/init.js', u'grp_doc_search_form': u'/grappelli/grp-doc/search-form/'}

What should I do to get these tests passing?

@noirbizarre
Copy link
Owner

Are you running the tests from you project or the django.js repository ?

I can see on the AssertionError line that the URLs are not the Django.js tests URLs.

@johnwoltman
Copy link
Author

My project. I'm wondering what is going on in the tests that cause them to fail when the Grappelli admin app is loaded. When I update 3rd party Django apps like Grappelli I run ./manage test to make sure everything is still working. I recently added DjangoJS to my project and now the tests fail.

@noirbizarre
Copy link
Owner

I can reproduce it.

I will try to fix it ASAP.

@noirbizarre
Copy link
Owner

Fixed by b80491c, 3dc749d and acc00ee

Will be released in 0.7.2

@ghost ghost assigned noirbizarre Apr 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants