mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 23:00:57 +00:00
update test
This commit is contained in:
6
media/assets/css/bootstrap.min.css
vendored
Normal file
6
media/assets/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
{% extends "accounts.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Password Change Successfully" %}{% endblock %}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends "accounts.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %}{% trans "Password Modification" %}{% endblock %}
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
from django.test import RequestFactory
|
||||
|
||||
from seahub.api2.views import html_repo_history_changes
|
||||
from seahub.test_utils import BaseTestCase
|
||||
|
||||
class RepoTest(BaseTestCase):
|
||||
@@ -13,8 +12,3 @@ class RepoTest(BaseTestCase):
|
||||
|
||||
self.request.user = self.user
|
||||
self.request.cloud_mode = False
|
||||
|
||||
def test_can_not_get_without_commit_id(self):
|
||||
repo = self.repo
|
||||
resp = html_repo_history_changes(self.request, repo.id)
|
||||
self.assertEqual(400, resp.status_code)
|
||||
|
@@ -31,7 +31,7 @@ class ViewFileViaSharedDirTest(TestCase, Fixtures):
|
||||
self.assertTemplateUsed(resp, 'shared_file_view.html')
|
||||
|
||||
self.assertContains(resp, os.path.basename(self.file))
|
||||
dl_url_tag = '<a href="?p=%s&dl=1" class="obv-btn">' % self.file
|
||||
dl_url_tag = 'href="?p=%s&dl=1"' % self.file
|
||||
self.assertContains(resp, dl_url_tag)
|
||||
|
||||
def test_can_view_image_in_sub_dir(self):
|
||||
|
@@ -37,7 +37,7 @@ class ViewSharedFileTest(TestCase, Fixtures):
|
||||
self.assertTemplateUsed(resp, 'shared_file_view.html')
|
||||
|
||||
self.assertContains(resp, os.path.basename(self.file))
|
||||
dl_url_tag = '<a href="?dl=1" class="obv-btn">'
|
||||
dl_url_tag = 'href="?dl=1"'
|
||||
self.assertContains(resp, dl_url_tag)
|
||||
|
||||
def test_can_download(self):
|
||||
@@ -118,7 +118,7 @@ class ViewSharedFileTest(TestCase, Fixtures):
|
||||
self.assertEqual(200, resp.status_code)
|
||||
self.assertTemplateUsed(resp, 'shared_file_view.html')
|
||||
self.assertContains(resp, os.path.basename(self.file))
|
||||
dl_url_tag = '<a href="?dl=1" class="obv-btn">'
|
||||
dl_url_tag = 'href="?dl=1"'
|
||||
self.assertContains(resp, dl_url_tag)
|
||||
|
||||
def _assert_render_file_page_without_passwd(self, fs):
|
||||
|
Reference in New Issue
Block a user