Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created August 18, 2011 17:16
Show Gist options
  • Save andymckay/1154562 to your computer and use it in GitHub Desktop.
Save andymckay/1154562 to your computer and use it in GitHub Desktop.
+{% if waffle.switch('marketplace') %}
+ <div class="action-needed">
+ <h3>{{ _('Enrolling in Marketplace') }}</h3>
+ <p >{% trans doc_url=url('devhub.docs', doc_name='marketplace'),
+ payments_url=url('devhub.addons.payments', addon.slug) %}
+ If this is a premium add-on you wish to sell in our Marketplace, be sure to enroll
+ on the <a href="{{ payments_url }}">Manage Payments</a> page
+ <b>before</b> your add-on is reviewed by an editor. <a href="{{ doc_url }}">Learn more</a>.
+ {% endtrans %}</p>
+ </div>
+{% endif %}
{% endblock %}
+ def test_marketplace(self):
+ addon = Addon.objects.get(pk=3615)
+ with patch_waffle('switch', lambda x: True):
+ res = self.client.get(reverse('devhub.submit.7',
+ args=[addon.slug]))
+ eq_('If this is a premium add-on' in res.content, True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment