tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

Refactor test_rest to use self.assertRaises #215

Closed WillAyd closed 5 years ago

WillAyd commented 5 years ago

As mentioned https://github.com/tableau/TabPy/pull/205/files#r264516138 there is currently a lot of tests which intentionally catch exceptions and inspect the type of exception being thrown. This would be more idiomatically expressed by using self.assertRaises (this may be an artifact of old 2.X support)