Conversation
b504c2a to
5e3f016
Compare
5e3f016 to
1e732d4
Compare
|
The reason that Hypothesis[django] is RED 🔴 is because
Maybe either or both of these exist already and I've missed them - that would be optimal 😄 |
|
You could do model(Item).filter(lambda item: item.full_clean()). I actually thought this was already happening, but I think maybe that was in a pull request that got abandoned. |
|
Hmm. Actually that won't work perfectly. There will still be invalid items in the database, but it won't return them from the example. |
|
@DRMacIver Thanks for checking this out. I feel sad that this doesn't work with Hypothesis out of the box (yet). Hopefully I'll be able to look some more at Hypothesis[django] and see if there's any quick win that could mean that If you find that abandoned PR please stick it on here or tweet it to me - I'd be excited to look it over. |
|
Note to self - abandoned PR in Hypothesis is here: HypothesisWorks/hypothesis#335 |
Use Hypothesis's django extras package and call for an
example.