Commit graph

46 commits

Author SHA1 Message Date
Matthew Tretter
9dd7bef709 Simplify import 2013-01-23 22:07:31 -05:00
Matthew Tretter
8c5a571293 Remove unused import
Fixes flake8 error
2013-01-13 23:35:19 -05:00
Matthew Tretter
5acce98223 Remove extra space 2013-01-09 00:26:47 -05:00
Matthew Tretter
219b8507ad Add thumbnail tag tests 2013-01-09 00:25:28 -05:00
Matthew Tretter
3177eb8e19 Extract utils for use in other modules 2013-01-08 23:36:22 -05:00
Matthew Tretter
c45876f95c Ignore some style errors 2012-12-05 23:16:34 -05:00
Matthew Tretter
7578903307 Fix test 2012-12-05 21:10:36 -05:00
Matthew Tretter
938e2e178b Clean up test utils; write to media dir 2012-12-05 21:10:36 -05:00
Matthew Tretter
ea962b6259 Correct argument order
Related: 2cc72cd
2012-12-05 21:09:10 -05:00
Matthew Tretter
a5c33a4925 Add tests for generateimage template tag
Currently, these will fail because the temporary file cannot be pickled
in order to generate a hash.
2012-12-03 22:25:12 -05:00
Matthew Tretter
a499f5fbe6 Add util for generating named image file 2012-12-03 22:24:55 -05:00
Matthew Tretter
d253fe281a Rename image_field argument; closes #158 2012-12-01 16:46:10 -05:00
Matthew Tretter
9d310ba57e Remove old class-based tests 2012-11-05 22:45:10 -05:00
Matthew Tretter
c3f7aeca54 Separate serialization test 2012-11-05 22:44:00 -05:00
Matthew Tretter
6255b93b78 Add some processor tests 2012-11-05 22:23:25 -05:00
Matthew Tretter
56f1ccb8a8 Separate test_utils module 2012-11-05 21:54:15 -05:00
Matthew Tretter
8266099ae8 Clean up tests dir 2012-11-05 21:33:05 -05:00
Eric Eldredge
d27836983a Use nose to run tests
Closes #160
2012-10-24 23:30:55 -04:00
Matthew Tretter
d2087aa168 Create ImageSpecs; remove generators 2012-10-04 21:37:20 -04:00
Matthew Tretter
118f6e4206 Create failing test to illustrate #97 2012-07-18 17:21:47 -04:00
Matthew Tretter
5e1757c1ee Remove unused stuff 2012-07-18 17:21:21 -04:00
Matthew Tretter
c1b4c9bf71 Use cStringIO if available 2012-05-12 15:45:08 -04:00
Matthew Tretter
af7c12cb68 Tell people to import fields from the models module 2012-04-20 21:43:59 -04:00
Matthew Tretter
24a2d772a6 Organized tests 2012-02-18 01:56:17 -05:00
Matthew Tretter
3912003f02 Rename Fit and Fill to ResizeToFit and ResizeToFill 2012-02-18 00:05:18 -05:00
Matthew Tretter
35b04aeb16 Abstract inheritance test; illustrates #100 2012-02-17 21:10:05 -05:00
Matthew Tretter
310fd86c21 Extract utility functions 2012-02-17 20:44:47 -05:00
Matthew Tretter
280d01f07e Failing test to illustrate #97 2012-02-17 19:22:49 -05:00
Matthew Tretter
1bd3035f2c Extract image/model generation utils 2012-02-17 18:53:04 -05:00
Matthew Tretter
2838fa47cd Created "fields" module
This should give us a little more structure as IK grows.
2012-02-12 14:53:49 -05:00
Matthew Tretter
2467dfe912 Rename resize.Crop to resize.Fill 2012-02-11 13:36:30 -05:00
Matthew Tretter
c3ef5172c3 Rename ImageSpec to ImageSpecField
The ImageSpec class remains for now, but using it throws
deprecation warnings.
2012-02-11 13:06:48 -05:00
Matthew Tretter
09b97ee62f Move SmartCrop to crop module
Addresses one of the issues raised by in @madisvain in #93
2012-02-10 19:42:36 -05:00
Bryan Veloso
c16b008a34 Being a bit friendlier to Python 2.5 users... or is it 2.4. Fixes #82. 2011-12-22 21:48:15 -08:00
Matthew Tretter
d036343adc Test illustrating #75, #74 2011-12-02 02:19:27 -05:00
Matthew Tretter
1137487689 Separate create_photo method 2011-12-02 02:19:12 -05:00
Matthew Tretter
788365d6db Replaces quality argument with options dict
The `options` argument for `ImageSpec` and `ProcessedImageField`
replaces `quality` and provides a more general solution, allowing the
user access to PIL's format-specific options (including "quality",
"progressive", and "optimize" for JPEGs).
2011-11-16 10:00:35 -05:00
FI$H 2000
7ce43309ad Adds SmartCrop resize processor, with tests. 2011-11-10 10:54:58 -05:00
Bryan Veloso
0f7c400239 Basic tests for extension_to_format and format_to_extension. References #45. 2011-11-03 02:57:01 +09:00
Bryan Veloso
f47c4f9e8b Tests now run again. 2011-10-31 23:23:50 +09:00
Bryan Veloso
06c1c678b6 PEP8-ing and whitespacing. 2011-10-31 23:12:03 +09:00
Bryan Veloso
302399d837 Merge branch 'new_api' of https://github.com/matthewwithanm/django-imagekit into release/1.0.0
* 'new_api' of https://github.com/matthewwithanm/django-imagekit: (63 commits)
  fixing typo
  ImageSpecFile is a proper File
  Typo fix
  A list of ImageSpec names are now stored on the model.
  AdminThumbnailView is now AdminThumbnail
  Docs typo fix
  Adds explicit import of resize module to processors
  fixing bad import in docs
  adding name to AUTHORS
  adding test for new api
  Moved Crop and Fit to resize module.
  More docs edits.
  Typo fix.
  Installation instructions.
  Embracing duck typing.
  Documentation!
  Fix bug
  Bound fields are now cached on the model instance.
  Transpose processor now supports auto EXIF orientation.
  Fix filename formatting.
  ...

Conflicts:
	AUTHORS
	README.rst
	docs/Makefile
	docs/conf.py
	docs/index.rst
	imagekit/__init__.py
	imagekit/defaults.py
	imagekit/management/commands/ikflush.py
	imagekit/models.py
	imagekit/options.py
	imagekit/processors.py
	imagekit/specs.py
	tests/core/tests.py
2011-10-20 12:06:10 +09:00
Bryan Veloso
f9b79aa67f Tests now pass and don't leave any directory cruft. Fixes #28.
Tests were failing because they assumed that the file was deleted upon
teardown. This isn't the case after Django 1.3, where this no longer
happens. This fix removes any orphaned files (and directories) that were
created via the testing process.
2011-09-09 17:57:18 -07:00
Bryan Veloso
49df1caf63 Adding a test runner script a la #daniellindsleyrocksdahouse. 2011-09-09 17:53:00 -07:00
Bryan Veloso
e251b8903b Creating a "core" test module. 2011-09-09 17:51:22 -07:00
Bryan Veloso
9af96b4098 Creating a dedicated tests directory.
Moves tests.py out of the main module. Still a work in progress.
2011-09-09 16:33:42 -07:00