*** tpb has joined #melange | 00:00 | |
*** Merio has quit IRC | 00:47 | |
*** yupbank has quit IRC | 01:26 | |
*** yupbank has joined #melange | 01:33 | |
*** arun has quit IRC | 01:34 | |
*** arun has joined #melange | 01:50 | |
*** manugupt1 has joined #melange | 01:52 | |
*** manugupt1 has joined #melange | 01:52 | |
*** tdfischer_ has quit IRC | 02:01 | |
*** tdfischer has joined #melange | 02:01 | |
*** desophos has joined #melange | 02:02 | |
*** yupbank has quit IRC | 02:04 | |
*** manugupt1 has quit IRC | 02:24 | |
*** scorche has quit IRC | 02:27 | |
*** scorche` has joined #melange | 02:27 | |
*** roonyH has joined #melange | 02:48 | |
roonyH | Hi :piyushbansal I got my tests running :) | 02:50 |
---|---|---|
piyushbansal | Cool :D | 02:51 |
piyushbansal | What was the issue btw ? | 02:51 |
roonyH | but I need some help with testing my view | 02:51 |
roonyH | I reinstalled | 02:51 |
*** desophos has quit IRC | 02:51 | |
roonyH | are you available? won't take a minite | 02:51 |
piyushbansal | Okay, but I have an exam at 9, so we don't have much time | 02:52 |
roonyH | ok i ll be quick | 02:52 |
roonyH | i have a view at gci/subscribed_tasks/google/gci2009/student | 02:53 |
piyushbansal | right | 02:53 |
roonyH | to test it this is how i create the url | 02:53 |
roonyH | self.url = "gci/subscribed_tasks/%s/%s" % ( | 02:53 |
roonyH | self.program.key().name(), | 02:53 |
roonyH | self.student.link_id | 02:53 |
roonyH | ) | 02:53 |
roonyH | is this ok? | 02:54 |
roonyH | but when i test it in this way.... | 02:54 |
roonyH | response = self.get(self.url) | 02:54 |
roonyH | self.assertResponseOK(response) | 02:54 |
roonyH | this test fails | 02:54 |
roonyH | :( | 02:54 |
piyushbansal | What is the error ? | 02:55 |
roonyH | AssertionError: 200 != 404 | 02:55 |
roonyH | -------------------- >> begin captured stdout << --------------------- | 02:55 |
roonyH | /gci/student_tasks_for_orgg/m000000/m000000/m000001/m000000 | 02:55 |
roonyH | --------------------- >> end captured stdout << ---------------------- | 02:55 |
roonyH | sory | 02:55 |
piyushbansal | Right, so the issue is that you're not passing the right params | 02:55 |
roonyH | thats a wrong one | 02:56 |
piyushbansal | Oh, okay | 02:56 |
roonyH | AssertionError: 200 != 404 | 02:56 |
roonyH | -------------------- >> begin captured stdout << --------------------- | 02:56 |
roonyH | gci/subscribed_tasks/m000000/m000000/m000001 | 02:56 |
roonyH | --------------------- >> end captured stdout << ---------------------- | 02:56 |
roonyH | this is what I get | 02:56 |
piyushbansal | right, so what I would guess is that your url seems ill formed | 02:57 |
roonyH | what do you mean? | 02:57 |
roonyH | I can see my view from the browser | 02:57 |
piyushbansal | If you look at it, I would guess that the student id and program.key().name aren't the correct params to pass/ or aren't being passed. | 02:58 |
piyushbansal | Would you print both of the params and verify if that is what you wish to pass | 02:58 |
roonyH | arent those printed above? | 02:58 |
piyushbansal | then got to the url mapping(reverse urls) and make sure that there is some route for that url pattern | 02:58 |
piyushbansal | Yeah, that's what I am saying. | 02:59 |
piyushbansal | Are you sure they are the correct params that you intend to pass | 02:59 |
roonyH | that I am not sure | 02:59 |
roonyH | this is the url gci/subscribed_tasks/google/gci2009/student | 03:00 |
roonyH | so I guess those are the params | 03:00 |
piyushbansal | Then just check the url mapping and see if a controller exists for the url pattern | 03:00 |
piyushbansal | Okay I got to go, I guess I haven't been able to help much | 03:00 |
roonyH | but I can browse the page from the browser | 03:01 |
roonyH | doesnt that mean a controller exists | 03:01 |
roonyH | oh right its ok | 03:01 |
roonyH | good luck with exam | 03:01 |
piyushbansal | It means , then we're sure that the params being passed are incorrect | 03:01 |
roonyH | ok right | 03:01 |
piyushbansal | If you're able to access it via browser, then the method for handling route exists | 03:02 |
roonyH | i ll check | 03:02 |
roonyH | thanks | 03:02 |
piyushbansal | Just cross check | 03:02 |
piyushbansal | okay , great | 03:02 |
piyushbansal | bye | 03:02 |
roonyH | bye | 03:02 |
*** piyushbansal has quit IRC | 03:23 | |
*** roonyH has quit IRC | 03:36 | |
*** yupbank has joined #melange | 03:47 | |
*** BlankVerse has joined #melange | 04:26 | |
*** roonyH has joined #melange | 04:26 | |
*** yupbank has quit IRC | 05:00 | |
*** kkthecoder has joined #melange | 05:06 | |
*** schultmc1 has joined #melange | 05:20 | |
*** kkthecoder has quit IRC | 05:25 | |
*** roonyH has quit IRC | 05:25 | |
*** schultmc has quit IRC | 05:25 | |
*** downey has quit IRC | 05:25 | |
*** roonyH has joined #melange | 05:33 | |
*** kkthecoder has joined #melange | 05:34 | |
*** kkthecoder has quit IRC | 05:53 | |
*** yupbank has joined #melange | 06:00 | |
*** Darrel has joined #melange | 06:04 | |
*** yupbank has quit IRC | 06:26 | |
*** roonyH has quit IRC | 06:40 | |
*** scorche` has quit IRC | 06:46 | |
*** robbyoconnor has joined #melange | 06:59 | |
*** scorche has joined #melange | 07:07 | |
*** r0bby has joined #melange | 07:08 | |
*** robbyoconnor has quit IRC | 07:09 | |
*** yupbank has joined #melange | 07:22 | |
*** yupbank1 has joined #melange | 07:26 | |
*** yupbank has quit IRC | 07:26 | |
*** downey has joined #melange | 07:26 | |
*** BlankVerse has quit IRC | 07:32 | |
*** yupbank1 has quit IRC | 07:54 | |
*** yupbank has joined #melange | 08:03 | |
*** roonyH has joined #melange | 08:43 | |
*** dlion has joined #melange | 08:46 | |
dlion | Hello! | 08:47 |
*** yupbank has quit IRC | 08:53 | |
*** Merio has joined #melange | 08:58 | |
*** ChanServ sets mode: +o Merio | 08:58 | |
*** dhaun has joined #melange | 09:11 | |
*** kkthecoder has joined #melange | 09:20 | |
*** VarunAgw has joined #melange | 09:47 | |
*** RaulT has joined #melange | 09:52 | |
*** VarunAgw has left #melange | 10:02 | |
*** dlion has quit IRC | 10:04 | |
*** roonyH has quit IRC | 10:37 | |
*** VarunAgw has joined #melange | 10:38 | |
*** RaulT has quit IRC | 10:45 | |
*** bumbu has joined #melange | 11:02 | |
*** VarunAgw has quit IRC | 11:08 | |
*** rihnapstor has joined #melange | 11:50 | |
bumbu | I have such a feeling that all the students are sending the same temlate email: Hello, I'm an Xth year student from Y. I want to contribute to your great organization to the greatest idea Z. I have some experience with Lisp, so it will be easy for me to do a project in Clojure/Prolog. I do not want to read, just say what I should do to get accepted. | 12:26 |
*** rihnapstor has quit IRC | 12:51 | |
*** roonyH has joined #melange | 12:53 | |
*** bumbu has quit IRC | 13:40 | |
*** roonyH has quit IRC | 14:14 | |
*** roonyH has joined #melange | 14:14 | |
*** roonyH has quit IRC | 14:49 | |
*** piyushbansal has joined #melange | 14:55 | |
*** kkthecoder has quit IRC | 15:03 | |
*** kkthecoder has joined #melange | 15:26 | |
*** kkthecoder has quit IRC | 16:07 | |
*** rihnapstor has joined #melange | 16:30 | |
*** piyushbansal has quit IRC | 16:44 | |
*** kkthecoder has joined #melange | 16:53 | |
*** asmeurer has joined #melange | 17:01 | |
*** piyushbansal has joined #melange | 17:14 | |
*** roonyH has joined #melange | 17:33 | |
*** roonyH has quit IRC | 17:50 | |
*** roonyH has joined #melange | 17:50 | |
*** bumbu has joined #melange | 18:01 | |
*** asmeurer has quit IRC | 18:04 | |
*** asmeurer has joined #melange | 19:11 | |
*** asmeurer has quit IRC | 19:15 | |
*** asmeurer has joined #melange | 19:18 | |
*** asmeurer has quit IRC | 19:19 | |
*** arun has quit IRC | 19:46 | |
*** asmeurer has joined #melange | 19:47 | |
*** arun has joined #melange | 19:50 | |
*** desophos has joined #melange | 19:50 | |
*** roonyH has quit IRC | 20:03 | |
*** rihnapstor has quit IRC | 20:11 | |
*** roonyH has joined #melange | 20:12 | |
*** rihnapstor has joined #melange | 20:30 | |
*** asmeurer has quit IRC | 20:34 | |
roonyH | Hi, I am trying to test a page that I have created | 20:41 |
roonyH | I have a assertResponseOK(response) test | 20:42 |
roonyH | i can browse this page from my web browser | 20:42 |
roonyH | but the test always fails | 20:42 |
roonyH | gives AssertionError: 200 != 404 | 20:43 |
roonyH | is there something I should do before testing a view I added | 20:43 |
roonyH | like registering the view for tests or something | 20:43 |
piyushbansal | Hi roonyH | 20:44 |
piyushbansal | No nothing like registering a view in my opinion | 20:44 |
piyushbansal | Would you share a pastebin of your code piece ? | 20:45 |
roonyH | ok | 20:45 |
roonyH | http://pastebin.com/qvx0xurr | 20:47 |
tpb | Title: [Python] """Tests for lists of SubscribedTasksPage view.""" from tests.test_utils impo - Pastebin.com (at pastebin.com) | 20:47 |
roonyH | piyushbansal | 20:47 |
roonyH | this is the test code | 20:47 |
roonyH | http://pastebin.com/prpN2tKZ | 20:49 |
tpb | Title: [Python] class SubscribedTasksPage(GCIRequestHandler): """View for the list of the tas - Pastebin.com (at pastebin.com) | 20:49 |
roonyH | this is the page I am trying to test | 20:49 |
piyushbansal | I believe that in the morning you're having issues with a different test method ? | 20:55 |
*** asmeurer has joined #melange | 20:55 | |
piyushbansal | Is it the same ? | 20:55 |
roonyH | nope the same | 20:56 |
roonyH | all day long | 20:56 |
piyushbansal | Also, as far as I have guessed, the url /gci/subscribed_tests/x/y doesn't have a reverse url mapping for it | 20:56 |
roonyH | :( | 20:56 |
roonyH | I have created that mapping | 20:57 |
piyushbansal | can you point me to the controller function that handles this subscription thing in the codebase ? | 20:57 |
roonyH | no I can't | 20:57 |
roonyH | because it is only in my local code | 20:58 |
roonyH | this is a view that i have created | 20:58 |
piyushbansal | please do a pastebin for that as well | 20:59 |
*** asmeurer has quit IRC | 20:59 | |
piyushbansal | btw, roonyH what project are you interested in ? | 21:01 |
*** asmeurer has joined #melange | 21:02 | |
*** rihnapstor has quit IRC | 21:05 | |
roonyH | I have done a pastebin above | 21:06 |
roonyH | just below the testing code | 21:06 |
roonyH | I am hoping to try for Messaging System | 21:07 |
roonyH | this is my first year, so it will be a good experience for the next year even if I do not get in | 21:07 |
piyushbansal | The only thing I am not sure of is, if you have added anything in your callback.py ? | 21:15 |
piyushbansal | ^ sorry, wrong window | 21:15 |
roonyH | yes I added the view in callback.py | 21:17 |
roonyH | i can browse this page from the browser manually | 21:17 |
piyushbansal | and have you also modified the url_names.py ? | 21:19 |
piyushbansal | If you have actually done, all that you;re saying, I don;t think I can think of anything else | 21:19 |
*** TheMonster has joined #melange | 21:19 | |
TheMonster | Merio, hello are you available? | 21:20 |
piyushbansal | roonyH ? | 21:21 |
roonyH | piyushbansal | 21:21 |
roonyH | its ok | 21:21 |
piyushbansal | did you modify the url_names as well ? | 21:21 |
roonyH | thanks for trying to help | 21:21 |
roonyH | yes I did | 21:21 |
piyushbansal | btw, where is SubscribedTasksList declared ? | 21:24 |
roonyH | in a new module | 21:24 |
roonyH | new module named subscribed_tasks in the gci/views directory | 21:26 |
piyushbansal | If you're sure that you have done that part correctly, there's not much that's coming to my mind right now. | 21:28 |
roonyH | its ok | 21:28 |
roonyH | thank you very much | 21:28 |
piyushbansal | np :) | 21:31 |
Merio | TheMonster: hi :) | 21:35 |
TheMonster | hello :) | 21:35 |
TheMonster | so , I took a look trhough the list of ideas for GSoC | 21:36 |
TheMonster | and I have Javascript,Python, HTML and CSS knowledge | 21:37 |
Merio | yes.. | 21:37 |
TheMonster | I wanted to know what steps should I take to join the Javascript List Enhancements | 21:38 |
TheMonster | I mean like, could you send me something like an assignment to work on for now before making my proposal | 21:40 |
TheMonster | to decide whether I can do it or not ? | 21:40 |
Merio | TheMonster: there is a thread on going with another student about that project, so you might want to read it and participate https://groups.google.com/d/topic/melange-soc-dev/l5CdVZ7ammw/discussion | 21:42 |
tpb | <http://ln-s.net/-2f6> (at groups.google.com) | 21:43 |
*** r0bby is now known as robbyoconnor | 21:44 | |
TheMonster | Merio, ok thanks for that. Can I also ask you for the name of Daniel Hans here ? | 21:45 |
*** desophos has quit IRC | 21:46 | |
Merio | TheMonster: no problem, what do you mean for the name of Daniel Hans? | 21:46 |
TheMonster | I mean his name here on IRC | 21:47 |
TheMonster | I can't seem to find a name that looks like him here | 21:47 |
TheMonster | or any other possible mean of contact :) | 21:47 |
Merio | TheMonster: he's not on IRC, the best way to get in touch with him is the mailing list | 21:50 |
TheMonster | ok, Thanks | 21:50 |
*** roonyH has quit IRC | 21:53 | |
Merio | TheMonster: yw :) | 21:53 |
*** Darrel has quit IRC | 22:08 | |
*** r0bby has joined #melange | 22:20 | |
*** robbyoconnor has quit IRC | 22:23 | |
*** r0bby is now known as robbyoconnor | 22:27 | |
*** kkthecoder has quit IRC | 22:47 | |
*** dhaun has quit IRC | 23:00 | |
*** Zhuochun has joined #melange | 23:18 | |
*** asmeurer has joined #melange | 23:23 | |
*** desophos has joined #melange | 23:27 | |
*** r0bby has joined #melange | 23:48 | |
*** robbyoconnor has quit IRC | 23:49 | |
*** asmeurer has quit IRC | 23:50 | |
*** r0bby is now known as robbyoconnor | 23:55 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!