Skip to content

Commit 7cbaad7

Browse files
committed
Move adjustments to PHOTO_DIR forward from settings_sqlitetest to settings_releastetest
- Legacy-Id: 19011
1 parent 76fb852 commit 7cbaad7

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

ietf/person/factories.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def default_photo(obj, create, extracted, **kwargs): # pylint: disable=no-self-a
9696
obj.photo_thumb = media_name
9797
photosrc = os.path.join(settings.TEST_DATA_DIR, "profile-default.jpg")
9898
photodst = os.path.join(settings.PHOTOS_DIR, photo_name + '.jpg')
99+
debug.show('photosrc')
100+
debug.show('photodst')
99101
if not os.path.exists(photodst):
100102
shutil.copy(photosrc, photodst)
101103
def delete_file(file):

ietf/settings_releasetest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,9 @@ def __getitem__(self, item):
3535
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started: # pyflakes:ignore
3636
TEST_CODE_COVERAGE_CHECKER.start() # pyflakes:ignore
3737

38+
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'test/media/') # pyflakes:ignore
39+
MEDIA_URL = '/test/media/'
40+
PHOTOS_DIR = MEDIA_ROOT + PHOTOS_DIRNAME # pyflakes:ignore
41+
3842
REQUEST_PROFILE_STORE_ANONYMOUS_SESSIONS = False
39-
43+

release-coverage.json.gz

92.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)