level12 / webgrid

Other
12 stars 7 forks source link

Improve Interface of GridBase test class #153

Open nicoavn opened 2 years ago

nicoavn commented 2 years ago

GridBase test class provide two shortcut methods for testing filtering and sorting. They are a bit different in the way that one allows for callable parameters and the other doesn't.

Making them consistent would make it easier to use them.

https://github.com/level12/webgrid/blob/master/webgrid/testing.py#L444-L451 https://github.com/level12/webgrid/blob/master/webgrid/testing.py#L475-L479