Fixed BongaCams, links parsing improved (#297)

* Fixed BongaCams, links parsing improved

* Fixed tests
This commit is contained in:
Soxoj
2022-01-08 03:45:49 +03:00
committed by GitHub
parent 3e884d4b76
commit 5c05cfa5bc
4 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ def test_site_url_detector():
assert (
db.sites[0].url_regexp.pattern
== r'^https?://(www.)?forum\.amperka\.ru/members/\?username=(.+?)$'
== r'^https?://(www.|m.)?forum\.amperka\.ru/members/\?username=(.+?)$'
)
assert (
db.sites[0].detect_username('http://forum.amperka.ru/members/?username=test')
+1 -1
View File
@@ -98,7 +98,7 @@ def test_url_make_profile_url_regexp():
# ensure all combinations match pattern
assert (
URLMatcher.make_profile_url_regexp(url).pattern
== r'^https?://(www.)?flickr\.com/photos/(.+?)$'
== r'^https?://(www.|m.)?flickr\.com/photos/(.+?)$'
)