MT refactor test_jobs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Giuseppe Vallarelli |
Bug Description
[et=3]
[at=4]
In test_job there are some function that depend on two external objects: context, workflow, as well as ugly test_parameters
1. Get rid of these dependencies by storing tests input data in external files, so each test function depend only on the called job code.
2. Refactor test_parameters using mock library an example of refactoring for tests_parameter
def test_parameters
context = create_
mocked_func = Mock(return_
description: | updated |
description: | updated |
Changed in openquake: | |
status: | New → In Progress |
Changed in openquake: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in openquake: | |
status: | Fix Committed → Fix Released |