Hi Olivier, thanks for your kind reply. I've been hit by a storm of work these two last weeks, and have not been able to do much on that topic until yesterday.
Follow-up on the framework experts team, as you suggest, Cheers. Le 01/09/2011 17:05, Olivier Dony a écrit : > On 08/28/2011 02:19 PM, Georges Racinet wrote: >> After a quick search on launchpad, and a code read, I couldn't find much >> on the matter of cleanly make assertions about exceptions in Yaml tests. >> >> To say it quickly, I'm thinking of an analog of unittest's assertRaises >> (http://docs.python.org/library/unittest.html#unittest.TestCase.assertRaises) > You're right, there's currently no provision for assertRaises-like tests > in YAML, except via a custom !python block with a try/except, as you noted. > > >> In any case, if that's something really missing in the yaml testing >> framework, I'd be glad to blueprint and implement it (although a >> backport to 6.0 branch would be our primary interest) > That would certainly be a welcome contribution! The chance of seeing it > merged in 6.0 are low however, as the stable branches policy restricts > allowed patches to bugfixes only. > That said, it could be merged in trunk and thus part of the upcoming > 6.1, and nothing prevents you to run your own yaml-patched 6.0 server > for your 6.0 developments, until you decide to move on to 6.1. You'd > still have the guarantee that those tests would be ready for 6.1. > > As for shaping up such a blueprint, may I suggest the mailing-list of > the framework experts team > (https://launchpad.net/~openerp-expert-framework) as an appropriate > place to discuss it? -- Georges Racinet Anybox SAS, http://anybox.fr _______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp

