Reports refactoring & tests

This commit is contained in:
Soxoj
2021-01-06 10:53:23 +03:00
parent 30f795065e
commit 5c8b65d033
5 changed files with 29 additions and 123 deletions
+7 -1
View File
@@ -1,5 +1,5 @@
"""Maigret utils test functions"""
from maigret.utils import CaseConverter
from maigret.utils import CaseConverter, is_country_tag
def test_case_convert_camel_to_snake():
@@ -13,3 +13,9 @@ def test_case_convert_snake_to_camel():
b = CaseConverter.snake_to_camel(a)
assert b == 'camelCasedString'
def test_is_country_tag():
assert is_country_tag('ru') == True
assert is_country_tag('a1') == False
assert is_country_tag('dating') == False