Re: [web2py] Unit testing apis

2018-03-08 Thread Kevin Huang
Thanks all for the replies, I was able to go to gluon.globals and get the HTTP 400 error to show what the problem was, turns out the request was still sending args and vars from the previous test. Oddly enough, clearing the request variables and arguments (setting them to [] for instance) was

Re: [web2py] Unit testing apis

2018-03-07 Thread Richard Vézina
I do have customized web2py.test while integrating some of welcome_enhanced stuff like using splinter api for conducting testing + create a test launcher to save some boiler plate initialization... I just don't have time to exectract it form my own app and publish it... It rely on pytest... It gear

Re: [web2py] Unit testing apis

2018-03-07 Thread Yoel Benítez Fonseca
idk if that is the right way... i'm using this approach in on of my projects and at the moment the only problem i have is with the memory usage or the slow access with a file base sqlite database for the tests. On Wed, Mar 7, 2018 at 1:08 PM, António Ramos wrote: Next chapter in web2py book

Re: [web2py] Unit testing apis

2018-03-07 Thread António Ramos
Next chapter in web2py book *Pytest your app the right way* 2018-03-07 18:02 GMT+00:00 Yoel Benítez Fonseca : > H! > > checkout: https://github.com/viniciusban/web2py.test > > > > On Wed, Mar 7, 2018 at 10:10 AM, Kevin Huang wrote: > >> >> Hi all, >> >> >> I'm relatively new to web2py, and stil

Re: [web2py] Unit testing apis

2018-03-07 Thread Yoel Benítez Fonseca
H! checkout: https://github.com/viniciusban/web2py.test On Wed, Mar 7, 2018 at 10:10 AM, Kevin Huang wrote: Hi all, I'm relatively new to web2py, and still trying to find more resources, but i've hit a wall, and I'm not quite sure on this issue I'm working with: So working with the "g

Re: [web2py] Unit testing apis

2018-03-07 Thread António Ramos
Some discussion here https://groups.google.com/forum/#!topic/web2py/4HdkjbnlhBU There should be a link in web2py docs to suggest the best way to test. Regards 2018-03-07 15:10 GMT+00:00 Kevin Huang : > > Hi all, > > > I'm relatively new to web2py, and still trying to find more resources, but >

[web2py] Unit testing apis

2018-03-07 Thread Kevin Huang
Hi all, I'm relatively new to web2py, and still trying to find more resources, but i've hit a wall, and I'm not quite sure on this issue I'm working with: So working with the "guide" from http://web2py.com/AlterEgo/default/show/260, I'm trying to create a few unit tests to test some RESTFUL