Skip to content

Commit bdba318

Browse files
committed
升级依赖
1 parent 4ed7744 commit bdba318

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

blog/tests.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_validate_article(self):
123123

124124
f = BlogSearchForm()
125125
f.search()
126-
self.client.login(username='liangliangyy', password='liangliangyy')
126+
# self.client.login(username='liangliangyy', password='liangliangyy')
127127
from DjangoBlog.spider_notify import SpiderNotify
128128
SpiderNotify.baidu_notify([article.get_full_url()])
129129

@@ -149,7 +149,9 @@ def test_validate_article(self):
149149
self.assertEqual(response.status_code, 200)
150150
from DjangoBlog.utils import block_code
151151
block = block_code("`python`", 'python')
152-
152+
self.client.get("/admin/blog/article/1/delete/")
153+
self.client.get('/admin/servermanager/emailsendlog/')
154+
self.client.get('admin/admin/logentry/')
153155

154156
def __check_pagination__(self, p, type, value):
155157
s = load_pagination_info(p.page(1), type, value)
@@ -182,18 +184,12 @@ def test_image(self):
182184
form_data = {'python.png': imgfile}
183185
rsp = self.client.post(
184186
'/upload?sign=' + sign, form_data, follow=True)
185-
186187
self.assertEqual(rsp.status_code, 200)
188+
os.remove(imagepath)
187189
from DjangoBlog.utils import save_user_avatar, send_email
188190
send_email(['[email protected]'], 'testTitle', 'testContent')
189191
save_user_avatar(
190192
'https://www.python.org/static/img/[email protected]')
191-
"""
192-
data = SimpleUploadedFile(imagepath, b'file_content', content_type='image/jpg')
193-
rsp = self.client.post('/upload', {'django.jpg': data})
194-
self.assertEqual(rsp.status_code, 200)
195-
SimpleUploadedFile()
196-
"""
197193

198194
def test_errorpage(self):
199195
rsp = self.client.get('/eee')

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
coverage==5.5
2-
Django==3.2.5
2+
Django==3.2.6
33
django-compressor==2.4.1
4-
django-haystack==3.0
5-
django-ipware==3.0.2
4+
django-haystack==3.1.1
5+
django-ipware==4.0.0
66
django-mdeditor==0.1.18
77
django-uuslug==1.2.0
8-
elasticsearch==7.13.3
8+
elasticsearch==7.14.0
99
elasticsearch-dsl==7.4.0
10-
gevent==21.1.2
10+
gevent==21.8.0
1111
jieba==0.42.1
1212
jsonpickle==2.0.0
1313
mistune==0.8.4
1414
mysqlclient==2.0.3
1515
Pillow==8.3.1
16-
Pygments==2.9.0
16+
Pygments==2.10.0
1717
python-logstash==0.4.6
1818
python-memcached==1.59
1919
python-slugify==5.0.2

0 commit comments

Comments
 (0)