Closed Pradhvan closed 4 years ago
class Embed(BaseContainer) will not show caption when the caption key is missing or when the caption value in the embed JSON has an empty string.
class Embed(BaseContainer)
Updated __version__ = '0.6.3'
__version__ = '0.6.3'
As @shon suggested we need to test three conditions, test_tranform.py to test all the three conditions.
test_tranform.py
[x] with caption "Extraction or whatever"
[x] with no caption key
[x] optionally an empty caption
All the media tags ["image", "featured image", "embed"] now test for the above three caption condition.
["image", "featured image", "embed"]
Updated featuredimage.html to be the expected HTML response.
featuredimage.html
class Embed(BaseContainer)
will not show caption when the caption key is missing or when the caption value in the embed JSON has an empty string.Updated
__version__ = '0.6.3'
As @shon suggested we need to test three conditions,
test_tranform.py
to test all the three conditions.[x] with caption "Extraction or whatever"
[x] with no caption key
[x] optionally an empty caption
All the media tags
["image", "featured image", "embed"]
now test for the above three caption condition.Updated
featuredimage.html
to be the expected HTML response.