datacamp / sqlwhat

https://sqlwhat.readthedocs.io
GNU Affero General Public License v3.0
3 stars 8 forks source link

test_error function, initialize reporter with error log #65

Closed machow closed 7 years ago

machow commented 7 years ago

example at https://www.datacamp.com/teach/edit/repositories/983/branches/machow-test

(exercise is named test_error)

machow commented 7 years ago

approved? :)

machow commented 7 years ago

Right now, at least for sqlwhat and pythonwhat, the reporter holds a lot of the logic related to whether an overall SCT passes or fails, so putting the error on it doesn't seem too crazy. Especially since it's an error message, and messages are the reporters jam.