Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.

This commit is contained in:
Tim Graham 2015-02-16 18:10:35 -05:00
parent 3adc5f1ee6
commit 8b39f33d78
5 changed files with 6 additions and 16 deletions

View file

@ -1,15 +1,11 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
from django.db import connection
from django.test import TestCase, modify_settings
from .models import CharFieldModel, TextFieldModel
@unittest.skipUnless(connection.vendor == 'postgresql', 'PostgreSQL required')
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'})
class UnaccentTest(TestCase):