Ticket #20271: generic_relations_regress-test_textlink_join.patch

File generic_relations_regress-test_textlink_join.patch, 942 bytes (added by Shanto, 9 years ago)
  • tests/generic_relations_regress/tests.py

    diff --git a/tests/generic_relations_regress/tests.py b/tests/generic_relations_regress/tests.py
    index b6782fe..87c164b 100644
    a b class GenericRelationTests(TestCase):  
    5050        TextLink.objects.create(content_object=oddrel)
    5151        oddrel.delete()
    5252
     53    def test_textlink_join(self):
     54        list(OddRelation2.objects.filter(tlinks__id=None))
     55
    5356    def test_q_object_or(self):
    5457        """
    5558        Tests that SQL query parameters for generic relations are properly
  • new file tests/test_postgre.py

    diff --git a/tests/test_postgre.py b/tests/test_postgre.py
    new file mode 100644
    index 0000000..101c2e9
    - +  
     1DATABASES = {
     2    'default': {
     3        'ENGINE': 'django.db.backends.postgresql_psycopg2',
     4        'HOST': __import__('os').environ.get('PGHOST')
     5    }
     6}
     7
     8SECRET_KEY = "django_tests_secret_key"
Back to Top