From 8633d022377420af4bd6c50d18ae96f082e6f98a Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Mon, 22 Jan 2018 02:11:58 +0100 Subject: [PATCH] Added hacks for django-functest and to support django 2 django-functest has a PR for its support --- tests/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..5814e8a7 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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() -- 2.45.2