Bug report
What's wrong
I was attempting to use choice within Schema generation to pick from a list of options but ran into an UnsupportedField error.
It would appear that AbsrtractField returns UnsupportedField when used with on Choice provider.
Example:
>>> from mimesis.schema import Field, Schema
>>> _ = Field('en')
>>> _('choice', items=[1,2,3])
Traceback (most recent call last):
File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 100, in __call__
result = self._table[name](**kwargs)
KeyError: 'choice'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#24>", line 1, in <module>
_('choice', items=[1,2,3])
File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 105, in __call__
raise UnsupportedField(name)
mimesis.exceptions.UnsupportedField: Field «choice» is not supported.
>>>
System information
Python version: 3.6.5
Mimesis version: 3.0.0
OS: Windows 10
Bug report
What's wrong
I was attempting to use
choicewithin Schema generation to pick from a list of options but ran into anUnsupportedFielderror.It would appear that AbsrtractField returns UnsupportedField when used with on
Choiceprovider.Example:
System information
Python version: 3.6.5
Mimesis version: 3.0.0
OS: Windows 10