Fix mock return settings in test_full_uuids_skip_port_id_lookup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Dane LeBlanc |
Bug Description
In the test_full_
with how a mock return value is being set for a database query.
The first problem is that in this line:
fmock = sess_mock.
there is a missing '.return_value' missing between 'sess_mock' and 'query'.
The second problem is that in this line:
fmock.
the 'all.return_value' should not be used.
For reference, the query for which this mock return value is being set is in the
get_sg_
query = session.
query = query.outerjoin
query = query.filter(
If the mock return values are set correctly, the last statement should yield an empty list.
Changed in neutron: | |
assignee: | nobody → Dane LeBlanc (leblancd) |
Changed in neutron: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/173399
Review: https:/