tests: Update tests to use example profile picture.

So that we can stop using Tim's photo for tests, adds an open
license profile picture to use instead.

Updates tests that used `tim.png` to use the new example profile
picture, which is located in `static/images/test-images/avatars/`.
This commit is contained in:
Lauryn Menard
2022-10-28 11:35:46 +02:00
committed by Tim Abbott
parent 1eda42f509
commit 0c947985bd
4 changed files with 12 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ def generate_dev_ldap_dir(mode: str, num_users: int = 8) -> Dict[str, Dict[str,
ldap_data.append((name, email, phone_number, birthdate))
profile_images = []
for path in glob.glob(os.path.join(static_path("images/landing-page/team"), "*")):
for path in glob.glob(os.path.join(static_path("images/test-images/avatars"), "*")):
with open(path, "rb") as f:
profile_images.append(f.read())
ldap_dir = {}