Use a relative path for the test image

It's part of the issue #20 (weird path on Windows). Django File class used
a full file path which resulted in path like C:\Example\pinry\static\C:\... which
is obviously invalid.
This commit is contained in:
Krzysztof Klimonda
2013-03-27 21:07:22 +01:00
parent 550c8a4312
commit e71452c68f

View File

@@ -11,7 +11,7 @@ from ..models import Pin, Image
from ...users.models import User from ...users.models import User
TEST_IMAGE_PATH = settings.SITE_ROOT + 'logo.png' TEST_IMAGE_PATH = 'logo.png'
class UserFactory(factory.Factory): class UserFactory(factory.Factory):