Refs #26092 -- Added @skipUnlessDBFeature to a test.

This commit is contained in:
Tim Graham 2016-01-21 08:05:16 -05:00
parent f91b5a7e4b
commit fb4272f0e6
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals
from datetime import datetime
from operator import attrgetter
from django.test import TestCase
from django.test import TestCase, skipUnlessDBFeature
from .models import (
CustomMembership, Employee, Event, Friendship, Group, Ingredient,
@ -198,6 +198,7 @@ class M2mThroughTests(TestCase):
attrgetter("name")
)
@skipUnlessDBFeature('supports_microsecond_precision')
def test_order_by_relational_field_through_model(self):
CustomMembership.objects.create(person=self.jim, group=self.rock)
CustomMembership.objects.create(person=self.bob, group=self.rock)