You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================================
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)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: