Skip to content

Commit be0da2f

Browse files
committed
removed extra code
1 parent 0463e37 commit be0da2f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_automapper_dict_field.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any, Dict
22
from unittest import TestCase
33

4-
from automapper import create_mapper, mapper
4+
from automapper import mapper
55

66

77
class Candy:
@@ -21,7 +21,7 @@ def __init__(self, products: Dict[str, Any]):
2121
self.products: Dict[str, Any] = products
2222

2323

24-
class AutomapperTest(TestCase):
24+
class AutomapperDictFieldTest(TestCase):
2525
def setUp(self) -> None:
2626
products = {
2727
"magazines": ["Forbes", "Time", "The New Yorker"],
@@ -31,7 +31,6 @@ def setUp(self) -> None:
3131
],
3232
}
3333
self.shop = Shop(products=products, annual_income=10000000)
34-
self.mapper = create_mapper()
3534

3635
def test_map__with_dict_field(self):
3736
public_info = mapper.to(ShopPublicInfo).map(self.shop)

0 commit comments

Comments
 (0)