mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Renamed some tests and removed references to modeltests/regressiontests.
This commit is contained in:
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user