Skip to content

Commit 0d868c3

Browse files
author
Alex Schworer
committed
s/Output/Input
1 parent f79ff41 commit 0d868c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/test_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ def setUp(self):
1414
def test_input_details(self, get):
1515
get.return_value = load_response(200, 'fixtures/input_details.json')
1616

17-
resp = self.zen.output.details(15432)
17+
resp = self.zen.input.details(15432)
1818
self.assertEquals(resp.code, 200)
1919
self.assertTrue(resp.body['id'] > 0)
2020

2121
@patch("requests.Session.get")
2222
def test_input_progress(self, get):
2323
get.return_value = load_response(200, 'fixtures/input_progress.json')
2424

25-
resp = self.zen.output.progress(14325)
25+
resp = self.zen.input.progress(14325)
2626
self.assertEquals(resp.code, 200)
2727
self.assertEquals(resp.body['state'], 'processing')
2828

zencoder/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def __init__(self, api_key=None, api_version=None, timeout=None, test=False):
157157
self.job = Job(*args, **kwargs)
158158
self.account = Account(*args, **kwargs)
159159
self.output = Output(*args, **kwargs)
160+
self.input = Input(*args, **kwargs)
160161
self.report = None
161162
if api_version == 'v2':
162163
self.report = Report(*args, **kwargs)
@@ -237,7 +238,7 @@ def __init__(self, *args, **kwargs):
237238
Contains all API methods relating to Inputs.
238239
"""
239240
kwargs['resource_name'] = 'inputs'
240-
super(Output, self).__init__(*args, **kwargs)
241+
super(Input, self).__init__(*args, **kwargs)
241242

242243
def progress(self, input_id):
243244
"""

0 commit comments

Comments
 (0)