There was a missing .join(Person) in the query, so when given the email and not the username, every user in the db was returned and then one_or_none raised an error.
The test failed with current master but passes after the second commit in this branch.
There was a missing
.join(Person)
in the query, so when given the email and not the username, every user in the db was returned and thenone_or_none
raised an error.The test failed with current master but passes after the second commit in this branch.