Skip to content

API: Photos Models tests #507

@deandrebaker

Description

@deandrebaker

We need to add tests for the following:

  • CustomManager.delete deletes all photos in self.get_queryset().
  • Photo.delete deletes the image from the file system.
  • Photo.delete does not throw an exception when there is no image.
  • Photo.save deletes the old image from the file system when being replaced with a new one (can be None).
  • Photo.save does not throw an exception when there is no old image.

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