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

tests are erroring in upstream master #1792

Open
ArcTanSusan opened this Issue Mar 28, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@ArcTanSusan
Contributor

ArcTanSusan commented Mar 28, 2016

======================================================================
ERROR: test_set_avatar (mysite.account.tests.EditPhoto)
Test if user avatar setting succeeds
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ArcTanSusan/oh-mainline/mysite/account/tests.py", line 347, in test_set_avatar
    self.assert_(p.photo.read() == open(image).read())
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/core/files/utils.py", line 16, in <lambda>
    read = property(lambda self: self.file.read)
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/db/models/fields/files.py", line 44, in _get_file
    self._require_file()
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/db/models/fields/files.py", line 41, in _require_file
    raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
ValueError: The 'photo' attribute has no file associated with it.

======================================================================
ERROR: test_set_avatar_too_wide (mysite.account.tests.EditPhoto)
Test if avatar is too wide for setting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ArcTanSusan/oh-mainline/mysite/account/tests.py", line 376, in test_set_avatar_too_wide
    image_as_stored = mysite.base.depends.Image.open(p.photo.file)
AttributeError: 'NoneType' object has no attribute 'open'

======================================================================
ERROR: test_set_avatar (mysite.account.tests.EditPhotoWithExistingPerson)
Test if setting avatar succeeds
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/ArcTanSusan/oh-mainline/mysite/account/tests.py", line 428, in test_set_avatar
    self.assert_(p.photo.read() == open(image).read())
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/core/files/utils.py", line 16, in <lambda>
    read = property(lambda self: self.file.read)
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/db/models/fields/files.py", line 44, in _get_file
    self._require_file()
  File "/Users/ArcTanSusan/oh-mainline/vendor/packages/Django/django/db/models/fields/files.py", line 41, in _require_file
    raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
ValueError: The 'photo' attribute has no file associated with it.

----------------------------------------------------------------------
Ran 375 tests in 43.909s

FAILED (errors=3, skipped=49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment