test that directories starting with a dot are ignored

This commit is contained in:
Ralf Schmitt 2011-10-07 20:31:51 +02:00
parent 54b47d9e88
commit b680e34527

@ -108,6 +108,33 @@ def test_simple_list_no_dotfiles2(root):
assert list(showlinks()) == []
def test_serve_no_dotdir(root):
root.mkdir(".subdir").join("foo-1.0.zip").write("secret")
go("/packages/.subdir/foo-1.0.zip")
code(404)
def test_packages_list_no_dotdir(root):
root.mkdir(".subdir").join("foo-1.0.zip").write("secret")
go("/packages/")
show()
notfind("foo")
def test_simple_list_no_dotdir(root):
root.mkdir(".subdir").join("foo-1.0.zip").write("secret")
go("/simple/")
show()
notfind("foo")
def test_simple_list_no_dotdir2(root):
root.mkdir(".subdir").join("foo-1.0.zip").write("secret")
go("/simple/foo/")
show()
assert list(showlinks()) == []
def test_simple_index(root):
root.join("foobar-1.0.zip").write("")
root.join("foobar-1.1.zip").write("")