forked from github.com/pypiserver
test_upload_with_signature fix to allow uploaded files in any order. My result appears different than the expected outcome.
This commit is contained in:
parent
5d2e56a529
commit
54247a17bb
|
@ -343,10 +343,10 @@ def test_upload_with_signature(package, root, testapp):
|
|||
('content', package, b''),
|
||||
('gpg_signature', '%s.asc' % package, b'')])
|
||||
assert resp.status_int == 200
|
||||
uploaded_pkgs = [f.basename for f in root.listdir()]
|
||||
uploaded_pkgs = [f.basename.lower() for f in root.listdir()]
|
||||
assert len(uploaded_pkgs) == 2
|
||||
assert uploaded_pkgs[0].lower() == package.lower()
|
||||
assert uploaded_pkgs[1].lower() == '%s.asc' % package.lower()
|
||||
assert package.lower() in uploaded_pkgs
|
||||
assert '%s.asc' % package.lower() in uploaded_pkgs
|
||||
|
||||
@pytest.mark.parametrize(("package"), [
|
||||
f[0] for f in test_core.files
|
||||
|
@ -389,4 +389,4 @@ def test_remove_pkg_notFound(root, testapp):
|
|||
|
||||
@pytest.mark.xfail()
|
||||
def test_remove_pkg(root, testapp):
|
||||
assert 0
|
||||
assert 0
|
||||
|
|
Loading…
Reference in New Issue