Trying to fix an unreliable unit test regex

This commit is contained in:
Mouse Reeve 2022-12-11 11:13:16 -08:00
parent 3b56c85a87
commit b4ddf281b5

View file

@ -194,7 +194,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"],
)
)