From be0da2fdbadf4ba630e99d4c408b31c6a189cc3d Mon Sep 17 00:00:00 2001 From: Andrii Nikolaienko Date: Tue, 25 Oct 2022 12:47:28 +0300 Subject: [PATCH] removed extra code --- tests/test_automapper_dict_field.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_automapper_dict_field.py b/tests/test_automapper_dict_field.py index c7d559b..8bca848 100644 --- a/tests/test_automapper_dict_field.py +++ b/tests/test_automapper_dict_field.py @@ -1,7 +1,7 @@ from typing import Any, Dict from unittest import TestCase -from automapper import create_mapper, mapper +from automapper import mapper class Candy: @@ -21,7 +21,7 @@ def __init__(self, products: Dict[str, Any]): self.products: Dict[str, Any] = products -class AutomapperTest(TestCase): +class AutomapperDictFieldTest(TestCase): def setUp(self) -> None: products = { "magazines": ["Forbes", "Time", "The New Yorker"], @@ -31,7 +31,6 @@ def setUp(self) -> None: ], } self.shop = Shop(products=products, annual_income=10000000) - self.mapper = create_mapper() def test_map__with_dict_field(self): public_info = mapper.to(ShopPublicInfo).map(self.shop)