Tags updated, added tests for tags

Added several sites
Updated socid_extractor version to avoid bug #150
This commit is contained in:
Soxoj
2021-05-15 14:51:30 +03:00
parent aa6cd0eca9
commit c9219d91ec
5 changed files with 100 additions and 15 deletions
+15
View File
@@ -0,0 +1,15 @@
"""Maigret data test functions"""
from maigret.utils import is_country_tag
from maigret.sites import SUPPORTED_TAGS
def test_tags_validity(default_db):
unknown_tags = set()
for site in default_db.sites:
for tag in filter(lambda x: not is_country_tag(x), site.tags):
if tag not in SUPPORTED_TAGS:
unknown_tags.add(tag)
assert unknown_tags == set()