Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomlamb committed Mar 25, 2020
1 parent 11323c7 commit 93fe27a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpskin/core/tests/test_banners.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def setUp(self):
if v.__name__ == 'cpskin.banner'][0]

def test_banner_without_folder(self):
url = self.my_viewlet.getImageBannerUrl()
url = self.my_viewlet.getBanner().get('url')
self.assertTrue(url.startswith('http://nohost/plone/banner.jpg'))

def test_banner_with_folder_without_image(self):
api.content.create(
container=self.portal, type='Folder', id='banner')
url = self.my_viewlet.getImageBannerUrl()
url = self.my_viewlet.getBanner().get('url')
self.assertTrue(url.startswith('http://nohost/plone/banner.jpg'))

def test_banner_with_folder_with_image(self):
Expand All @@ -55,5 +55,5 @@ def test_banner_with_folder_with_image(self):
image = api.content.create(
container=folder, type='Image', id='img1.png')
image.image = dummy_image()
url = self.my_viewlet.getImageBannerUrl()
url = self.my_viewlet.getBanner().get('url')
self.assertTrue(url.startswith('http://nohost/plone/banner/img1.png'))

0 comments on commit 93fe27a

Please sign in to comment.