Re: [web2py] Re: REST Unit Testing

2014-05-02 Thread JosuaS
sua Am Freitag, 2. Mai 2014 07:57:02 UTC+2 schrieb Samuel Marks: > > That's fine; you'll just want to write some helper functions (`get`, > `post`, `put`, `delete`, `patch`) to make it more semantic: > > self.assertEqual(get("", vars={"x": "y"

[web2py] Re: REST Unit Testing

2014-05-01 Thread JosuaS
14 16:11:07 UTC+2 schrieb samuel bonill: > > I really do not know how to do a REST Unit Testing with web2py api, I use > postman ( http://www.getpostman.com/ ) > > El miércoles, 30 de abril de 2014 05:31:38 UTC-5, JosuaS escribió: >> >> Hello >> >> I fou

[web2py] REST Unit Testing

2014-04-30 Thread JosuaS
Hello I found this nice description to do Unit Testing in web2py: http://www.web2py.com/AlterEgo/default/show/260 In the example a controller function is called like this: resp = list_active_games() In my code however there are some REST functions for example: @request.restful() def test():