Python 3.6, 3.9 and Django 3.0 compatibility

This commit is contained in:
Swen Kooij
2020-01-06 15:46:40 +01:00
parent 53d7cd0c66
commit 49d88af76a
11 changed files with 120 additions and 46 deletions

View File

@@ -1,12 +1,23 @@
import bleach
"""isort:skip_file."""
import sys
import pytest
from django.conf import settings
from django.test import TestCase
from django_bleach.utils import get_bleach_default_options
from localized_fields.fields import LocalizedBleachField
from localized_fields.value import LocalizedValue
try:
import bleach
from django_bleach.utils import get_bleach_default_options
except ImportError:
if sys.version_info >= (3, 9):
pytest.skip("feature not ready for python 3.9", allow_module_level=True)
class ModelTest:
"""Used to declare a bleach-able field on."""