-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python script: start of TH integration code (#28708)
* Python script: start of TH integration code - adds required command line functionality (endpoint, nodeID, timeout) - adds the ability to pass in a hooks object for use by the TH - adds an internal hooks object when scripts are being used on the command line - adds hook calls as appropriate at test start / end / steps To setup a test for use in the TH, define a steps_ and desc_ function with the same name as the test, change print_step() calls to step() calls with the appropriate number, add pics_guard calls around pics checks. Changes the hello_test to demonstrate how to do this and also how the test works if the steps_ function is not defined. Added a demonstration of how the TH could call these to get the hooks back out. * Add pics_ handler, address review comments * lint * Restyled by isort * Update src/python_testing/matter_testing_support.py Co-authored-by: Carolina Lopes <[email protected]> * Init stuff in setup_class in case setup_class fails * Make default timeout configurable --------- Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Carolina Lopes <[email protected]>
- Loading branch information
1 parent
c4dd75e
commit 696975f
Showing
5 changed files
with
633 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.