diff --git a/core/tests/test_tutor_api_endpoints.py b/core/tests/test_tutor_api_endpoints.py index df7b12d7a4195d4279b5ff8c1308ec411653d253..fb8f7435394de001babb197c76fea614029835aa 100644 --- a/core/tests/test_tutor_api_endpoints.py +++ b/core/tests/test_tutor_api_endpoints.py @@ -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',