You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
Just forked this repo to my account, cloned it, entered a suitable virtual env and tried to run the tests. 12 of the 13 tests failed.
EEEEEElineno=805 funcname=_new_conn INFO Starting new HTTPS connection (1): unbabel.com
lineno=401 funcname=_make_request DEBUG "GET /tapi/v2/language_pair/ HTTP/1.1" 401 40
.EEEEEE
======================================================================
ERROR: test_api_get_account (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 96, in test_api_get_account
account = self.api.get_account()
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 510, in get_account
result = self.api_call('account/')
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 244, in api_call
return requests.get(url, headers=self.headers)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Noneaccount/': No schema supplied. Perhaps you meant http://Noneaccount/?
======================================================================
ERROR: test_api_get_available_tones (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 39, in test_api_get_available_tones
tones = self.api.get_tones()
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 492, in get_tones
result = self.api_call('tone/')
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 244, in api_call
return requests.get(url, headers=self.headers)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Nonetone/': No schema supplied. Perhaps you meant http://Nonetone/?
======================================================================
ERROR: test_api_get_language_pairs (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 29, in test_api_get_language_pairs
pairs = self.api.get_language_pairs()
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 466, in get_language_pairs
result = self.api_call('language_pair/')
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 244, in api_call
return requests.get(url, headers=self.headers)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Nonelanguage_pair/': No schema supplied. Perhaps you meant http://Nonelanguage_pair/?
======================================================================
ERROR: test_api_get_topics (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 49, in test_api_get_topics
topics = self.api.get_topics()
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 503, in get_topics
result = self.api_call('topic/')
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 244, in api_call
return requests.get(url, headers=self.headers)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Nonetopic/': No schema supplied. Perhaps you meant http://Nonetopic/?
======================================================================
ERROR: test_api_get_translations (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 112, in test_api_get_translations
self.api.post_translations(**data)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 271, in post_translations
return self._make_request(data)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 351, in _make_request
result = f("%stranslation/"% self.api_url, headers=self.headers, data=json.dumps(data))
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 110, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Nonetranslation/': No schema supplied. Perhaps you meant http://Nonetranslation/?
======================================================================
ERROR: test_api_post_translation (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 64, in test_api_post_translation
account = self.api.get_account()
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 510, in get_account
result = self.api_call('account/')
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/unbabel/api.py", line 244, in api_call
return requests.get(url, headers=self.headers)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 294, in prepare
self.prepare_url(url, params)
File "/home/llcampos/Envs/thesis/local/lib/python2.7/site-packages/requests/models.py", line 354, in prepare_url
raise MissingSchema(error)
MissingSchema: Invalid URL 'Noneaccount/': No schema supplied. Perhaps you meant http://Noneaccount/?
======================================================================
ERROR: test_job_add_job_to_order (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 128, in test_job_add_job_to_order
order = self.api.post_order()
AttributeError: 'UnbabelApi' object has no attribute 'post_order'
======================================================================
ERROR: test_job_add_job_to_order_all_params (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 160, in test_job_add_job_to_order_all_params
order = self.api.post_order()
AttributeError: 'UnbabelApi' object has no attribute 'post_order'
======================================================================
ERROR: test_job_fail_mandatory_fields (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 147, in test_job_fail_mandatory_fields
self.assertRaises(BadRequestException, self.api.post_job, 0, '', '', '')
AttributeError: 'UnbabelApi' object has no attribute 'post_job'
======================================================================
ERROR: test_job_no_balance (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 203, in test_job_no_balance
translation = self.api.post_translations(**data)
TypeError: post_translations() got an unexpected keyword argument 'ttype'
======================================================================
ERROR: test_order_post (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 122, in test_order_post
order = self.api.post_order()
AttributeError: 'UnbabelApi' object has no attribute 'post_order'
======================================================================
ERROR: test_pay_order (__main__.TestUnbabelAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 211, in test_pay_order
order = self.api.post_order()
AttributeError: 'UnbabelApi' object has no attribute 'post_order'
----------------------------------------------------------------------
Ran 13 tests in 0.345s
FAILED (errors=12)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just forked this repo to my account, cloned it, entered a suitable virtual env and tried to run the tests. 12 of the 13 tests failed.
The text was updated successfully, but these errors were encountered: