Update test_status_model.py

This commit is contained in:
Joachim 2021-10-27 19:00:09 +02:00
parent b956b79bd0
commit 56fd147c88

View file

@ -223,7 +223,7 @@ class Status(TestCase):
self.assertEqual(activity["attachment"][0].type, "Document") self.assertEqual(activity["attachment"][0].type, "Document")
self.assertEqual( self.assertEqual(
activity["attachment"][0].url, activity["attachment"][0].url,
urljoin(settings.MEDIA_FULL_URL,self.book.cover.url.lstrip("/")), urljoin(settings.MEDIA_FULL_URL, self.book.cover.url.lstrip("/")),
) )
self.assertEqual(activity["attachment"][0].name, "Test Edition") self.assertEqual(activity["attachment"][0].name, "Test Edition")
@ -301,7 +301,7 @@ class Status(TestCase):
self.assertEqual(activity["attachment"][0].type, "Document") self.assertEqual(activity["attachment"][0].type, "Document")
self.assertEqual( self.assertEqual(
activity["attachment"][0].url, activity["attachment"][0].url,
urljoin(settings.MEDIA_FULL_URL, self.book.cover.url.lstrip("/")) urljoin(settings.MEDIA_FULL_URL, self.book.cover.url.lstrip("/")),
) )
self.assertEqual(activity["attachment"][0].name, "Test Edition") self.assertEqual(activity["attachment"][0].name, "Test Edition")