Tuesday, June 28, 2016

Django tests failing for development env

I want to contribute to Django community, so I was trying to setup my env using the following doc - 

https://docs.djangoproject.com/en/dev/intro/contributing/


I ran the tests and get the following output - 

======================================================================

FAIL: test_old_style_storage (file_storage.tests.FileFieldStorageTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/file_storage/tests.py", line 566, in test_old_style_storage

    self.assertEqual(len(warns), 2)

AssertionError: 4 != 2


======================================================================

FAIL: test_migrate_legacy_router (multiple_database.tests.RouterTestCase)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/multiple_database/tests.py", line 954, in test_migrate_legacy_router

    self.assertEqual(recorded, [])

AssertionError: Lists differ: [<warnings.WarningMessage object at 0x1130bdda0>] != []


First list contains 1 additional elements.

First extra element 0:

{message : DeprecationWarning('inspect.getargspec() is deprecated, use inspect.signature() instead',), category : 'DeprecationWarning', filename : '/Users/premDocuments/django-contribute/django/django/db/utils.py', lineno : 293, line : None}


- [<warnings.WarningMessage object at 0x1130bdda0>]

+ []


======================================================================

FAIL: test_if_tag_eq_deprecated (template_tests.syntax_tests.test_if.IfTagTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/django/test/utils.py", line 182, in inner

    return test_func(*args, **kwargs)

  File "/Users/prem/Documents/django-contribute/django/tests/template_tests/utils.py", line 62, in inner

    func(self)

  File "/Users/prem/Documents/django-contribute/django/tests/template_tests/syntax_tests/test_if.py", line 537, in test_if_tag_eq_deprecated

    self.assertEqual(len(warns), 1)

AssertionError: 3 != 1


======================================================================

FAIL: test_only_new_files (utils_tests.test_autoreload.TestFilenameGenerator)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/utils_tests/test_autoreload.py", line 87, in test_only_new_files

    self.assertEqual(len(filenames2), 1)

AssertionError: 0 != 1


----------------------------------------------------------------------

Ran 9637 tests in 202.521s


FAILED (failures=4, skipped=856, expected failures=6)

Destroying test database for alias 'default'...

Destroying test database for alias 'other'.



Not sure, if the errors are valid or not. One thing I see is expected failures =6



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/340a2acb-6459-4f1e-9b25-0d3a4d8a5b3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment