Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite088425

Browse files
committed
Fix broken mock references due to merge
1 parentab5e05c commite088425

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎tests/test_repos.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,8 +1442,8 @@ def test_download(self):
14421442
self.request.return_value._content_consumed=False
14431443

14441444
# 200, to file-like object
1445-
o=mock_open()
1446-
withpatch('{0}.open'.format(__name__),o,create=True):
1445+
o=mock.mock_open()
1446+
withmock.patch('{0}.open'.format(__name__),o,create=True):
14471447
withopen('download','wb+')asfd:
14481448
self.asset.download(fd)
14491449
o.assert_called_once_with('download','wb+')
@@ -1465,8 +1465,8 @@ def test_download(self):
14651465
'Content-Type':None,
14661466
})
14671467
delself.conf['allow_redirects']
1468-
o=mock_open()
1469-
withpatch('{0}.open'.format(__name__),o,create=True):
1468+
o=mock.mock_open()
1469+
withmock.patch('{0}.open'.format(__name__),o,create=True):
14701470
withopen('download','wb+')asfd:
14711471
self.asset.download(fd)
14721472
o.assert_called_once_with('download','wb+')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp