Skip to content

Commit

Permalink
Update tests/model_fields/storage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <me@adamj.eu>
  • Loading branch information
john-parton and adamchainz committed Apr 29, 2024
1 parent d054096 commit cc9a5e9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/model_fields/storage.py
@@ -1,10 +1,6 @@
from django.core.files.storage.filesystem import FileSystemStorage


class NoReadException(Exception):
pass


class NoReadFileSystemStorage(FileSystemStorage):
def open(self, *args, **kwargs):
raise NoReadException("This storage class does not support reading.")
raise AssertionError("This storage class does not support reading.")

0 comments on commit cc9a5e9

Please sign in to comment.