Skip to content

Commit 6989132

Browse files
committed
add links to deprecation message, modify lib order
1 parent 7dff42d commit 6989132

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: analysis all build clean docs docs-install docs-open install release release-test test venv
1+
.PHONY: analysis all build clean docs docs-install docs-open install release release-test test venv
22

33
all: clean venv install
44

sparkpost/transmissions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ def list(self, **kwargs):
276276
:returns: list of transmissions
277277
:raises: :exc:`SparkPostAPIException` if API call fails
278278
"""
279-
warnings.warn('deprecated', DeprecationWarning)
279+
warn_msg = 'This endpoint is deprecated. For details, '
280+
'check https://sparkpo.st/5qcj4.'
281+
282+
warnings.warn(warn_msg, DeprecationWarning)
280283
return self.request('GET', self.uri, params=kwargs)
281284

282285
def delete(self, transmission_id):

test/test_transmissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import os
44
import tempfile
55
import warnings
6-
from mock import patch
76

87
import pytest
98
import responses
109
import six
10+
from mock import patch
1111

1212
from sparkpost import SparkPost
1313
from sparkpost import Transmissions

0 commit comments

Comments
 (0)