diff options
author | Nishanth Amuluru | 2011-01-11 22:41:51 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-11 22:41:51 +0530 |
commit | b03203c8cb991c16ac8a3d74c8c4078182d0bb48 (patch) | |
tree | 7cf13b2deacbfaaec99edb431b83ddd5ea734a52 /parts/django/tests/modeltests/proxy_model_inheritance | |
parent | 0c50203cd9eb94b819883c3110922e873f003138 (diff) | |
download | pytask-b03203c8cb991c16ac8a3d74c8c4078182d0bb48.tar.gz pytask-b03203c8cb991c16ac8a3d74c8c4078182d0bb48.tar.bz2 pytask-b03203c8cb991c16ac8a3d74c8c4078182d0bb48.zip |
removed all the buildout files
Diffstat (limited to 'parts/django/tests/modeltests/proxy_model_inheritance')
7 files changed, 0 insertions, 45 deletions
diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/__init__.py b/parts/django/tests/modeltests/proxy_model_inheritance/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/__init__.py +++ /dev/null diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/app1/__init__.py b/parts/django/tests/modeltests/proxy_model_inheritance/app1/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/app1/__init__.py +++ /dev/null diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/app1/models.py b/parts/django/tests/modeltests/proxy_model_inheritance/app1/models.py deleted file mode 100644 index 59a9ac7..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/app1/models.py +++ /dev/null @@ -1,5 +0,0 @@ -from app2.models import NiceModel - -class ProxyModel(NiceModel): - class Meta: - proxy = True diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/app2/__init__.py b/parts/django/tests/modeltests/proxy_model_inheritance/app2/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/app2/__init__.py +++ /dev/null diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/app2/models.py b/parts/django/tests/modeltests/proxy_model_inheritance/app2/models.py deleted file mode 100644 index 549cd07..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/app2/models.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.db import models - -class NiceModel(models.Model): - pass diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/models.py b/parts/django/tests/modeltests/proxy_model_inheritance/models.py deleted file mode 100644 index e69de29..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/models.py +++ /dev/null diff --git a/parts/django/tests/modeltests/proxy_model_inheritance/tests.py b/parts/django/tests/modeltests/proxy_model_inheritance/tests.py deleted file mode 100644 index b682851..0000000 --- a/parts/django/tests/modeltests/proxy_model_inheritance/tests.py +++ /dev/null @@ -1,36 +0,0 @@ -""" -XX. Proxy model inheritance - -Proxy model inheritance across apps can result in syncdb not creating the table -for the proxied model (as described in #12286). This test creates two dummy -apps and calls syncdb, then verifies that the table has been created. -""" - -import os -import sys - -from django.conf import settings, Settings -from django.core.management import call_command -from django.db.models.loading import load_app -from django.test import TransactionTestCase - -class ProxyModelInheritanceTests(TransactionTestCase): - - def setUp(self): - self.old_sys_path = sys.path[:] - sys.path.append(os.path.dirname(os.path.abspath(__file__))) - self.old_installed_apps = settings.INSTALLED_APPS - settings.INSTALLED_APPS = ('app1', 'app2') - map(load_app, settings.INSTALLED_APPS) - call_command('syncdb', verbosity=0) - global ProxyModel, NiceModel - from app1.models import ProxyModel - from app2.models import NiceModel - - def tearDown(self): - settings.INSTALLED_APPS = self.old_installed_apps - sys.path = self.old_sys_path - - def test_table_exists(self): - self.assertEquals(NiceModel.objects.all().count(), 0) - self.assertEquals(ProxyModel.objects.all().count(), 0) |