mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Merge pull request #2496 from bookwyrm-social/unit-test
Trying to fix an unreliable unit test regex
This commit is contained in:
commit
0452731d02
1 changed files with 1 additions and 1 deletions
|
@ -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"],
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue