You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a serious bug. If ExampleFactory is instantiated with fields in the dict format, calling from_list will throw an error.
This line in ExampleFactory.from_list is the problem (self.fields is a dict so the loop is iterating over the field names):
🐛 Bug
This is a serious bug. If
ExampleFactory
is instantiated with fields in the dict format, callingfrom_list
will throw an error.This line in
ExampleFactory.from_list
is the problem (self.fields is a dict so the loop is iterating over the field names):And this is my workaround (not tested!!!):
The
ExampleFactory
tests don't cover this case.EDIT:
The same thing happens if the fields are passed as a list and
ExampleFactory.from_dict
is called.Steps to Reproduce
Example source:
The text was updated successfully, but these errors were encountered: