Skip to content

Commit

Permalink
Fix card tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Apr 21, 2023
1 parent a64e228 commit b67f306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_card(self, tweet, title, description, destination, large):
c = Card(Conversation.main + " ")
self.assert_text(title, c.title)
self.assert_text(destination, c.destination)
self.assertIn('_img', self.get_image_url(c.image + ' img'))
self.assertIn('/pic/', self.get_image_url(c.image + ' img'))
if len(description) > 0:
self.assert_text(description, c.description)
if large:
Expand All @@ -99,7 +99,7 @@ def test_card_playable(self, tweet, title, description, destination):
c = Card(Conversation.main + " ")
self.assert_text(title, c.title)
self.assert_text(destination, c.destination)
self.assertIn('_img', self.get_image_url(c.image + ' img'))
self.assertIn('/pic/', self.get_image_url(c.image + ' img'))
self.assert_element_visible('.card-overlay')
if len(description) > 0:
self.assert_text(description, c.description)
Expand Down

0 comments on commit b67f306

Please sign in to comment.