(Websocket) tests don't validate many responses from Zaqar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Low
|
Eva Balycheva |
Bug Description
The problem:
See this file:
https:/
You can try to modify asserted response code in "test_no_metadata" test case (and many other test cases) and the test still will pass.
Why it happens:
Let's examine common code costruction in "test_queue_
send_mock = mock.patch.
req = test_utils.
def validator(resp, isBinary):
resp = json.loads(resp)
The code under "validator" function never executes. Because "send_mock" variable actually has "mock.mock._patch" type instead of "mock.MagicMock" type.
Changed in zaqar: | |
assignee: | nobody → Eva Balycheva (ubershy) |
Changed in zaqar: | |
importance: | Undecided → Low |
status: | In Progress → Triaged |
Changed in zaqar: | |
status: | Triaged → In Progress |
Fix proposed to branch: master /review. openstack. org/283838
Review: https:/