Permalink
Browse files

Renamed the fixtures used by the aggregation tests so they're only lo…

…aded by the tests that use them. Refs #17275.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e4919f6 commit 02bc523b89ae6fb37c26ce8d6424cb84751ad3ac @aaugustin aaugustin committed Nov 27, 2011
View
0 ...ts/aggregation/fixtures/initial_data.json → ...sts/aggregation/fixtures/aggregation.json
File renamed without changes.
View
2 tests/modeltests/aggregation/tests.py
@@ -10,7 +10,7 @@
class BaseAggregateTestCase(TestCase):
- fixtures = ["initial_data.json"]
+ fixtures = ["aggregation.json"]
def test_empty_aggregate(self):
self.assertEqual(Author.objects.all().aggregate(), {})
View
0 ...gation_regress/fixtures/initial_data.json → ...regress/fixtures/aggregation_regress.json
File renamed without changes.
View
2 tests/regressiontests/aggregation_regress/tests.py
@@ -13,6 +13,8 @@
class AggregationTests(TestCase):
+ fixtures = ["aggregation_regress.json"]
+
def assertObjectAttrs(self, obj, **kwargs):
for attr, value in kwargs.iteritems():
self.assertEqual(getattr(obj, attr), value)

0 comments on commit 02bc523

Please sign in to comment.