From 824d4207dc39df28ce53ee6251664ecb57f86e61 Mon Sep 17 00:00:00 2001 From: Christof Dorner Date: Sun, 18 Dec 2022 20:16:07 +0100 Subject: [PATCH] Try and fix a flaky test Same case as with #2496, for some reason the URL to the cover just ends with `test.jpg` --- bookwyrm/tests/models/test_status_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/tests/models/test_status_model.py b/bookwyrm/tests/models/test_status_model.py index 4f0570a3f..177bedb24 100644 --- a/bookwyrm/tests/models/test_status_model.py +++ b/bookwyrm/tests/models/test_status_model.py @@ -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"], ) )