Tuesday, June 28, 2016

Re: Django tests failing for development env

If you're running the tests at the checkout point mentioned in the tutorial note, "If you're using Python 3.5+, there will be a couple failures related to deprecation warnings that you can ignore. These failures have since been fixed in Django."

On Tuesday, June 28, 2016 at 7:49:43 PM UTC-4, premdjango wrote:
I want to contribute to Django community, so I was trying to setup my env using the following doc - 



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/5c707d7e-a08a-403f-acf2-df37f6288ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment