On Mon, Nov 2, 2009 at 1:48 AM, Brandon Craig Rhodes <[email protected]> wrote: > > Michael Dunstan <[email protected]> writes: > >> The Google Checkout processor tests fabricate the incoming signals >> from the checkout server... > > Well, that's an interesting idea! At first it sounds like an > unconvincing test, but I guess if the XML you injected in the test was > actual real XML from Google that you'd captured during a by-hand test of > the callback, then you are indeed testing against real data and real > Google behavior. I like the approach enough to be comfortable with it! > If the sprinters want to kick off a callback from PayPal, capture the > steps, and replay them in their test, I think that will be a huge step > forward. Thanks for this simplification!
Yeah - that's the same XML that would have come from Google Checkout. Obviously if the XML from Google Checkout changes then the tests would need to be updated. There are some traceback supplements in the getpaid.googlecheckout processor which log the received XML in the case of an error in the wild. See TracebackSupplement and NotifyTracebackSupplement of http://code.google.com/p/getpaid/source/browse/getpaid.googlecheckout/trunk/src/getpaid/googlecheckout/googlecheckout.py That should help with the process of updating the tests if there is a significant change in the XML from Google Checkout. Well - needs to be a fatal enough error to cause an exception to be thrown. (Unfortunately I don't see any tests for those traceback supplements.) -- Michael Dunstan --~--~---------~--~----~------------~-------~--~----~ GetPaid for Plone: http://www.plonegetpaid.com (overview info) | http://code.google.com/p/getpaid (code and issue tracker) You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
