FTBFS: wtforms-alchemy has test failures on Lunar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wtforms-alchemy (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
wtforms-json (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
wtforms-alchemy 0.18.0-3 currently fails to build on Ubuntu Lunar due to three failing tests, see error message below.
This build failure does not occur when attempting to build on Debian Sid, so while I haven't figured out what the difference is, it seems to be Ubuntu-only.
Log snippet (for more details see https:/
=======
_____ TestModelColumn
self = <tests.
def test_choice_
class Choice(Enum):
choice1 = 1
choice2 = 2
def __str__(self):
> assert self.form_
(1, 'choice1'), (2, 'choice2')
]
E AssertionError: assert [<Choice.
E At index 0 diff: <Choice.choice1: 1> != (1, 'choice1')
E Use -v to get more diff
tests/test_
_ TestModelColumn
self = <tests.
type_ = <class 'int'>, impl = Integer()
@mark.
['type_', 'impl'],
[
(int, sa.Integer()),
(str, sa.String())
]
)
def test_choice_
class Choice(Enum):
choice1 = type_(1)
choice2 = type_(2)
def __str__(self):
model = self.ModelTest(
form = self.form_
> assert '<option selected value="2">' in str(form.
tests/test_
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/
return self()
/usr/lib/
return self.meta.
/usr/lib/
return field.widget(field, **render_kw)
/usr/lib/
for val, label, selected in field.iter_
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <wtforms_
def iter_choices(self):
"""
We should update how choices are iter to make sure that value from
internal list or tuple should be selected.
"""
> for value, label in self.concrete_
E TypeError: cannot unpack non-iterable Choice object
/usr/lib/
_ TestModelColumn
self = <tests.
type_ = <class 'str'>, impl = String()
@mark.
['type_', 'impl'],
[
(int, sa.Integer()),
(str, sa.String())
]
)
def test_choice_
class Choice(Enum):
choice1 = type_(1)
choice2 = type_(2)
def __str__(self):
model = self.ModelTest(
form = self.form_
> assert '<option selected value="2">' in str(form.
tests/test_
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/
return self()
/usr/lib/
return self.meta.
/usr/lib/
return field.widget(field, **render_kw)
/usr/lib/
for val, label, selected in field.iter_
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <wtforms_
def iter_choices(self):
"""
We should update how choices are iter to make sure that value from
internal list or tuple should be selected.
"""
> for value, label in self.concrete_
E TypeError: cannot unpack non-iterable Choice object
/usr/lib/
=======
FAILED tests/test_
FAILED tests/test_
FAILED tests/test_
=================== 3 failed, 244 passed, 1 xfailed in 1.32s ===================
In turn, wtforms-alchemy's build failure prevents wtforms-json from building due to missing dependency.