Add formatters, tests.

This commit is contained in:
2023-06-16 17:21:39 +03:00
parent 0de06aaf97
commit a95638a6d5
6 changed files with 40 additions and 0 deletions
View File
View File
+12
View File
@@ -0,0 +1,12 @@
import pytest
from src.fmt.city_formatter import CityFormatter
def test_city_format():
city = {'name': 'Chernihiv'}
formatter = CityFormatter()
city_fmt = formatter.format(city)
assert '- Chernihiv\n' == city_fmt