Skip to content

Commit

Permalink
removed extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
anikolaienko committed Oct 25, 2022
1 parent 0463e37 commit be0da2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_automapper_dict_field.py
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"],
Expand All @@ -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)
Expand Down

0 comments on commit be0da2f

Please sign in to comment.