Files
maigret/tests/test_data.py
2021-06-13 00:43:28 +03:00

17 lines
378 B
Python

"""Maigret data test functions"""
from maigret.utils import is_country_tag
def test_tags_validity(default_db):
unknown_tags = set()
tags = default_db._tags
for site in default_db.sites:
for tag in filter(lambda x: not is_country_tag(x), site.tags):
if tag not in tags:
unknown_tags.add(tag)
assert unknown_tags == set()