mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Renamed camelCaseTestMethods to snake_case_test_methods
This commit is contained in:
4
tests/fixtures/tests.py
vendored
4
tests/fixtures/tests.py
vendored
@@ -25,7 +25,7 @@ from .models import (
|
||||
class TestCaseFixtureLoadingTests(TestCase):
|
||||
fixtures = ['fixture1.json', 'fixture2.json']
|
||||
|
||||
def testClassFixtures(self):
|
||||
def test_class_fixtures(self):
|
||||
"Test case has installed 3 fixture objects"
|
||||
self.assertEqual(Article.objects.count(), 3)
|
||||
self.assertQuerysetEqual(Article.objects.all(), [
|
||||
@@ -41,7 +41,7 @@ class SubclassTestCaseFixtureLoadingTests(TestCaseFixtureLoadingTests):
|
||||
"""
|
||||
fixtures = []
|
||||
|
||||
def testClassFixtures(self):
|
||||
def test_class_fixtures(self):
|
||||
"There were no fixture objects installed"
|
||||
self.assertEqual(Article.objects.count(), 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user