From 63ff8bab7cf4b818da6e50251f8a79cf1e1209d8 Mon Sep 17 00:00:00 2001 From: Sean Brant Date: Sun, 10 Mar 2013 22:48:15 -0500 Subject: Adds tests for django template tag --- conftest.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 conftest.py (limited to 'conftest.py') diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..ea7d23d --- /dev/null +++ b/conftest.py @@ -0,0 +1,23 @@ +import os +from django.conf import settings + + +def pytest_configure(config): + PROJECT_ROOT = os.path.dirname(__file__) + + if not settings.configured: + settings.configure( + DATABASES={ + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': ':memory:', + }, + }, + DEBUG=False, + INSTALLED_APPS=[ + 'pykss.contrib.django', + ], + PROJECT_ROOT=PROJECT_ROOT, + TEMPLATE_DEBUG=True, + TEMPLATE_DIRS=[os.path.join(PROJECT_ROOT, 'tests', 'templates')], + ) -- cgit v1.2.3