Skip to content

Commit

Permalink
Merge pull request #5720 from nyaruka/use_std_test_runner
Browse files Browse the repository at this point in the history
Use standard Django test runner
  • Loading branch information
rowanseymour authored Nov 29, 2024
2 parents e808754 + 010def1 commit 14d7dff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
6 changes: 0 additions & 6 deletions temba/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
PASSWORD_HASHERS = ("django.contrib.auth.hashers.MD5PasswordHasher",)
DEBUG = False

TEST_RUNNER = "temba.tests.runner.TembaTestRunner"
TEST_EXCLUDE = ("smartmin",)

if os.getenv("REMOTE_CONTAINERS") == "true":
_db_host = "postgres"
_redis_host = "redis"
Expand Down Expand Up @@ -198,9 +195,6 @@
}
]

if TESTING:
TEMPLATES[0]["OPTIONS"]["context_processors"] += ("temba.tests.add_testing_flag_to_context",)

FORM_RENDERER = "django.forms.renderers.TemplatesSetting"

# -----------------------------------------------------------------------------------
Expand Down
4 changes: 0 additions & 4 deletions temba/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
)


def add_testing_flag_to_context(*args):
return dict(testing=settings.TESTING)


class TembaTest(SmartminTest):
"""
Base class for our unit tests
Expand Down
25 changes: 0 additions & 25 deletions temba/tests/runner.py

This file was deleted.

0 comments on commit 14d7dff

Please sign in to comment.