Skip to content

Commit

Permalink
Use SimpleTestCase where database access is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Dec 8, 2020
1 parent 636ea69 commit 8a4823f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tinymce/tests/test_compressor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from unittest.mock import patch
import zlib

from django.test import RequestFactory, TestCase
from django.test import RequestFactory, SimpleTestCase

from tinymce.compressor import gzip_compressor


class TestCompressor(TestCase):
class TestCompressor(SimpleTestCase):
def setUp(self):
self.factory = RequestFactory()

Expand Down
4 changes: 2 additions & 2 deletions tinymce/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from django.contrib import admin
from django.contrib.admin.sites import AdminSite
from django.test import TestCase
from django.test import SimpleTestCase

from tinymce.widgets import AdminTinyMCE

from .models import TestModel


class TestModels(TestCase):
class TestModels(SimpleTestCase):
def setUp(self):
self.site = AdminSite()

Expand Down
4 changes: 2 additions & 2 deletions tinymce/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import django
from django import forms
from django.test import TestCase
from django.test import SimpleTestCase
from django.test.utils import override_settings
from django.utils.translation import override

Expand All @@ -23,7 +23,7 @@ def override_tinymce_settings(settings_dict):


@override_settings(LANGUAGES=[("en", "English")])
class TestWidgets(TestCase):
class TestWidgets(SimpleTestCase):
def test_default_config(self):
config = get_language_config("en")
config_ok = {
Expand Down

0 comments on commit 8a4823f

Please sign in to comment.