Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
Fix import sort order in setup.py and t.py
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang committed Apr 3, 2015
1 parent b1b4d22 commit 069a586
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup, find_packages
from setuptools import find_packages, setup


def _read_long_description():
Expand Down
2 changes: 1 addition & 1 deletion t.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from tests import data
import thumbnails
from tests import data
from thumbnails.conf import settings

URL = 'https://unsplash.imgix.net/photo-1422405153578-4bd676b19036?q=75&fm=jpg&' \
Expand Down
3 changes: 2 additions & 1 deletion tests/test_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_get_thumbnail(self, mock_create, mock_cleanup):
self.assertTrue(mock_create.called)
self.assertTrue(mock_cleanup.called)

@mock.patch('thumbnails.engines.base.BaseThumbnailEngine.create', side_effect=ThumbnailError(''))
@mock.patch('thumbnails.engines.base.BaseThumbnailEngine.create',
side_effect=ThumbnailError(''))
@mock.patch('thumbnails.engines.base.BaseThumbnailEngine.cleanup')
def test_get_thumbnail_fail(self, mock_create, mock_cleanup):
self.engine.get_thumbnail(self.file, '200', None, None)
Expand Down

0 comments on commit 069a586

Please sign in to comment.