Move adjustments to PHOTO_DIR forward from settings_sqlitetest to settings_releastetest
- Legacy-Id: 19011
This commit is contained in:
parent
76fb8528ea
commit
7cbaad721a
|
@ -96,6 +96,8 @@ class PersonFactory(factory.DjangoModelFactory):
|
|||
obj.photo_thumb = media_name
|
||||
photosrc = os.path.join(settings.TEST_DATA_DIR, "profile-default.jpg")
|
||||
photodst = os.path.join(settings.PHOTOS_DIR, photo_name + '.jpg')
|
||||
debug.show('photosrc')
|
||||
debug.show('photodst')
|
||||
if not os.path.exists(photodst):
|
||||
shutil.copy(photosrc, photodst)
|
||||
def delete_file(file):
|
||||
|
|
|
@ -35,5 +35,9 @@ DATABASES = {
|
|||
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started: # pyflakes:ignore
|
||||
TEST_CODE_COVERAGE_CHECKER.start() # pyflakes:ignore
|
||||
|
||||
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'test/media/') # pyflakes:ignore
|
||||
MEDIA_URL = '/test/media/'
|
||||
PHOTOS_DIR = MEDIA_ROOT + PHOTOS_DIRNAME # pyflakes:ignore
|
||||
|
||||
REQUEST_PROFILE_STORE_ANONYMOUS_SESSIONS = False
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue