Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests do not work out of the box #7

Open
k0s opened this issue Feb 18, 2012 · 0 comments
Open

tests do not work out of the box #7

k0s opened this issue Feb 18, 2012 · 0 comments

Comments

@k0s
Copy link
Contributor

k0s commented Feb 18, 2012

Installing a fresh instance of CheesePrism, I get one error and one failure running the tests:

(pypi)│nosetests -vv
nose.config: INFO: Ignoring files matching ['^.', '^_', '^setup.py$']
nose.plugins.cover: INFO: Coverage report will include only packages: ['cheeseprism']
test_authenticated_userid (test_auth.CPBasicAuthTest) ... ok
test_authenticated_userid_nocred (test_auth.CPBasicAuthTest) ... ok
test_effective_p_without_cred (test_auth.CPBasicAuthTest) ... ok
test_effective_p_without_groups (test_auth.CPBasicAuthTest) ... ok
test_effective_principals (test_auth.CPBasicAuthTest) ... ok
test_forget (test_auth.CPBasicAuthTest) ... ok
test_get_cred_bad (test_auth.CPBasicAuthTest) ... ok
test_get_cred_good (test_auth.CPBasicAuthTest) ... ok
test_remember (test_auth.CPBasicAuthTest) ... ok
test_unauth_userid (test_auth.CPBasicAuthTest) ... ok
test_del (test_desc.TestUpdict) ... ok
test_get (test_desc.TestUpdict) ... ok
test_set (test_desc.TestUpdict) ... ok
test_envloader.test_envfactory_makes_loaders ... ok
test_data_from_path (test_index.IndexTestCase) ... ok
test_notify_packages_added (test_index.IndexTestCase) ... ERROR
test_notify_packages_added_raises (test_index.IndexTestCase) ... ok
test_pkginfo_from_bad_ext (test_index.IndexTestCase) ... ok
test_pkginfo_from_file_egg (test_index.IndexTestCase) ... ok
test_pkginfo_from_file_sdist (test_index.IndexTestCase) ... ok
test_pkginfo_from_no_ext (test_index.IndexTestCase) ... ok
test_regenerate_index (test_index.IndexTestCase) ... FAIL
test_regenerate_leaf (test_index.IndexTestCase) ... ok
Cover event subscriber ... ok
test_index.test_cleanup ... ok
sanity check for code that creates wsgi app ... ok
test_depinfo_for_zip (test_pipext.TestReqDownloader) ... ok
test_download_url (test_pipext.TestReqDownloader) ... ok
Sanity test creation ... ok
test_package_finder_cm (test_pipext.TestReqDownloader) ... ok
test_readzip (test_pipext.TestReqDownloader) ... ok
test_download_all_nothing (test_pipext.TestReqDownloaderAll) ... ok
test_download_single_pkg (test_pipext.TestReqDownloaderAll) ... ok
test_download_w_deps (test_pipext.TestReqDownloaderAll) ... ok
test_distribution_notfound_error (test_pipext.TestReqDownloaderHandler) ... ok
test_editable_req_error (test_pipext.TestReqDownloaderHandler) ... ok
Check the diaper records what is dumped into it. ... ok
test_handle_requirement_httperror (test_pipext.TestReqDownloaderHandler) ... ok
test_handle_requirement_noreqs (test_pipext.TestReqDownloaderHandler) ... ok
test_handle_requirement_w_reqs (test_pipext.TestReqDownloaderHandler) ... ok
test_skip (test_pipext.TestReqDownloaderHandler) ... ok
Testing formality to make sure our diaper does not hide our ... ok
test_details (test_rpc.TestPyPiXMLRPC) ... ok
test_search (test_rpc.TestPyPiXMLRPC) ... ok
test_find_package (test_views.ViewTests) ... ok
test_index_view (test_views.ViewTests) ... ok
package: test catching urlerror ... ok
package: test catching urlerror ... ok
package: test catching httperror ... ok
package is already in index ... ok
pypi doesn't know anything about our package ... ok
package: test catching urlerror ... ok
Basic regeneration of entire index ... ok
test_upload (test_views.ViewTests) ... ok
test_upload_raises (test_views.ViewTests) ... ok
test_views.test_instructions ... ok

ERROR: test_notify_packages_added (test_index.IndexTestCase)

Traceback (most recent call last):
File "/home/jhammel/mozilla/src/pypi/local/lib/python2.7/site-packages/mock.py", line 1224, in patched
return func(_args, *_keywargs)
File "/home/jhammel/mozilla/src/pypi/src/CheesePrism/tests/test_index.py", line 104, in test_notify_packages_added
assert 'notify' in getreg.return_value._children
TypeError: argument of type 'Mock' is not iterable

FAIL: test_regenerate_index (test_index.IndexTestCase)

Traceback (most recent call last):
File "/home/jhammel/mozilla/src/pypi/src/CheesePrism/tests/test_index.py", line 67, in test_regenerate_index
%s""") %(pprint(expected), pprint(file_structure))
AssertionError:
File structure does not match::

expected:

[(u'7-test-index', u'dummypackage'),
(u'dummypackage', u'index.html'),
(u'7-test-index', u'dummypackage-0.0dev.tar.gz'),
(u'7-test-index', u'index.html')]

actual:

[('7-test-index', 'dummypackage-0.0dev.tar.gz'),
('7-test-index', 'index.html'),
('7-test-index', 'dummypackage'),
('dummypackage', 'index.html')]
-------------------- >> begin captured logging << --------------------
cheeseprism.index: INFO: Write index home:/home/jhammel/mozilla/src/pypi/src/CheesePrism/tests/test-indexes/7-test-index/index.html
--------------------- >> end captured logging << ---------------------

Name Stmts Miss Cover Missing

cheeseprism 0 0 100%
cheeseprism.auth 61 0 100%
cheeseprism.desc 20 0 100%
cheeseprism.event 31 0 100%
cheeseprism.index 185 19 90% 131-134, 148-149, 157-171, 190-191, 257
cheeseprism.pipext 145 0 100%
cheeseprism.request 23 9 61% 17, 21, 25, 29, 33-35, 42, 46
cheeseprism.resources 6 0 100%
cheeseprism.rpc 13 0 100%
cheeseprism.utils 27 5 81% 27-28, 66-67, 79
cheeseprism.views 104 23 78% 118-147

cheeseprism.wsgiapp 21 0 100%

TOTAL 636 56 91%

Ran 56 tests in 0.717s

FAILED (errors=1, failures=1)

@bbinet bbinet mentioned this issue Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant