1. import unittest
    
  2. 
    
  3. from forms_tests.widget_tests.base import WidgetTest
    
  4. 
    
  5. from django.db import connection
    
  6. from django.test import SimpleTestCase, TestCase, modify_settings
    
  7. 
    
  8. 
    
  9. @unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests")
    
  10. class PostgreSQLSimpleTestCase(SimpleTestCase):
    
  11.     pass
    
  12. 
    
  13. 
    
  14. @unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests")
    
  15. class PostgreSQLTestCase(TestCase):
    
  16.     pass
    
  17. 
    
  18. 
    
  19. @unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests")
    
  20. # To locate the widget's template.
    
  21. @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
    
  22. class PostgreSQLWidgetTestCase(WidgetTest, PostgreSQLSimpleTestCase):
    
  23.     pass