8000 Fix broken mock references due to merge · davidmoss/github3.py@e088425 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit e088425

Browse files
committed
Fix broken mock references due to merge
1 parent ab5e05c commit e088425

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-
with patch('{0}.open'.format(__name__), o, create=True):
1445+
o = mock.mock_open()
1446+
with mock.patch('{0}.open'.format(__name__), o, create=True):
14471447
with open('download', 'wb+') as fd:
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
del self.conf['allow_redirects']
1468-
o = mock_open()
1469-
with patch('{0}.open'.format(__name__), o, create=True):
1468+
o = mock.mock_open()
1469+
with mock.patch('{0}.open'.format(__name__), o, create=True):
14701470
with open('download', 'wb+') as fd:
14711471
self.asset.download(fd)
14721472
o.assert_called_once_with('download', 'wb+')

0 commit comments

Comments
 (0)
0