Commit aa1ad4fb by Markus Korn

test_requests TestSecure: skip tests for django versions where the secure

argument is not available
parent 06c61fc5
......@@ -24,6 +24,8 @@ from rest_framework.test import APIRequestFactory, APIClient
from rest_framework.views import APIView
from io import BytesIO
import json
import django
import pytest
factory = APIRequestFactory()
......@@ -277,6 +279,8 @@ class TestAuthSetter(TestCase):
self.assertEqual(request.auth, 'DUMMY')
@pytest.mark.skipif(django.VERSION < (1, 7),
reason='secure argument is only available for django1.7+')
class TestSecure(TestCase):
def test_default_secure_false(self):
......
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