Skip to content

Commit 0140a32

Browse files
authored
deprecate deals v1 and migrate to deals v2 (#209)
deprecate deals v1 and migrate to deals v2
1 parent aaf45a3 commit 0140a32

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

terminalone/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525

2626
SERVICE_BASE_PATHS = {
27-
'deals': 'media/v1.0',
27+
'deals': 'deals/v1.0',
2828
'mgmt': 'api/v2.0',
2929
'reports': 'reporting/v1/std',
3030
'reports-beta': 'reporting-beta/v1/std',

terminalone/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__author__ = 'MediaMath'
55
__copyright__ = 'Copyright 2015, MediaMath'
66
__license__ = 'Apache License, Version 2.0'
7-
__version__ = '1.9.18'
7+
__version__ = '1.9.19'
88
__maintainer__ = 'MediaMath Developer Relations'
99
__email__ = '[email protected]'
1010
__status__ = 'Stable'

tests/test_deals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setUp(self):
3838
def test_collection(self):
3939
with open('tests/fixtures/json/media_api_deal.json') as f:
4040
fixture = f.read()
41-
responses.add(responses.GET, 'https://api.mediamath.com/media/v1.0/deals/11111',
41+
responses.add(responses.GET, 'https://api.mediamath.com/deals/v1.0/deals/11111',
4242
body=fixture,
4343
content_type='application/json')
4444
deal = self.t1.get('deals', 11111)
@@ -49,7 +49,7 @@ def test_generate_json(self):
4949

5050
with open('tests/fixtures/json/media_api_deal.json') as f:
5151
fixture = f.read()
52-
responses.add(responses.GET, 'https://api.mediamath.com/media/v1.0/deals/11111',
52+
responses.add(responses.GET, 'https://api.mediamath.com/deals/v1.0/deals/11111',
5353
body=fixture,
5454
content_type='application/json')
5555
test_deal = self.t1.get('deals', 11111)

0 commit comments

Comments
 (0)