Improved testing
This commit is contained in:
parent
1d04d84788
commit
4be4f3219f
|
@ -7,5 +7,11 @@ def test_extension():
|
||||||
assert MY_SECRET_SITE
|
assert MY_SECRET_SITE
|
||||||
assert SocialSiteId.MY_SECRET_SITE
|
assert SocialSiteId.MY_SECRET_SITE
|
||||||
|
|
||||||
REGEXES.append(('test', MY_SECRET_SITE))
|
REGEXES.append((r'test(\d+)', MY_SECRET_SITE))
|
||||||
|
|
||||||
|
url = 'test123'
|
||||||
|
result = determine_social_from_url(url)
|
||||||
|
assert result is not None
|
||||||
|
assert result.social_site_id == MY_SECRET_SITE
|
||||||
|
assert result.social_id == '123'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user