Commit 6f24006e by Gabriel Falcão

Merge pull request #472 from michelts/static-live-server-test-case

Use Django 1.7 StaticLiveServerTestCase when available
parents 250ab629 48d0f78e
......@@ -324,11 +324,15 @@ class DefaultServer(BaseServer):
try:
from django.test.testcases import LiveServerTestCase
try:
from django.contrib.staticfiles.testing import \
StaticLiveServerTestCase as LiveServerTestCase
except ImportError:
from django.test.testcases import LiveServerTestCase
class DjangoServer(BaseServer):
"""
A sever that uses Django's LiveServerTestCase to implement the Server class.
A server that uses Django's LiveServerTestCase to implement the Server class.
"""
_server = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment