From b3d92277406440bb8e93d56d4544ba405f699f0f Mon Sep 17 00:00:00 2001 From: Sergey Petrov Date: Thu, 12 Sep 2019 01:12:20 +0300 Subject: [PATCH] Use Credentials instead of CertificateCredentials in tests --- test/test_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_client.py b/test/test_client.py index 323e36d..92f9467 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -3,7 +3,7 @@ from unittest.mock import MagicMock, Mock, patch import pytest -from apns2.client import APNsClient, CertificateCredentials, CONCURRENT_STREAMS_SAFETY_MAXIMUM, Notification +from apns2.client import APNsClient, Credentials, CONCURRENT_STREAMS_SAFETY_MAXIMUM, Notification from apns2.errors import ConnectionFailed from apns2.payload import Payload @@ -26,7 +26,7 @@ def notifications(tokens): def client(mock_connection): with patch('apns2.credentials.HTTP20Connection') as mock_connection_constructor: mock_connection_constructor.return_value = mock_connection - return APNsClient(credentials=CertificateCredentials()) + return APNsClient(credentials=Credentials()) @pytest.fixture