-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #752 from liangliangyy/dev
fix ci
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ def check_pagination(self, p, type, value): | |
def test_image(self): | ||
import requests | ||
rsp = requests.get( | ||
'https://www.python.org/static/img/python-logo@2x.png') | ||
'https://www.python.org/static/img/python-logo.png') | ||
imagepath = os.path.join(settings.BASE_DIR, 'python.png') | ||
with open(imagepath, 'wb') as file: | ||
file.write(rsp.content) | ||
|
@@ -180,7 +180,7 @@ def test_image(self): | |
from djangoblog.utils import save_user_avatar, send_email | ||
send_email(['[email protected]'], 'testTitle', 'testContent') | ||
save_user_avatar( | ||
'https://www.python.org/static/img/python-logo@2x.png') | ||
'https://www.python.org/static/img/python-logo.png') | ||
|
||
def test_errorpage(self): | ||
rsp = self.client.get('/eee') | ||
|