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

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

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!