-
Notifications
You must be signed in to change notification settings - Fork 181
More helpful error messages #4
Comments
You should probably move the entire test suite over to pytest and vastly simplify all that code. |
On the subject of the error message: It is a result of a test not passing, and I can not think of anything more the error could say; it expects an exception, and it did not get one. On the subject of pytest: pytest will not reduce the code complexity. The |
No that's not the problem at all. Read more carefully. It expects an assertionerror that contains the string "Expected select". I was working on trying to expand moz-sql-parser to cover more SQL syntax. I'm still pretty sure this error message is actually in the logging module where I first created the issue. The exception should have been "expected foo, found bar". It's just a string comparison! |
Yes, the test on line 113 (
Since I can not get |
I was trying to add support for create table statements to this lib. Try it yourself and see what happens with the tests. They fail with a bad error message that is NOT from pyparsing because that lib gives quite sane error messages.
I should say that I’ve since given up in this project because I found this lib and its dependencies to be in a sorry state quite frankly. There were a lot of paper cuts in a surprisingly short time.
|
Please push your changes, and send me a link. I would like to see how far you got, and incorporate what you have done so it is less painful for the next person. thank you for your time on this. |
I’ve deleted them. I came to the conclusion that working with Python-sqlparse despite its weirdness was a better idea. Sorry about that.
|
From klahnakoski/mo-logs#2 :
That's a deeply unhelpful message. You should print what that "something else" is.
The text was updated successfully, but these errors were encountered: