Closed zghp closed 14 hours ago
issue: we need our features + the unittest.TestCase features
issue: to get the rack config into deviceController (so it has everything it needs to set up the devices) we need to parse our arguments but to instantiate the class we have to call unittest main which has its own argument parser
In short, we need to integrate a singleton so that the init of the unit test class and the init of the unit test main refer to it (this should work because unittest is still used as it was intended to but we override and set it up ourselves before we get there). And by calling super it means that both their parsers and our parsers are involved (thanks to the singleton)
Refactoring the code based on the review feedback
New plan has been created for unittest integration where deviceController is not needed at the moment. This ticket has been added to the snag list.
Goal:
Implement a new deviceController class to encapsulate all device-related logic. Write and execute tests for the deviceController using the unittest framework.
Acceptance Criteria: