Switch to use package mock of version 1.1.0 or greater
Bug #1493061 reported by
Bulat Gaifullin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Fuel Sustaining | ||
Mitaka |
Won't Fix
|
Medium
|
Fuel Python (Deprecated) | ||
Newton |
Confirmed
|
Medium
|
Fuel Sustaining |
Bug Description
since version 1.1.0 introduced fix, that prevent to call any method, that starts with 'assert' and not implement in mock class.
for example:
in version 1.0.1 this code runs properly:
some_mock.
it will create a new mock method and test pass even it checks nothing
in new version some code will generate AttributeError unless special flag usafe_mock is set.
Changed in fuel: | |
assignee: | nobody → Fuel Python Team (fuel-python) |
milestone: | none → 8.0 |
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: tech-debt |
tags: | added: area-python |
Changed in fuel: | |
milestone: | 8.0 → 9.0 |
To post a comment you must log in.
Now we can write 'assert_ called_ with_once' in code and believe, that test performs check.
For instance: [1]
[1] https:/ /github. com/stackforge/ fuel-web/ blob/f882c428db 97ee1eb93a4871f 9d5857c5a7771b2 /nailgun/ nailgun/ test/unit/ fuel_statistics _tests/ test_client_ provider. py#L91
Set priority to Medium.