mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-06-05 07:18:48 +00:00
Trying to fix an unreliable unit test regex
This commit is contained in:
parent
3b56c85a87
commit
b4ddf281b5
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Status(TestCase):
|
||||||
self.assertEqual(activity["attachment"][0]["type"], "Document")
|
self.assertEqual(activity["attachment"][0]["type"], "Document")
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
re.match(
|
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"],
|
activity["attachment"][0]["url"],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue