From b67f3062fed36f78a827be4b31340ca79a6da4cf Mon Sep 17 00:00:00 2001 From: Zed Date: Fri, 21 Apr 2023 23:33:52 +0200 Subject: [PATCH] Fix card tests --- tests/test_card.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_card.py b/tests/test_card.py index da6ffde..78fe79c 100644 --- a/tests/test_card.py +++ b/tests/test_card.py @@ -76,7 +76,7 @@ class CardTest(BaseTestCase): 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: @@ -99,7 +99,7 @@ class CardTest(BaseTestCase): 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)