Skip to content

API: Users Models tests #508

@deandrebaker

Description

@deandrebaker

We need to add tests for the following:

  • CustomUserManager.create_user returns a user if the user's email ends with uwaterloo.ca or the email is teamumigrate@gmail.com, or raises an error otherwise.
  • CustomUser.delete deletes the profile_photo and/or background_photo from the file system.
  • Photo.delete does not throw an exception when there are no profile_photo and/or background_photo.
  • Photo.save deletes the old profile_photo and/or background_photo from the file system when being replaced with new ones (can be None).
  • Photo.save does not throw an exception when there are no old profile_photo and/or background_photo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mediumMedium difficulty level

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions