1 2011-05-26T00:31:39  *** RogerHaase has left #moin-dev
   2 2011-05-26T00:50:31  *** m4k3r has quit IRC
   3 2011-05-26T01:48:39  *** ronny has quit IRC
   4 2011-05-26T01:50:58  *** ronny has joined #moin-dev
   5 2011-05-26T04:03:06  *** CIA-69 has quit IRC
   6 2011-05-26T04:30:46  *** CIA-64 has joined #moin-dev
   7 2011-05-26T05:14:02  *** sinha has joined #moin-dev
   8 2011-05-26T05:15:58  *** Marchael has joined #moin-dev
   9 2011-05-26T05:16:24  <Marchael> moin
  10 2011-05-26T05:29:13  *** MattMaker has quit IRC
  11 2011-05-26T05:32:40  *** Marchael has quit IRC
  12 2011-05-26T05:34:27  *** Marchael has joined #moin-dev
  13 2011-05-26T05:40:42  *** CIA-64 has quit IRC
  14 2011-05-26T05:41:55  *** CIA-53 has joined #moin-dev
  15 2011-05-26T06:15:26  *** aa_ has quit IRC
  16 2011-05-26T06:34:53  *** hardy_89 has joined #moin-dev
  17 2011-05-26T06:45:00  *** hardy_89 has quit IRC
  18 2011-05-26T06:45:21  *** hardy_89 has joined #moin-dev
  19 2011-05-26T06:46:16  *** aa_ has joined #moin-dev
  20 2011-05-26T06:46:38  *** hardy_89 has joined #moin-dev
  21 2011-05-26T06:48:30  *** hardy_89 has quit IRC
  22 2011-05-26T06:48:53  *** hardy_89 has joined #moin-dev
  23 2011-05-26T07:16:08  *** m4k3r has joined #moin-dev
  24 2011-05-26T07:41:32  *** MattMaker has joined #moin-dev
  25 2011-05-26T07:48:31  *** MattMaker has quit IRC
  26 2011-05-26T07:48:48  *** MattMaker has joined #moin-dev
  27 2011-05-26T07:59:16  *** CIA-53 has quit IRC
  28 2011-05-26T08:04:55  *** m4k3r has quit IRC
  29 2011-05-26T08:11:52  *** CIA-69 has joined #moin-dev
  30 2011-05-26T08:44:10  *** andialbrecht_ is now known as andialbrecht
  31 2011-05-26T09:00:53  *** ronny has quit IRC
  32 2011-05-26T09:05:25  *** gwork has joined #moin-dev
  33 2011-05-26T09:38:39  *** Marchael has quit IRC
  34 2011-05-26T10:01:20  *** ronny has joined #moin-dev
  35 2011-05-26T10:33:18  *** Marchael has joined #moin-dev
  36 2011-05-26T10:38:41  *** MattMaker has quit IRC
  37 2011-05-26T11:14:04  *** Marchael has quit IRC
  38 2011-05-26T11:14:19  *** Marchael has joined #moin-dev
  39 2011-05-26T11:18:00  *** hardy_89 has left #moin-dev
  40 2011-05-26T11:20:13  *** greg_f has joined #moin-dev
  41 2011-05-26T11:24:09  <ThomasWaldmann> moin
  42 2011-05-26T11:47:07  *** Marchael has quit IRC
  43 2011-05-26T11:49:01  *** ronny has quit IRC
  44 2011-05-26T11:50:13  *** ronny has joined #moin-dev
  45 2011-05-26T11:52:24  *** gwork has quit IRC
  46 2011-05-26T11:59:07  *** Marchael has joined #moin-dev
  47 2011-05-26T12:03:55  *** Marchael has quit IRC
  48 2011-05-26T12:41:56  *** andialbrecht is now known as andialbrecht_
  49 2011-05-26T12:45:56  <ronny> moin
  50 2011-05-26T12:58:34  <dreimark> moin
  51 2011-05-26T13:58:26  *** Marchael has joined #moin-dev
  52 2011-05-26T14:02:31  *** ronny has quit IRC
  53 2011-05-26T14:10:21  *** Marchael has quit IRC
  54 2011-05-26T14:10:26  *** Marchael has joined #moin-dev
  55 2011-05-26T14:35:06  <Marchael> ThomasWaldmann: are you here?
  56 2011-05-26T14:37:18  <ThomasWaldmann> Marchael: please learn about asking questions on irc
  57 2011-05-26T14:39:05  <Marchael> ok, then I'll keep silence
  58 2011-05-26T14:42:54  <ThomasWaldmann> i didn't say shut up, but that you should learn about how to effectively ask questions
  59 2011-05-26T14:43:37  <ThomasWaldmann> that is, in short, "ask directly and precisely what you want to know and wait"
  60 2011-05-26T14:45:40  <ThomasWaldmann> (esp. do not ask to ask, do no ask if somebody is there, do not leave after asking if you do not get immediate response)
  61 2011-05-26T14:48:54  <Marchael> sorry, but I jsut want to know what you are here. My problem with wirting test for AclTokenizer. I look at examples in MoinMoin/security/_tests/test_security.py(from line 200). And looks like it is work well. But if I copy paste code related with TestAcl class to other file I get error. I'm using this code http://paste.pocoo.org/show/395542/
  62 2011-05-26T14:50:02  <ThomasWaldmann> python2: command not found
  63 2011-05-26T14:50:09  <Marchael> there is result http://paste.pocoo.org/show/395544/
  64 2011-05-26T14:50:17  <ThomasWaldmann> just leave away line 1
  65 2011-05-26T14:50:32  <Marchael> ThomasWaldmann: I'm using archlinux where python == python3 by default
  66 2011-05-26T14:51:07  <Marchael> so I using pyhon2 for 2.7.1
  67 2011-05-26T14:51:13  <ThomasWaldmann> so py.test yourtest.py will execute python3?
  68 2011-05-26T14:51:23  <Marchael> no
  69 2011-05-26T14:51:52  <ThomasWaldmann> you should use py.test, so if that works, just do it like that
  70 2011-05-26T14:52:00  <Marchael> you go through last link on paste?
  71 2011-05-26T14:52:06  <Marchael> > platform linux2 -- Python 2.7.1 -- pytest-2.0.3
  72 2011-05-26T14:53:05  <Marchael> ok, for next time I'll remove this line
  73 2011-05-26T14:54:15  <ThomasWaldmann> that is because there is no request context
  74 2011-05-26T14:54:26  <ThomasWaldmann> i already told you how to do that
  75 2011-05-26T14:54:44  <Marchael> ThomasWaldmann: but in test_security.py too
  76 2011-05-26T14:55:01  <Marchael> or I missed something
  77 2011-05-26T14:55:14  <ThomasWaldmann> you need to use py.test and have the test file located within moin
  78 2011-05-26T14:55:29  <ThomasWaldmann> then it'll use the conftest.py from moin and setup some stuff for you
  79 2011-05-26T14:56:23  <Marchael> hm, I put my testfile to MoinMoin/security/_tests
  80 2011-05-26T14:56:32  <ThomasWaldmann> and, if you are working on a clone of moin-2.0 main repo, you currently maybe better use py.test 1.3.x (it is automatically installed for you if you use quickinstall, and usable if you activeted the virtualenv)
  81 2011-05-26T14:59:25  <ThomasWaldmann> btw, it would make sense if you created a new MoinMoin.search package directory with a _test sub directory for your stuff
  82 2011-05-26T14:59:39  <ThomasWaldmann> _tests*
  83 2011-05-26T15:06:50  <Marchael> ok, then I'll use test reqeust context and py.test 1.3 fro writing test
  84 2011-05-26T15:08:52  <ThomasWaldmann> if you run the test inside moin, i think you don't need test_request_context (that's only as long as you experiment outside moin)
  85 2011-05-26T15:09:29  <ThomasWaldmann> have a look into MoinMoin/conftest.py so you see what I mean. that stuff is used for all tests in MoinMoin/...
  86 2011-05-26T15:11:05  * Marchael looks
  87 2011-05-26T15:59:54  <Marchael> ThomasWaldmann: can you point me to information about moin virtualenv?
  88 2011-05-26T16:19:14  <ThomasWaldmann> Marchael: docs/...
  89 2011-05-26T16:45:10  *** MattMaker has joined #moin-dev
  90 2011-05-26T17:17:30  <dreimark> Marchael: yesterday we talked about pytest-1.3 versus pytest-2.0 and you wanted to ask ThomasWaldmann - but now it should be also clear
  91 2011-05-26T17:18:34  <Marchael> ThomasWaldmann: I created MoinMoin/search/_tests and put my test here. But this error happening again. Should I rebuild virt env after creating new module?
  92 2011-05-26T17:18:53  <Marchael> dreimark: I'll use py.test 1.3 shipped with moin
  93 2011-05-26T17:19:08  <Marchael> s/1.3//
  94 2011-05-26T17:19:09  * dreimark readed backlog
  95 2011-05-26T17:19:30  <dreimark> there is not need to rebuild the env
  96 2011-05-26T17:20:04  <dreimark> because you have only changed sources of MoinMoin which is just a directory
  97 2011-05-26T17:24:36  <Marchael> tokenizers.py http://paste.pocoo.org/show/395646/ and test_token.py http://paste.pocoo.org/show/395647/
  98 2011-05-26T17:25:07  <Marchael> ./env/bin/py.test MoinMoin/search/_tests/test_token.py
  99 2011-05-26T17:25:10  *** ronny has joined #moin-dev
 100 2011-05-26T17:25:37  <Marchael> Result same as for running without virt env
 101 2011-05-26T17:26:12  <Marchael> s/for/when/
 102 2011-05-26T17:27:10  *** m4k3r has joined #moin-dev
 103 2011-05-26T17:27:58  <ThomasWaldmann> Marchael: if you activated the virtual env (as documented), you do not need ./env/bin/py.test, but just py.test
 104 2011-05-26T17:30:02  <Marchael> hm, I installed py.test from root using pip
 105 2011-05-26T17:30:25  <Marchael> looks like it was bad idea
 106 2011-05-26T17:30:31  <ThomasWaldmann> Marchael: tokenizers.py looks ok
 107 2011-05-26T17:30:50  <Marchael> test_token.py is a draft
 108 2011-05-26T17:30:53  <ThomasWaldmann> _tests/test_token.py -> please rename to test_tokenizers.py
 109 2011-05-26T17:31:02  <Marchael> I don't work much on it
 110 2011-05-26T17:31:05  <Marchael> ok
 111 2011-05-26T17:31:17  <ThomasWaldmann> and see all the other tests about how such tests should look like
 112 2011-05-26T17:31:26  <ThomasWaldmann> (use a test class)
 113 2011-05-26T17:32:24  <ThomasWaldmann> and you don't need to manually install py.test as quickinstall has done that for you / will do that for you
 114 2011-05-26T17:32:29  <Marchael> but, what's the problem with app.cfg? I build virt env in wrong way?
 115 2011-05-26T17:32:49  <ThomasWaldmann> i need the traceback you currently get
 116 2011-05-26T17:33:16  <ThomasWaldmann> and the commands you used to activate the virtual env and to call the test
 117 2011-05-26T17:33:34  <ThomasWaldmann> but as you don't seem to have a real test, that's likely the main problem
 118 2011-05-26T17:33:52  <Marchael> http://paste.pocoo.org/show/395660/
 119 2011-05-26T17:34:22  <ThomasWaldmann> test_token does not contain a test
 120 2011-05-26T17:34:42  <ThomasWaldmann> (in the sense of a "py.test test class")
 121 2011-05-26T17:35:26  <Marchael> I know, but general problem is what app.cfg is unreacheble
 122 2011-05-26T17:35:35  <ThomasWaldmann> no
 123 2011-05-26T17:35:44  <ThomasWaldmann> the general problem is that you're doing it wrong :)
 124 2011-05-26T17:36:01  <ThomasWaldmann> it will work if you do it as a py.test test
 125 2011-05-26T17:36:12  <ronny> hi
 126 2011-05-26T17:36:15  <ThomasWaldmann> because then the conftest.py magic will kick in
 127 2011-05-26T17:36:43  <ThomasWaldmann> hey ronny
 128 2011-05-26T17:39:42  <Marchael> ok, I'll try
 129 2011-05-26T17:41:43  *** Marchael has quit IRC
 130 2011-05-26T17:54:36  *** RogerHaase has joined #moin-dev
 131 2011-05-26T18:41:09  *** MattMaker has quit IRC
 132 2011-05-26T19:25:26  *** franklin_ has quit IRC
 133 2011-05-26T19:26:16  *** franklin_ has joined #moin-dev
 134 2011-05-26T19:30:36  *** Marchael has joined #moin-dev
 135 2011-05-26T19:42:07  *** greg_f has quit IRC
 136 2011-05-26T20:08:00  *** Marchael has quit IRC
 137 2011-05-26T20:30:27  *** MattMaker has joined #moin-dev
 138 2011-05-26T20:53:03  *** MattMaker has quit IRC
 139 2011-05-26T21:46:47  *** MattMaker has joined #moin-dev
 140 2011-05-26T22:04:49  *** MattMaker has quit IRC
 141 2011-05-26T23:40:44  *** grzywacz has joined #moin-dev
 142 2011-05-26T23:59:02  <RogerHaase> ThomasWaldmann: please review my bb repo - I rebuilt it to eliminate merges.  All changes were discussed a week to a month ago.  Still working on object overlay.

MoinMoin: MoinMoinChat/Logs/moin-dev/2011-05-26 (last edited 2011-05-25 22:45:03 by IrcLogImporter)