Commit 02bc523b authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Renamed the fixtures used by the aggregation tests so they're only loaded by...

Renamed the fixtures used by the aggregation tests so they're only loaded by the tests that use them. Refs #17275.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent e4919f64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ from .models import Author, Publisher, Book, Store


class BaseAggregateTestCase(TestCase):
    fixtures = ["initial_data.json"]
    fixtures = ["aggregation.json"]

    def test_empty_aggregate(self):
        self.assertEqual(Author.objects.all().aggregate(), {})
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ from .models import Author, Book, Publisher, Clues, Entries, HardbackBook


class AggregationTests(TestCase):
    fixtures = ["aggregation_regress.json"]

    def assertObjectAttrs(self, obj, **kwargs):
        for attr, value in kwargs.iteritems():
            self.assertEqual(getattr(obj, attr), value)