1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

rm unused dirent download api

This commit is contained in:
lian
2017-02-10 18:04:56 +08:00
parent 6fd822f45f
commit f5ac28a38c
7 changed files with 0 additions and 299 deletions

View File

@@ -295,15 +295,6 @@ class FilesApiTest(ApiTestBase):
self.assertEqual(res.text, u'"success"')
self.get(durl, expected=404)
def test_download_dir(self):
with self.get_tmp_repo() as repo:
dpath, _ = self.create_dir(repo)
query = '?p=%s' % quote(dpath)
ddurl = urljoin(repo.dir_url, 'download') + query
res = self.get(ddurl)
self.assertRegexpMatches(res.text,
r'"http(.*)/files/[^/]+/%s"' % quote(dpath[1:]))
@pytest.mark.xfail
def test_create_dir_with_parents(self):
with self.get_tmp_repo() as repo: