neutron/neutron/tests/unit
Hervé Beraud 3df1679658 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Also enabled the hacking check that should have caught this, it
was missing from tox.ini along with most of the other in-tree
hacking checks we have added over the years.

Change-Id: Id91175d0db8b8edc72f0dd98925ddbf7415bb881
2020-06-17 14:42:03 +00:00
..
agent Merge "Fix iptables rules comments" 2020-06-08 23:17:50 +00:00
api Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00
cmd Merge "Limit ml2_vlan_allocations.vlan_id value in DB backend" 2020-06-09 23:37:42 +00:00
common Use unittest.mock instead of mock 2020-06-17 14:42:03 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Add sg name in after delete event kwargs 2020-05-15 10:10:15 -05:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions Merge "Delete segment RPs when network is deleted" 2020-05-26 16:21:46 +00:00
hacking Catch additional invalid mock import statement 2020-05-19 17:25:33 -04:00
ipam Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
notifiers Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
objects Merge "Optimize QoS bound objects queries" 2020-05-18 10:20:20 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Merge "[OVN] Create localnet port for each created segment" 2020-06-11 21:02:59 +00:00
privileged Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
scheduler Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
services Refactor assertEqual statement that includes 'True' 2020-06-17 09:36:42 -05:00
tests Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
fake_resources.py Merge "[OVN] Create localnet port for each created segment" 2020-06-11 21:02:59 +00:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00