Rewrite mock.mock attribute accesses (#1533)

This commit is contained in:
Charlie Marsh
2023-01-01 13:14:09 -05:00
committed by GitHub
parent 509c6d5ec7
commit f1a183c171
7 changed files with 120 additions and 32 deletions

View File

@@ -65,3 +65,10 @@ if True:
if True:
# This should yield multiple, aliased imports.
from mock import mock as foo, mock as bar, mock
# This should be unchanged.
x = mock.Mock()
# This should change to `mock.Mock`().
x = mock.mock.Mock()