*** tpb has joined #melange | 00:00 | |
*** robbyoconnor has quit IRC | 00:40 | |
*** robbyoconnor has joined #melange | 00:41 | |
*** dcrodman has joined #melange | 02:23 | |
*** dcrodman has quit IRC | 02:58 | |
*** asmeurer__ has quit IRC | 11:05 | |
*** robbyoconnor has quit IRC | 12:12 | |
*** dcrodman has joined #melange | 15:40 | |
*** robbyoconnor has joined #melange | 15:45 | |
dcrodman | Lennie: Hey lennard, do you know if GSoCDjangoTestCase.modelPost(url, model, override) supposed to simulate posting to the given url with the contents of override in a form? | 15:48 |
---|---|---|
Lennie | dcrodman, one sec | 15:48 |
Lennie | while I have you here anyway dcrodman | 15:49 |
Lennie | I think I'm missing a blogpost :p | 15:50 |
dcrodman | CRAP!! | 15:50 |
*** robbyoconnor has quit IRC | 15:50 | |
dcrodman | can I do it super fast??? | 15:50 |
Lennie | I wouldn't recommend doing it super slow :P | 15:50 |
Lennie | but yeah please write one | 15:50 |
dcrodman | on it | 15:50 |
dcrodman | like right now | 15:50 |
*** robbyoconnor has joined #melange | 15:51 | |
Lennie | anyway, about modelPost | 15:51 |
Lennie | it's just calling the seeder and putting in an entity | 15:52 |
Lennie | however I believe it doesn't support parent relationships at the moment | 15:52 |
Lennie | if you want to test your post method you should call post() | 15:52 |
Lennie | That sounds confusing... nm :0 | 15:53 |
Lennie | modelPost() exists because it makes sure that the entities you refer to are setup properly | 15:54 |
Lennie | and then continues to call post() for you | 15:55 |
Lennie | you can find it in test_utils:344 | 15:55 |
dcrodman | yeah alright I thought it was something like that, i was looking through test utils and that method earlier | 15:56 |
dcrodman | I've been looking at test_invite and test_request and have tried to mirror the patterns I see there but calling modelPost or even seedProperties doesn't populate the datastore with a connecito | 15:57 |
Lennie | It isn't supposed to make a connection | 15:58 |
Lennie | that's what the actual post() is for | 15:58 |
Lennie | If you'd like you can just try calling that | 15:58 |
dcrodman | i'll give that a shot | 15:59 |
dcrodman | blog post is up, sorry about that... | 16:06 |
*** dcrodman has quit IRC | 16:16 | |
*** dcrodman has joined #melange | 16:17 | |
dcrodman | would there be something i'm missing here as to how to determine exactly what is being posted to a form? | 16:22 |
dcrodman | I've been looking around self.data - .request.POST and .POST specifically to little avail | 16:22 |
dcrodman | logging statements ftw | 16:23 |
Lennie | dcrodman, :)? | 16:55 |
Lennie | self.data.POST should even be enough iirc | 16:55 |
Lennie | self.request.POST would also work | 16:55 |
*** robbyoconnor has quit IRC | 17:13 | |
*** robbyoconnor has joined #melange | 17:13 | |
*** dcrodman has quit IRC | 17:15 | |
*** robbyoconnor has quit IRC | 17:19 | |
*** dhaun has joined #melange | 17:34 | |
*** robbyoconnor has joined #melange | 17:46 | |
*** Lennie has quit IRC | 19:36 | |
*** Lennie has joined #melange | 19:39 | |
*** ChanServ sets mode: +o Lennie | 19:39 | |
*** robbyoconnor has quit IRC | 20:58 | |
*** dhaun has quit IRC | 21:22 | |
*** asmeurer has joined #melange | 21:39 | |
*** asmeurer has quit IRC | 23:49 | |
*** asmeurer_ has joined #melange | 23:59 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!