Skip to content

Commit eddbe00

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

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-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/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def request(self, method, uri, **kwargs):
3737
'Content-Type': 'application/json',
3838
'Authorization': self.api_key
3939
}
40+
print uri, kwargs
4041
response = self.transport.request(method, uri, headers=headers,
4142
**kwargs)
4243
return response

sparkpost/transmissions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import copy
33
import json
44
import warnings
5+
56
from email.utils import parseaddr
67

78
from .base import Resource
@@ -276,7 +277,10 @@ def list(self, **kwargs):
276277
:returns: list of transmissions
277278
:raises: :exc:`SparkPostAPIException` if API call fails
278279
"""
279-
warnings.warn('deprecated', DeprecationWarning)
280+
warn_msg = 'This endpoint is deprecated. For details, '
281+
'check https://sparkpo.st/5qcj4.'
282+
283+
warnings.warn(warn_msg, DeprecationWarning)
280284
return self.request('GET', self.uri, params=kwargs)
281285

282286
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)