Skip to content

Commit

Permalink
Remove test debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 8, 2024
1 parent 7f6340e commit deac3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
14 changes: 2 additions & 12 deletions conftest.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import os
import sys

Expand Down Expand Up @@ -38,14 +39,6 @@
+ CMS_APP
)
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
TEMPLATE_LOADERS = [
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
]
STATICFILES_FINDERS = [
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
]
TEMPLATE_CONTEXT_PROCESSORS = [
"django.template.context_processors.debug",
"django.template.context_processors.request",
Expand Down Expand Up @@ -79,9 +72,6 @@
LANGUAGES = (("en", "English"),)
STATIC_URL = "/static/"
MEDIA_URL = "/media/"
DEBUG = True
CMS_TEMPLATES = (("fullwidth.html", "Fullwidth"), ("page.html", "Normal page"))
PASSWORD_HASHERS = ("django.contrib.auth.hashers.MD5PasswordHasher",)
MIGRATION_MODULES = {}
URL_CONF = "tests.utils.urls"

Expand All @@ -97,8 +87,8 @@ def pytest_configure():
TEMPLATES=TEMPLATES,
DATABASES=DATABASES,
SITE_ID=SITE_ID,
LANGUAGE_CODE=LANGUAGE_CODE,
LANGUAGES=LANGUAGES,
CMS_CONFIRM_VERSION4=True,
MIGRATION_MODULES=MIGRATION_MODULES,
ROOT_URLCONF=URL_CONF,
STATIC_URL=STATIC_URL,
Expand Down
6 changes: 0 additions & 6 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from pprint import pprint

from django.core.exceptions import ValidationError
from django.test import TestCase

Expand Down Expand Up @@ -148,7 +146,3 @@ def test_respect_link_is_optional(self):
# now we allow the link to be empty
instance.link_is_optional = True
instance.clean()

def test_settings(self):
from django.conf import settings
pprint(settings.__dict__)

0 comments on commit deac3a4

Please sign in to comment.