1 2014-07-01T00:07:02  *** sl33k_ has quit IRC
   2 2014-07-01T04:25:27  *** dimazest has quit IRC
   3 2014-07-01T04:27:29  *** dimazest_ has joined #moin-dev
   4 2014-07-01T05:33:40  *** sl33k_ has joined #moin-dev
   5 2014-07-01T06:07:03  *** skathpalia has joined #moin-dev
   6 2014-07-01T06:10:02  *** sl33k_ has quit IRC
   7 2014-07-01T06:22:33  *** sl33k_ has joined #moin-dev
   8 2014-07-01T06:22:41  *** sl33k_ has quit IRC
   9 2014-07-01T06:22:41  *** sl33k_ has joined #moin-dev
  10 2014-07-01T07:02:40  *** sl33k_ has quit IRC
  11 2014-07-01T07:11:30  <skathpalia> dimazest_, I am now working on creating tests for +tickets view but I am a bit confused
  12 2014-07-01T07:11:59  <skathpalia> I am not able to figure out what exactly should be done in the tests
  13 2014-07-01T07:12:38  <skathpalia> I mean should we create some new tickets in the tests?
  14 2014-07-01T07:12:50  <skathpalia> or use the existing tickets?
  15 2014-07-01T07:13:42  <skathpalia> dimazest_, Can you please give just an overview of how tests should look like?
  16 2014-07-01T07:20:34  <dimazest_> usually a test should create all the items it needs
  17 2014-07-01T07:22:26  <dimazest_> so there will be three steps, ticket creation, code exeсution and result assertion
  18 2014-07-01T07:22:53  *** dimazest_ is now known as dimazest
  19 2014-07-01T07:25:28  <dimazest> maybe it's a good idea to do functional tests
  20 2014-07-01T07:25:28  <dimazest> https://bitbucket.org/thomaswaldmann/moin-2.0/src/647ee04f863e71976300646c938787bf668e3ce7/_ui_tests/?at=default
  21 2014-07-01T07:27:31  <skathpalia> dimazest, Shouldn't the tests be written in apps/frontend/_tests/test_frontend.py ?
  22 2014-07-01T07:28:18  <skathpalia> for checking tickets method in frontend.py
  23 2014-07-01T07:29:11  <dimazest> no, for chacking that webpages are showing everything needed
  24 2014-07-01T07:29:34  * dimazest is looking for a nice test example
  25 2014-07-01T07:30:15  <dimazest> let's first decide what functionality we want to test
  26 2014-07-01T07:31:44  <skathpalia> We want to check the filter by tags, search, sorting according to time and status functionality
  27 2014-07-01T07:37:47  <dimazest> os if we do fileter by tags
  28 2014-07-01T07:38:04  <dimazest> first we need to create several tickets with different tags
  29 2014-07-01T07:38:35  <dimazest> then open the tickets page (if we do a functional test) select a couple of tags
  30 2014-07-01T07:38:51  <dimazest> and check that only needed tickets are shown
  31 2014-07-01T07:39:01  <dimazest> sorry, but i need to go
  32 2014-07-01T07:39:30  <dimazest> did you use pytest?
  33 2014-07-01T07:39:45  <skathpalia> No
  34 2014-07-01T07:40:58  <dimazest> then get familiar with it http://pytest.org/latest/contents.html
  35 2014-07-01T07:41:46  <dimazest> especially this http://pytest.org/latest/fixture.html
  36 2014-07-01T07:42:17  <skathpalia> Ok I will have a look at them and try to write some basic tests :)
  37 2014-07-01T07:53:59  *** skathpalia has quit IRC
  38 2014-07-01T08:51:22  *** randomax has quit IRC
  39 2014-07-01T09:10:32  *** greg_f has joined #moin-dev
  40 2014-07-01T09:13:50  *** randomax has joined #moin-dev
  41 2014-07-01T10:10:21  *** skathpalia has joined #moin-dev
  42 2014-07-01T10:12:04  *** sl33k_ has joined #moin-dev
  43 2014-07-01T12:32:20  *** randomax has quit IRC
  44 2014-07-01T12:54:32  *** sl33k_ has quit IRC
  45 2014-07-01T13:06:22  *** sl33k_ has joined #moin-dev
  46 2014-07-01T13:13:58  <skathpalia> dimazest, made a sample test http://rn0.me/show/x1KYxVguUY2MdeXowTAq/
  47 2014-07-01T13:16:00  <skathpalia> In this ticket is created and then it goes to +tickets view and clicks on Closed button to display only closed tickets and then it checks for the value shown in the list of tickets
  48 2014-07-01T13:19:29  <skathpalia> tests should be written this way only, right?
  49 2014-07-01T13:25:14  *** randomax has joined #moin-dev
  50 2014-07-01T13:26:36  *** dave_largo has joined #moin-dev
  51 2014-07-01T13:29:52  *** skathpalia has quit IRC
  52 2014-07-01T13:36:23  *** randomax has quit IRC
  53 2014-07-01T13:42:36  *** sl33k_ has quit IRC
  54 2014-07-01T13:44:56  *** sl33k_ has joined #moin-dev
  55 2014-07-01T13:59:45  *** ChanServ sets mode: +o ThomasWaldmann
  56 2014-07-01T13:59:59  *** ThomasWaldmann changes topic to "MoinMoin Developer Channel - this channel is publicly logged - https://paste.thinkmo.de - just ask/tell AND WAIT."
  57 2014-07-01T14:00:14  *** ChanServ sets mode: -o ThomasWaldmann
  58 2014-07-01T14:01:10  <ThomasWaldmann> (still beta and one needs a password to create pastebins, ask for one if you want to help testing it)
  59 2014-07-01T14:04:36  *** RogerHaase has joined #moin-dev
  60 2014-07-01T14:25:17  *** skathpalia has joined #moin-dev
  61 2014-07-01T14:40:45  *** sl33k_ has quit IRC
  62 2014-07-01T14:46:24  *** skathpalia has quit IRC
  63 2014-07-01T15:10:35  *** randomax has joined #moin-dev
  64 2014-07-01T15:38:25  <randomax> RogerHaase, wrote some notes on the etherpad
  65 2014-07-01T15:38:32  <randomax> http://etherpad.osuosl.org/moin-improve-gui
  66 2014-07-01T15:58:16  *** skathpalia has joined #moin-dev
  67 2014-07-01T16:15:39  *** sl33k_ has joined #moin-dev
  68 2014-07-01T16:20:03  *** sl33k_ has quit IRC
  69 2014-07-01T16:45:57  <RogerHaase> randomax: are you able to successfully change the ACL for an item?
  70 2014-07-01T16:58:05  *** sl33k_ has joined #moin-dev
  71 2014-07-01T17:13:08  *** skathpalia has quit IRC
  72 2014-07-01T17:29:22  <randomax> RogerHaase, havent tried that..
  73 2014-07-01T17:29:53  <randomax> i'll work on a demo view for the user-wise tab
  74 2014-07-01T17:30:29  <randomax> showing acl rights for an object on the show view would be appropriate i guess
  75 2014-07-01T17:30:51  <randomax> also we can show rights for anonymous user and the logged in user
  76 2014-07-01T17:30:59  <randomax> in case they log in
  77 2014-07-01T17:45:14  <RogerHaase> randomax: I get a bunch of tracebacks trying to create ACLs, then trying to access item. Looking at docs to see if I am doing it right....
  78 2014-07-01T17:51:15  <randomax> RogerHaase, i think it does get saved
  79 2014-07-01T17:52:13  <randomax> i tried removing my permissions to read Home, it did show an error but the error said i wasnt allowed to read or pubread home
  80 2014-07-01T17:52:34  <randomax> as in an AccessDenied error but with a traceback
  81 2014-07-01T18:26:44  <RogerHaase> randomax: I have the same results
  82 2014-07-01T18:31:47  *** greg_f has quit IRC
  83 2014-07-01T18:37:53  <randomax> so should we display an AccessDenied page, same as we see in Admin section
  84 2014-07-01T18:44:07  <RogerHaase> randomax: yes, I did manage to get an access denied page (without a traceback)  by messing with wikiconfig_editme.py, but still confused as to how this is supposed to work
  85 2014-07-01T18:54:05  *** sl33k_ has quit IRC
  86 2014-07-01T18:56:44  *** sl33k_ has joined #moin-dev
  87 2014-07-01T19:40:30  <dimazest> is the licensing issue of selenium and moin is so severe, that tests that use selenium can't access moin functions?
  88 2014-07-01T19:44:06  <dimazest> it worth considering using https://github.com/paylogic/pytest-splinter
  89 2014-07-01T19:45:23  <dimazest> which nicely integrates pytest and privides a nicer api to selenium
  90 2014-07-01T20:42:20  *** randomax has quit IRC
  91 2014-07-01T20:51:03  *** sl33k_ has quit IRC
  92 2014-07-01T21:04:54  *** sl33k_ has joined #moin-dev
  93 2014-07-01T21:11:21  *** dave_largo has quit IRC
  94 2014-07-01T21:12:43  *** magu_cic has joined #moin-dev
  95 2014-07-01T22:30:01  *** RogerHaase has quit IRC
  96 2014-07-01T22:44:07  <ThomasWaldmann> AccessDenied: item does not allow user '[u'RogerHaase']' to ''read or pubread'' [u'all:read']
  97 2014-07-01T22:44:43  <ThomasWaldmann> that looks like it gets a list of names where it expects a single name
  98 2014-07-01T23:39:01  *** sl33k_ has quit IRC
  99 2014-07-01T23:50:30  *** penguinRaider has joined #moin-dev
 100 

MoinMoin: MoinMoinChat/Logs/moin-dev/2014-07-01 (last edited 2014-07-01 00:15:03 by IrcLogImporter)