mirror of
https://github.com/django/django.git
synced 2025-07-23 13:15:32 +00:00
Renamed some tests and removed references to modeltests/regressiontests.
This commit is contained in:
parent
737a5d71f0
commit
33836cf88d
224 changed files with 384 additions and 376 deletions
|
@ -2,7 +2,7 @@ from __future__ import absolute_import
|
|||
|
||||
from django.test import TestCase
|
||||
|
||||
from ..model_inheritance.models import Title
|
||||
from model_inheritance.models import Title
|
||||
|
||||
|
||||
class InheritanceSameModelNameTests(TestCase):
|
||||
|
@ -14,7 +14,7 @@ class InheritanceSameModelNameTests(TestCase):
|
|||
self.title = Title.objects.create(title='Lorem Ipsum')
|
||||
|
||||
def test_inheritance_related_name(self):
|
||||
from modeltests.model_inheritance.models import Copy
|
||||
from model_inheritance.models import Copy
|
||||
self.assertEqual(
|
||||
self.title.attached_model_inheritance_copy_set.create(
|
||||
content='Save $ on V1agr@',
|
||||
|
@ -23,7 +23,7 @@ class InheritanceSameModelNameTests(TestCase):
|
|||
), Copy.objects.get(content='Save $ on V1agr@'))
|
||||
|
||||
def test_inheritance_with_same_model_name(self):
|
||||
from modeltests.model_inheritance_same_model_name.models import Copy
|
||||
from model_inheritance_same_model_name.models import Copy
|
||||
self.assertEqual(
|
||||
self.title.attached_model_inheritance_same_model_name_copy_set.create(
|
||||
content='The Web framework for perfectionists with deadlines.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue