nova/nova/tests
Eric Fried c36782a96a hacking: force explicit import of python's mock
Since we dropped support for python 2 [1], we no longer need to use the
mock library, which existed to backport py3 functionality into py2.
Change Ib44b5bff657c8e76c4f701e14d51a4efda3f6d32 cut over to importing
the stock mock, which must be done by saying::

    from unittest import mock

...because if you say::

    import mock

...you will be using the third party mock library instead, which may or
may not be installed.

This commit adds hacking check N371 to enforce the former.

[1] https://review.opendev.org/#/c/687954/

Change-Id: I71439580e80d33cff62aba807df2b35164a47cbe
2022-08-02 15:31:19 +02:00
..
fixtures Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
functional Remove double mocking 2022-08-02 15:31:15 +02:00
unit hacking: force explicit import of python's mock 2022-08-02 15:31:19 +02:00
__init__.py
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00