Skip to content

Commit

Permalink
Merge pull request #467 from freedomofpress/missing-inits
Browse files Browse the repository at this point in the history
Restore missing inits
  • Loading branch information
conorsch authored Apr 25, 2018
2 parents 11f8ee2 + a47af27 commit bf510a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
Empty file added home/__init__.py
Empty file.
19 changes: 8 additions & 11 deletions home/tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ class TestHomepage(TestCase):
def setUp(self):
self.title = 'Awesome'
self.description = 'Cool'
self.features_title = 'Features'
self.instances_title = 'Instances'
self.features_header = 'Features'
self.instances_header = 'Instances'
self.home = HomePageFactory(
title=self.title,
description=json.dumps([
{'type': 'rich_text', 'value': self.description}
]),
features_title=self.features_title,
instances_title=self.instances_title,
features_header=self.features_header,
instances_header=self.instances_header,
)
self.search_content = self.home.get_search_content()

Expand All @@ -26,11 +26,8 @@ def test_get_search_content_indexes_title(self):
def test_get_search_content_indexes_description(self):
self.assertIn(self.description, self.search_content)

def test_get_search_content_index_blog_page_titles(self):
self.assertIn(self.blog_title, self.search_content)
def test_get_search_content_indexes_features_header(self):
self.assertIn(self.features_header, self.search_content)

def test_get_search_content_indexes_features_title(self):
self.assertIn(self.features_title, self.search_content)

def test_get_search_content_indexes_instances_title(self):
self.assertIn(self.instances_title, self.search_content)
def test_get_search_content_indexes_instances_header(self):
self.assertIn(self.instances_header, self.search_content)
Empty file added marketing/__init__.py
Empty file.
Empty file added marketing/tests/__init__.py
Empty file.

0 comments on commit bf510a1

Please sign in to comment.