rdkcentral / python_raft

RAFT is a Python based testing framework for writing engineering tests. It provides a modular, config driven, low level testing framework
Apache License 2.0
2 stars 0 forks source link

Investigate the usage of a deviceController with unittest #66

Closed zghp closed 2 weeks ago

zghp commented 1 month ago

Goal:

Acceptance Criteria:

zghp commented 3 weeks ago

Prepared an .md file with how this deviceController can be integrated, with pro/cons and other related notes

zghp commented 2 weeks ago

[ deviceManager.py - existing class, controls multiple device controllers ] [ deviceController.py - contains everything needed to set up one device ]

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)