mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 22:19:01 +00:00
Reports refactoring & tests
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user