[Buildbot-commits] [Buildbot] #2296: TemplateAssertionError: no test named 'mapping'

Buildbot nobody at buildbot.net
Sat May 12 15:16:10 UTC 2012


#2296: TemplateAssertionError: no test named 'mapping'
-------------------+--------------------
Reporter:  dustin  |       Owner:
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:  0.8.7
 Version:  master  |  Resolution:
Keywords:          |
-------------------+--------------------

Comment (by dustin):

 {{{
 #! patch
 commit cf4309e4ae34f37d2a11b473dc5886335abea896
 Author: Dustin J. Mitchell <dustin at mozilla.com>
 Date:   Sat May 12 10:07:34 2012 -0500

     add a 'mapping' test for Jinja

     This makes the template changes in c977f04d work.

 diff --git a/master/buildbot/status/web/base.py
 b/master/buildbot/status/web/base.py
 index 5e8902c..87050b3 100644
 --- a/master/buildbot/status/web/base.py
 +++ b/master/buildbot/status/web/base.py
 @@ -514,6 +514,8 @@ def createJinjaEnv(revlink=None,
 changecommentlink=None,

      env.install_null_translations() # needed until we have a proper i18n
 backend

 +    env.tests['mapping'] = lambda obj : isinstance(obj, dict)
 +
      env.filters.update(dict(
          urlencode = urllib.quote,
          email = emailfilter,
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2296#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list