~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/person-views.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-08-28 23:35:29 UTC
  • mfrom: (11462.1.4 disable-gmaps-0)
  • Revision ID: launchpad@pqm.canonical.com-20100828233529-7l4saytfk906c1vm
[r=lifeless][ui=none][bug 624981] Add a rudimentary feature flag to
        disable Google maps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
When the user set's his visibility to True, needs_gmap2 will be true and
348
348
the map_portlet_html can be called.
349
349
 
 
350
    >>> from lp.services.features.model import FeatureFlag, getFeatureStore
 
351
    >>> ignore = getFeatureStore().add(FeatureFlag(
 
352
    ...     scope=u'default', flag=u'gmap2', value=u'on', priority=1))
 
353
    >>> transaction.commit()
 
354
 
350
355
    >>> login_person(sample_person)
351
356
    >>> sample_person.setLocationVisibility(True)
352
357