~netlandish/django-wiki

8633d022377420af4bd6c50d18ae96f082e6f98a — Raffaele Salmaso 6 years ago 5918949
Added hacks for django-functest and to support django 2

django-functest has a PR for its support
1 files changed, 10 insertions(+), 0 deletions(-)

M tests/__init__.py
M tests/__init__.py => tests/__init__.py +10 -0
@@ 0,0 1,10 @@
def hacks():
    from django.test import testcases
    if not hasattr(testcases, "WSGIServer"):
        # django-functest: patch django until is released a new version with
        # https://github.com/django-functest/django-functest/pull/14 merged
        from django.core.servers.basehttp import WSGIServer
        testcases.WSGIServer = WSGIServer


hacks()