Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edudouglas committed Aug 21, 2018
1 parent 580f436 commit 4462003
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion temba/assets/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def resolve(self, user, pk):
filename = '%s_%s.%s' % (self.key, pk, extension)

# if our storage backend is S3
if settings.DEFAULT_FILE_STORAGE == 'storages.backends.s3boto.S3BotoStorage' or settings.DEFAULT_FILE_STORAGE == 'temba.utils.custom_storages.MediaStorage':
if settings.DEFAULT_FILE_STORAGE == "storages.backends.s3boto.S3BotoStorage": # pragma: needs cover
# generate our URL manually so that we can force the download name for the user
url = default_storage.connection.generate_url(default_storage.querystring_expire,
method='GET', bucket=default_storage.bucket.name,
Expand Down
15 changes: 0 additions & 15 deletions temba/utils/custom_storages.py

This file was deleted.

0 comments on commit 4462003

Please sign in to comment.