-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test fixes, hide verbose test output
- Loading branch information
Showing
6 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf8 -*- | ||
import json | ||
from paying_for_college.models import School | ||
from paying_for_college.search_indexes import SchoolIndex | ||
|
||
from django.test import TestCase | ||
from paying_for_college.search_indexes import SchoolIndex | ||
from paying_for_college.models import School | ||
|
||
|
||
class SchoolIndexTest(TestCase): | ||
|
||
fixtures = ['paying_for_college/fixtures/test_fixture.json'] | ||
fixtures = ['test_fixture.json'] | ||
MOCK_INDEX = SchoolIndex() | ||
mock_obj = School.objects.get(pk=155317) | ||
|
||
def test_index(self): | ||
self.assertTrue(self.MOCK_INDEX.get_model() == School) | ||
self.assertTrue(self.MOCK_INDEX.index_queryset().count() == | ||
School.objects.count()) | ||
self.assertTrue('Jayhawks' in | ||
self.MOCK_INDEX.prepare_autocomplete(self.mock_obj)) | ||
|
||
mock_obj = School.objects.get(pk=155317) | ||
self.assertTrue( | ||
'Jayhawks' in self.MOCK_INDEX.prepare_autocomplete(mock_obj) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters