Commit 230608e2 by Oleg Marshev

Remove test.

parent 80e3fa71
......@@ -61,18 +61,3 @@ class NoteTest(TestCase):
def test_get_model(self):
self.assertIsInstance(NoteMappingType.get_model()(), Note)
def test_get_mapping(self):
expected_mapping = {
'properties': {
'id': {'type': 'string', 'index': 'not_analyzed', 'store': True},
'user': {'type': 'string', 'index': 'not_analyzed', 'store': True},
'course_id': {'type': 'string', 'index': 'not_analyzed', 'store': True},
'usage_id': {'type': 'string', 'index': 'not_analyzed', 'store': True},
'text': {'type': 'string', 'analyzer': 'snowball', 'store': True},
'quote': {'type': 'string', 'analyzer': 'snowball', 'store': True},
'created': {'type': 'date', 'store': True},
'updated': {'type': 'date', 'store': True},
}
}
self.assertEqual(NoteMappingType.get_mapping(), expected_mapping)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment