v3.0.1 build failure due to the test test_blank_choices failing
See original GitHub issueIssue Description
From the recent build logs I see this test failure:
======================================================================
ERROR: test_blank_choices (wtfpeewee.tests.WTFPeeweeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/tests.py", line 231, in test_blank_choices
self.assertTrue(form.validate())
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/form.py", line 318, in validate
return super(Form, self).validate(extra)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/form.py", line 150, in validate
if not field.validate(self, extra):
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/fields/core.py", line 215, in validate
self.pre_validate(form)
File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/fields.py", line 187, in pre_validate
super(SelectChoicesField, self).pre_validate(form)
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/fields/core.py", line 509, in pre_validate
for _, _, match in self.iter_choices():
File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/fields.py", line 163, in iter_choices
yield (value, label, self.coerce(value) == self.data)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
I bumped into this myself because I tried to install buku in NixOS, and the wtf-peewee module (being a dependency of buku) in NixOS was just upgraded from 3.0.0 to 3.0.1 leading to the build failing.
I’m making this issue to let you know about the build failure in case you missed it. I’ll look into the test failure myself, but perhaps not tonight 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Build failure due to test errors · Issue #19 · tamingtext/book
Hello, I have followed the readme to build the code downloaded from master branch yesterday. ... It seems only 3 of the unit...
Read more >mvn build fail when testng test fail - java - Stack Overflow
You are trying to test the app not build it. Anyway, if you really want to build it and skip test, you should...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No problem at all, bro. I appreciate the offer but the thanks is more than enough.
Thank you @coleifer ! Can I buy you a coffee through https://www.buymeacoffee.com/ or similar as a thank you?