1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

rm file-priv-share related code

This commit is contained in:
lian
2016-03-30 15:02:31 +08:00
parent afc1b48e1d
commit 6f658cc61b
21 changed files with 18 additions and 597 deletions

View File

@@ -283,21 +283,6 @@ class FilesApiTest(ApiTestBase):
self.assertRegexpMatches(res.text,
r'"http(.*)/files/[^/]+/%s"' % quote(dpath[1:]))
def test_share_dir(self):
with self.get_tmp_repo() as repo:
dpath, _ = self.create_dir(repo)
query = '?p=%s' % quote(dpath)
share_dir_url = urljoin(repo.dir_url, 'share/') + query
with self.get_tmp_user() as user:
data = {
'emails': user.user_name,
's_type': 'd',
'path': '/',
'perm': 'r'
}
res = self.post(share_dir_url, data=data)
self.assertEqual(res.text, u'{}')
@pytest.mark.xfail
def test_create_dir_with_parents(self):
with self.get_tmp_repo() as repo: