Try and fix a flaky test

Same case as with #2496, for some reason the URL to the cover just ends with `test.jpg`
This commit is contained in:
Christof Dorner 2022-12-18 20:16:07 +01:00
parent 499aace9fb
commit 824d4207dc

View file

@ -265,7 +265,7 @@ class Status(TestCase):
self.assertEqual(activity["attachment"][0]["type"], "Document")
self.assertTrue(
re.match(
r"https:\/\/your.domain.here\/images\/covers\/test_[A-z0-9]+.jpg",
r"https:\/\/your.domain.here\/images\/covers\/test(_[A-z0-9]+)?.jpg",
activity["attachment"][0]["url"],
)
)