Closed zghp closed 2 weeks ago
Prepared an .md file with how this deviceController can be integrated, with pro/cons and other related notes
[ deviceManager.py - existing class, controls multiple device controllers ] [ deviceController.py - contains everything needed to set up one device ]
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)
Goal:
Explore the feasibility of transitioning device setup and management from
testController
todeviceController
.Determine how unittest can be used to write and execute tests for the
deviceController
.Acceptance Criteria:
Comprehensive understanding of the current
testController
implementation.Documented requirements and responsibilities for the
deviceController
.Clear outline of how
unittest
can be integrated with thedeviceController
.Proposed plan for implementing the
deviceController
and transitioning fromtestController
.