Add Django main to test pipeline.

This commit is contained in:
Hasan Ramezani 2022-01-07 22:19:15 +01:00
parent 1d27bc3a04
commit 4773a28cf4
2 changed files with 6 additions and 1 deletions

View file

@ -209,7 +209,10 @@ class MiddlewareTest(TestCase):
"""
def setUp(self):
self.middleware = AuditlogMiddleware()
def get_response(request):
return HttpResponse()
self.middleware = AuditlogMiddleware(get_response)
self.factory = RequestFactory()
self.user = User.objects.create_user(
username="test", email="test@example.com", password="top_secret"

View file

@ -2,6 +2,7 @@
envlist =
{py37,py38,py39}-django{22,31}
{py37,py38,py39,py10}-django32
{py38,py39,py10}-djangomain
py38-docs
py38-qa
@ -13,6 +14,7 @@ deps =
django22: Django>=2.2,<2.3
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
djangomain: https://github.com/django/django/archive/main.tar.gz
# Test requirements
coverage
codecov