I have a list of dicts:
MY_LIST = [
{ 'key1': {'a': 1, 'b':2 } },
{ 'key2': {'a': 1, 'b':2 } }
]
How do I pass the dict to a django unit test using parameterized? E.g.
@parameterized.expand(MY_LIST):
def test_mytest(self, dict_item):
print(dict_item.items())
Results in AttributeError: 'str' object has no attribute 'items'
because the dict is being converted to a string.