Skip to content

Commit

Permalink
Merge pull request #119 from alphagov/switch-on-a-to-z-page
Browse files Browse the repository at this point in the history
Switches on A-Z page
  • Loading branch information
minglis committed Jul 30, 2015
2 parents b02f658 + 74dceba commit 1d8aa49
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions app/templates/suppliers_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
<p class="supplier-description">
{{ supplier.description }}
</p>
{% if supplier.clients %}
<h2>Clients</h2>
<p class="supplier-description">
{{ ", ".join(supplier.clients) }}
</p>
{% endif %}
</div>
{% endif %}

Expand Down
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class Preview(Config):

class Live(Config):
DEBUG = False
FEATURE_FLAGS_SUPPLIER_A_TO_Z = enabled_since('2015-07-30')


configs = {
Expand Down
3 changes: 0 additions & 3 deletions tests/app/views/test_suppliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ def test_should_have_supplier_details_on_supplier_page(self):
assert_true(
"Example Company Limited is an innovation station sensation; we deliver software so bleeding edge you literally won&#39;t be able to run any of it on your systems." # noqa
in res.get_data(as_text=True))
assert_true(
self._strip_whitespace('<h2>Clients</h2><p class="supplier-description">UK Ministry of Defence, Astula Ltd, Bedrock Communications Ltd</p>') # noqa
in self._strip_whitespace(res.get_data(as_text=True)))

def test_should_show_supplier_with_no_desc_or_clients(self):
self._data_api_client.get_supplier.return_value = self.supplier_with_minimum_data # noqa
Expand Down

0 comments on commit 1d8aa49

Please sign in to comment.