File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def setUp(self):
1616 @requests_mock .Mocker ()
1717 def test_get (self , mock ):
1818 url = '{}/foo' .format (self .transloadit .service )
19- mock .get (url , text = '{"ok": "it works"}' )
19+ mock .get (url , text = '{"ok": "it works"}' , request_headers = { 'Transloadit-Client' : 'python-sdk:0.1.10' } )
2020
2121 response = self .request .get ('/foo' )
2222 self .assertEqual (response .data ['ok' ], 'it works' )
Original file line number Diff line number Diff line change 88from six import b
99
1010from .response import as_response
11+ from . import __version__
1112
1213
1314class Request (object ):
@@ -22,7 +23,7 @@ class Request(object):
2223 - transloadit (<transloadit.client.Transloadit>)
2324 """
2425
25- HEADERS = {'User-Agent ' : 'Transloadit Python SDK' }
26+ HEADERS = {'Transloadit-Client ' : 'python-sdk:' + __version__ }
2627
2728 def __init__ (self , transloadit ):
2829 self .transloadit = transloadit
You can’t perform that action at this time.
0 commit comments