Skip to content
Advertisement

Tag: paramterized

How to pass a dict to a unit test using parameterized?

I have a list of dicts: How do I pass the dict to a django unit test using parameterized? E.g. Results in AttributeError: ‘str’ object has no attribute ‘items’ because the dict is being converted to a string. Answer As stated in the docs: So I would try to convert MY_LIST to: Which makes it a list of tuples that

Advertisement