Merge lp:~dobey/poauth/test-runner into lp:poauth
| Status: | Merged | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approved by: | dobey on 2012-06-01 | ||||||||||||
| Approved revision: | 9 | ||||||||||||
| Merged at revision: | 8 | ||||||||||||
| Proposed branch: | lp:~dobey/poauth/test-runner | ||||||||||||
| Merge into: | lp:poauth | ||||||||||||
| Diff against target: |
655 lines (+157/-97) 11 files modified
.bzrignore (+7/-0) COPYING (+1/-1) MANIFEST.in (+1/-0) poauth/client.py (+26/-16) poauth/oauth.py (+23/-15) poauth/server.py (+10/-14) poauth/tests/test_client.py (+2/-1) poauth/tests/test_oauth.py (+12/-10) poauth/tests/test_server.py (+40/-38) run-tests (+31/-0) setup.py (+4/-2) |
||||||||||||
| To merge this branch: | bzr merge lp:~dobey/poauth/test-runner | ||||||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mike McCracken (community) | Approve on 2012-05-22 | ||
| Roberto Alsina (community) | code review | 2012-05-15 | Approve on 2012-05-21 |
|
Review via email:
|
|||
Commit Message
Add a run-tests script to run tests, pep8 and pyflakes
Update the code to work on both python 3.x and 2.x
Update the setup.py to run tests with setup.py test
Run the tests with both python (2.x) and python3
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~dobey/poauth/test-runner into lp:poauth failed. Below is the output from the failed tests.
running build
running build_py
creating build
creating build/lib.
creating build/lib.
copying poauth/__init__.py -> build/lib.
copying poauth/server.py -> build/lib.
copying poauth/client.py -> build/lib.
copying poauth/oauth.py -> build/lib.
creating build/lib.
copying poauth/
copying poauth/
copying poauth/
copying poauth/
running test
running egg_info
creating poauth.egg-info
writing poauth.
writing top-level names to poauth.
writing dependency_links to poauth.
writing manifest file 'poauth.
reading manifest file 'poauth.
reading manifest template 'MANIFEST.in'
writing manifest file 'poauth.
running build_ext
+ ./setup.py build test clean
test_authorize_
Test authorizing the request token. ... ok
test_get_
Test getting an access token. ... ok
test_get_
Test the creation of a request token. ... ok
test_authorize_
Test authorizing a request token. ... ok
test_fetch_
Test fetching the access token. ... ok
test_fetch_
Test fetching the request token. ... ok
test_fetch_
Test fetching the request token. ... ok
test_validate_
Test consumer validation. ... ok
test_HMACSHA1 (poauth.
Test the HMAC-SHA1 signature method. ... ok
test_PLAINTEXT (poauth.
Test the PLAINTEXT signature method. ... ok
test_RSASHA1 (poauth.
Test the RSA-SHA1 signature method. ... ok
test_from_
Test the from_consumer_
test_from_
Test the from_consumer_
test_parameters (poauth.
Tests setting and getting a parameter. ... ok
-------
Ran 14 tests in 0.007s
OK
+ python3 ./setup.py build test clean
Traceback (most recent call last):
File "./setup.py", line 27, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools

The attempt to merge lp:~dobey/poauth/test-runner into lp:poauth failed. Below is the output from the failed tests.
running build linux-x86_ 64-2.7 linux-x86_ 64-2.7/ poauth linux-x86_ 64-2.7/ poauth linux-x86_ 64-2.7/ poauth linux-x86_ 64-2.7/ poauth linux-x86_ 64-2.7/ poauth linux-x86_ 64-2.7/ poauth/ tests tests/_ _init__ .py -> build/lib. linux-x86_ 64-2.7/ poauth/ tests tests/test_ server. py -> build/lib. linux-x86_ 64-2.7/ poauth/ tests tests/test_ oauth.py -> build/lib. linux-x86_ 64-2.7/ poauth/ tests tests/test_ client. py -> build/lib. linux-x86_ 64-2.7/ poauth/ tests egg-info/ PKG-INFO egg-info/ top_level. txt egg-info/ dependency_ links.txt egg-info/ SOURCES. txt' egg-info/ SOURCES. txt' egg-info/ SOURCES. txt'
running build_py
creating build
creating build/lib.
creating build/lib.
copying poauth/__init__.py -> build/lib.
copying poauth/server.py -> build/lib.
copying poauth/client.py -> build/lib.
copying poauth/oauth.py -> build/lib.
creating build/lib.
copying poauth/
copying poauth/
copying poauth/
copying poauth/
running test
running egg_info
creating poauth.egg-info
writing poauth.
writing top-level names to poauth.
writing dependency_links to poauth.
writing manifest file 'poauth.
reading manifest file 'poauth.
reading manifest template 'MANIFEST.in'
writing manifest file 'poauth.
running build_ext
+ ./setup.py build test clean request_ token (poauth. tests.test_ server. OAuthServerTest s) access_ token (poauth. tests.test_ server. OAuthServerTest s) request_ token (poauth. tests.test_ server. OAuthServerTest s) request_ token (poauth. tests.test_ server. OAuthStorageTes ts) access_ token (poauth. tests.test_ server. OAuthStorageTes ts) request_ token (poauth. tests.test_ server. OAuthStorageTes ts) request_ token_compat (poauth. tests.test_ server. OAuthStorageTes ts) consumer (poauth. tests.test_ server. OAuthStorageTes ts) tests.test_ oauth.OAuthSign atureTests) tests.test_ oauth.OAuthSign atureTests) tests.test_ oauth.OAuthSign atureTests) consumer_ and_token (poauth. tests.test_ client. OAuthRequestTes ts) and_token method. ... ok token_and_ callback (poauth. tests.test_ client. OAuthRequestTes ts) and_token method. ... ok tests.test_ client. OAuthRequestTes ts)
test_authorize_
Test authorizing the request token. ... ok
test_get_
Test getting an access token. ... ok
test_get_
Test the creation of a request token. ... ok
test_authorize_
Test authorizing a request token. ... ok
test_fetch_
Test fetching the access token. ... ok
test_fetch_
Test fetching the request token. ... ok
test_fetch_
Test fetching the request token. ... ok
test_validate_
Test consumer validation. ... ok
test_HMACSHA1 (poauth.
Test the HMAC-SHA1 signature method. ... ok
test_PLAINTEXT (poauth.
Test the PLAINTEXT signature method. ... ok
test_RSASHA1 (poauth.
Test the RSA-SHA1 signature method. ... ok
test_from_
Test the from_consumer_
test_from_
Test the from_consumer_
test_parameters (poauth.
Tests setting and getting a parameter. ... ok
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 14 tests in 0.006s
OK
+ python3 ./setup.py build test clean
Traceback (most recent call last):
File "./setup.py", line 27, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools