From 29913bce27aa898fc4e10ea79aebfc768508ffe0 Mon Sep 17 00:00:00 2001 From: "hasnain.naveed" Date: Fri, 5 Mar 2021 08:46:50 +0500 Subject: [PATCH] YONK-1924 | Fixed the unit test cases. --- edx_notifications/server/api/tests/test_admin.py | 2 +- edx_notifications/server/api/urls_mock.py | 2 +- requirements/testing.in | 4 ++-- requirements/testing.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/edx_notifications/server/api/tests/test_admin.py b/edx_notifications/server/api/tests/test_admin.py index f03e5cf0..7cfb149a 100644 --- a/edx_notifications/server/api/tests/test_admin.py +++ b/edx_notifications/server/api/tests/test_admin.py @@ -2,7 +2,7 @@ Tests for the administration endpoints """ from django.contrib.auth.models import User -from django.core.urlresolvers import reverse +from django.urls import reverse from django.test import TestCase from edx_notifications.server.api.tests.utils import TestClient diff --git a/edx_notifications/server/api/urls_mock.py b/edx_notifications/server/api/urls_mock.py index f7f4b0ad..a9334b27 100644 --- a/edx_notifications/server/api/urls_mock.py +++ b/edx_notifications/server/api/urls_mock.py @@ -81,7 +81,7 @@ def mock_handler(request): # pylint: disable=unused-argument mock_handler, name='edx_notifications.consumer.user_preferences.detail.no_param' ), - url( + re_path( ADMIN_USERS_DELETE, mock_handler, name='edx_notifications.admin.delete_user_notifications' diff --git a/requirements/testing.in b/requirements/testing.in index 1cecd9b2..128c55c7 100644 --- a/requirements/testing.in +++ b/requirements/testing.in @@ -10,8 +10,8 @@ pylint pydocstyle mock==1.0.1 testfixtures==4.5.0 -bok-choy==0.6.2 +bok-choy==1.1.1 sure==1.2.3 ddt==0.8.0 -selenium==2.53.1 +selenium==3.14.0 tox diff --git a/requirements/testing.txt b/requirements/testing.txt index 636ff155..49a7c05d 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -8,7 +8,7 @@ appdirs==1.4.4 # via virtualenv astroid==2.3.3 # via -r requirements/testing.in, pylint attrs==20.2.0 # via pytest beautifulsoup4==4.9.1 # via -r requirements/base.txt, pynliner -bok-choy==0.6.2 # via -r requirements/testing.in +bok-choy==1.1.1 # via -r requirements/testing.in certifi==2020.4.5.1 # via -r requirements/base.txt, requests chardet==3.0.4 # via -r requirements/base.txt, requests coverage==5.1 # via -r requirements/testing.in