IRC logs of #tryton for Monday, 2014-04-28

chat.freenode.net #tryton log beginning Mon Apr 28 00:00:02 CEST 2014
2014-04-28 00:34 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2014-04-28 00:56 -!- cjbarnes18(~craig@host86-177-95-127.range86-177.btcentralplus.com) has joined #tryton
2014-04-28 01:16 -!- sharoonthomas(~sharoonth@122.177.40.40) has joined #tryton
2014-04-28 01:49 -!- udono(~udono@213.218.23.18) has joined #tryton
2014-04-28 03:25 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-04-28 03:38 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 03:49 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-04-28 04:14 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 05:05 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-04-28 06:14 -!- digitalsatori(~Thunderbi@101.87.135.141) has joined #tryton
2014-04-28 06:24 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 06:26 -!- acu(~acu@50.244.13.222) has joined #tryton
2014-04-28 06:30 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 06:40 -!- frispete_(~frispete@p54A93E15.dip0.t-ipconnect.de) has joined #tryton
2014-04-28 07:00 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 07:16 -!- yangoon(~mathiasb@p549F1D38.dip0.t-ipconnect.de) has joined #tryton
2014-04-28 08:04 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 08:13 -!- digitalsatori(~Thunderbi@101.87.135.141) has joined #tryton
2014-04-28 08:14 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 08:50 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-04-28 08:53 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-04-28 09:00 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 09:00 <mar> invoice_lines = Pool().get('account.invoice.line').search(
2014-04-28 09:00 <mar> [('origin', '=', move.origin),]
2014-04-28 09:00 <mar> )
2014-04-28 09:00 <mar> how do I do something like this?
2014-04-28 09:05 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-04-28 09:05 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-04-28 09:14 -!- vernicho1(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-28 09:15 -!- rhowe(~rhowe@87-127-165-237.static.enta.net) has joined #tryton
2014-04-28 09:21 -!- bechamel(~Adium@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2014-04-28 09:25 -!- frispete(~frispete@p54A93E15.dip0.t-ipconnect.de) has joined #tryton
2014-04-28 09:30 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-04-28 09:30 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 09:34 -!- bechamel(~Adium@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2014-04-28 09:49 -!- corro(~corro@46.22.23.85) has joined #tryton
2014-04-28 09:50 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-28 09:57 -!- digitalsatori(~Thunderbi@101.87.135.141) has joined #tryton
2014-04-28 10:19 -!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton
2014-04-28 11:08 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-04-28 11:15 <mar> is there any way to make tryton tests run faster (like preset db or somthing)?
2014-04-28 12:05 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 12:06 -!- meanmicio(~lfm@55.Red-81-38-113.dynamicIP.rima-tde.net) has joined #tryton
2014-04-28 12:06 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-28 12:09 <pokoli> mar: how long does your test spend?
2014-04-28 12:58 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-28 13:01 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-28 13:16 -!- mario_(~quassel@host83.186-109-100.telecom.net.ar) has joined #tryton
2014-04-28 13:18 <mar> pokoli, 40s
2014-04-28 13:18 <mar> it probably builds database each time
2014-04-28 13:18 <mar> because I remove it after each test
2014-04-28 13:19 -!- mariomop(~quassel@host83.186-109-100.telecom.net.ar) has joined #tryton
2014-04-28 13:19 <pokoli> mar: unitest or doctest?
2014-04-28 13:19 <mar> unit
2014-04-28 13:20 <mar> but it's more like integration test, because it doesn't mock other modules
2014-04-28 13:20 <pokoli> mar: so you are installing a lot of other modules=
2014-04-28 13:20 <pokoli> ??
2014-04-28 13:20 <mar> yeah
2014-04-28 13:20 <mar> i'm installing one, but it has like 6 dependencies
2014-04-28 13:20 <pokoli> mar: so it's normal that it spends 40s, as it has to install all modules every time
2014-04-28 13:21 <mar> can I avoid that?
2014-04-28 13:21 <mar> I mean can I create some kind of cache that expires or something?
2014-04-28 13:21 <pokoli> mar: AFAIK no
2014-04-28 13:21 <pokoli> mar: and I will not recomend to do it
2014-04-28 13:21 <mar> what if I dump database to file and load if in setUp, and don't run install_movule?
2014-04-28 13:22 <pokoli> mar: if module adds new fields, your database will be out of sync and the test will break
2014-04-28 13:22 <mar> so i'll remove my "cache" then
2014-04-28 13:31 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-28 13:46 <pokoli> mar: we have modules that their test spends 5-6 minutes
2014-04-28 14:07 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-04-28 14:26 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 14:49 <mar> how do I reset contxt?
2014-04-28 14:53 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-28 15:08 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 15:12 <pokoli> mar: just use with Transaction().set_context
2014-04-28 15:12 <pokoli> mar: and it gets cleaned when the with block ends
2014-04-28 15:13 <mar> i have model with
2014-04-28 15:13 <mar> Eval('context', {}).get('company'))
2014-04-28 15:16 <mar> and it has company on second test for some reason :;/
2014-04-28 15:30 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 15:37 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 15:45 -!- rafiu(~Adium@host81-139-108-242.in-addr.btopenworld.com) has joined #tryton
2014-04-28 15:52 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 15:54 <pokoli> mar: have a look at http://hg.tryton.org/modules/company/file/b351c63afd5a/tests/test_company.py#l123
2014-04-28 16:05 -!- pobsteta(~Thunderbi@37.163.235.157) has joined #tryton
2014-04-28 16:09 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-28 16:14 <mar> pokoli, i get assert self.cursor is None
2014-04-28 16:29 <pokoli> mar: you miss a withhttp://hg.tryton.org/modules/company/file/b351c63afd5a/tests/test_company.py#l92
2014-04-28 16:31 <mar> i don't :/
2014-04-28 16:32 <pokoli> mar: can you paste your full test method?
2014-04-28 17:15 -!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton
2014-04-28 17:17 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-04-28 17:43 -!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton
2014-04-28 17:58 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-04-28 18:20 -!- mariomop(~quassel@host83.186-109-100.telecom.net.ar) has joined #tryton
2014-04-28 18:24 -!- smarro(~sebastian@181.47.135.16) has joined #tryton
2014-04-28 19:12 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton
2014-04-28 21:00 -!- meanmicio(~lfm@55.Red-81-38-113.dynamicIP.rima-tde.net) has joined #tryton
2014-04-28 21:00 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-28 21:01 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-04-28 21:10 -!- mariomop(~quassel@host83.186-109-100.telecom.net.ar) has joined #tryton
2014-04-28 21:12 -!- mar(~marius@84.240.20.35) has joined #tryton
2014-04-28 22:06 -!- naringas(~naringas@187.171.98.92) has joined #tryton
2014-04-28 22:08 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton
2014-04-28 23:21 -!- meanmicio(~lfm@55.Red-81-38-113.dynamicIP.rima-tde.net) has joined #tryton
2014-04-28 23:21 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-28 23:40 -!- smarro(~sebastian@190.105.93.196) has joined #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!