Skip to content

Instantly share code, notes, and snippets.

@robolson
Created February 14, 2014 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robolson/8994680 to your computer and use it in GitHub Desktop.
Save robolson/8994680 to your computer and use it in GitHub Desktop.
Thumbor watermark test failure
============
Vows Results
============
Url vows
Parse
With thumbor inside watermark
✗ should have image
Expected topic("s.glbimg.com/some/image.jpg',0,0,0)/some.domain/img/path/img.jpg") to equal 'some.domain/img/path/img.jpg'
Traceback (most recent call last):
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/pyvows/runner/abc.py", line 63, in run_vow
result = vow(ctx_obj, topic)
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/pyvows/decorators.py", line 58, in wrapper
ret = method(*args, **kw)
File "/Users/rob/Development/thumbor/vows/url_vows.py", line 265, in should_have_image
expect(topic['image']).to_equal('some.domain/img/path/img.jpg')
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/preggy/core.py", line 153, in assert_topic
return _registered_assertions[method_name](self.topic, *args, **kw)
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/preggy/core.py", line 100, in test_assertion
raise AssertionError(raw_msg.format(*args))
AssertionError: Expected topic("s.glbimg.com/some/image.jpg',0,0,0)/some.domain/img/path/img.jpg") to equal 'some.domain/img/path/img.jpg'
found in /Users/rob/Development/thumbor/vows/url_vows.py at line 263
✗ should have filters
Expected topic("watermark('my.image.path/unsafe/filters:fill(ffffff)") to equal 'watermark(my.image.path/unsafe/filters:fill(ffffff)/s.glbimg.com/some/image.jpg,0,0,0)'
Traceback (most recent call last):
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/pyvows/runner/abc.py", line 63, in run_vow
result = vow(ctx_obj, topic)
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/pyvows/decorators.py", line 58, in wrapper
ret = method(*args, **kw)
File "/Users/rob/Development/thumbor/vows/url_vows.py", line 268, in should_have_filters
expect(topic['filters']).to_equal('watermark(my.image.path/unsafe/filters:fill(ffffff)/s.glbimg.com/some/image.jpg,0,0,0)')
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/preggy/core.py", line 153, in assert_topic
return _registered_assertions[method_name](self.topic, *args, **kw)
File "/usr/local/topsoil_virtualenv/lib/python2.7/site-packages/preggy/core.py", line 100, in test_assertion
raise AssertionError(raw_msg.format(*args))
AssertionError: Expected topic("watermark('my.image.path/unsafe/filters:fill(ffffff)") to equal 'watermark(my.image.path/unsafe/filters:fill(ffffff)/s.glbimg.com/some/image.jpg,0,0,0)'
found in /Users/rob/Development/thumbor/vows/url_vows.py at line 267
✗ OK » 51 honored • 2 broken (0.009261s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment