Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-moola committed Sep 17, 2018
1 parent b9c5aeb commit 0f76db0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions molo/servicedirectory/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def test_location_results_view(self):
response, 'servicedirectory/location_results.html')

def test_organisation_results_view(self):
data = {'categories[]': [1, 2], 'keywords[]': ['key1', 'key2']}
data = {
'radius': 5,
'categories[]': [1, 2],
'keywords[]': ['key1', 'key2']
}
response = self.client.get(
reverse('molo.servicedirectory:organisation-results'),
data=data
Expand All @@ -174,7 +178,7 @@ def test_organisation_results_view(self):
self.assertEqual(context['categories'], [1, 2])
self.assertEqual(context['keywords'], ['key1', 'key2'])
self.assertEqual(
response.context['SERVICE_DIRECTORY_RADIUS'], 25)
response.context['SERVICE_DIRECTORY_RADIUS'], 5)

self.assertContains(
response, 'type="hidden" name="categories[]" value="1"')
Expand Down

0 comments on commit 0f76db0

Please sign in to comment.