Skip to content
Snippets Groups Projects
Commit 842e5d33 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Added skip when DJANGO_DEV is set on one test

parent 2ca1d3c0
No related branches found
No related tags found
1 merge request!111Update django
......@@ -5,10 +5,12 @@
* GET /tutorlist list of all tutors with their scores
"""
from django.contrib.auth import get_user_model
import pytest
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import (APIClient, APIRequestFactory, APITestCase,
force_authenticate)
import os
from core.models import (Feedback, SubmissionSubscription,
TutorSubmissionAssignment)
......@@ -202,6 +204,8 @@ class TutorRegisterTests(APITestCase):
self.reviewer = self.user_factory.make_reviewer()
self.client = APIClient()
@pytest.mark.skipif(os.environ.get('DJANGO_DEV', False),
"No password strengths checks in dev")
def test_password_is_strong_enough(self):
response = self.client.post('/api/tutor/register/', {
'username': 'hans',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment