This week as discussed with my immediate mentor, I started working on the last problem of creating tests for the Workload Management System (WMS) Agents. These agents were till now not covered in the tests and hence it becomes important to incorporate them as most of the summer I worked on WMS module components.
This involved studying about mock and pytest python modules as using pytest reduced the verbose to be written for unit tests. With this knowledge, I wrote four tests for the following WMS agents:
This involved studying about mock and pytest python modules as using pytest reduced the verbose to be written for unit tests. With this knowledge, I wrote four tests for the following WMS agents:
- JobAgent.py
- JobCleaningAgent.py
- PilotStatusAgent.py
- StalledJobAgent.py
Apart from writing these tests, it was important that each of the function was accessible from the agent's module. Hence, modified the above-mentioned Agents modules for testing purposes.
The work done in this week can be found in the following Pull Request 3771.
Comments
Post a Comment