From d56c14e147301b38632ef8ed0a14230af486c7c8 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 24 Aug 2016 12:12:19 +0100 Subject: [PATCH] Actually use the right exception class. Two HTTPError classes exist. Need to use the one in notifications_python_client. --- app/main/views/templates.py | 2 +- tests/app/main/views/test_templates.py | 2 +- tests/conftest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main/views/templates.py b/app/main/views/templates.py index 62368afc2..982832e9a 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -7,7 +7,7 @@ from dateutil.parser import parse from notifications_utils.template import Template from notifications_utils.recipients import first_column_heading -from notify_client import HTTPError +from notifications_python_client.errors import HTTPError from app.main import main from app.utils import user_has_permissions diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index ae24d00d5..56fe515cf 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -5,7 +5,7 @@ import pytest from bs4 import BeautifulSoup from flask import url_for from freezegun import freeze_time -from notify_client import HTTPError +from notifications_python_client.errors import HTTPError from tests import validate_route_permission, template_json, single_notification_json from app.main.views.templates import get_last_use_message, get_human_readable_delta diff --git a/tests/conftest.py b/tests/conftest.py index e72c9ca42..12b9e95b5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,7 +20,7 @@ from app.notify_client.models import ( InvitedUser ) -from notify_client.errors import HTTPError +from notifications_python_client.errors import HTTPError @pytest.fixture(scope='session')