Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python testing framework - consider adding guard functions for attribute / command / feature checks. #370

Open
cecille opened this issue Sep 20, 2024 · 1 comment
Assignees

Comments

@cecille
Copy link
Contributor

cecille commented Sep 20, 2024

Consider adding easier-to-use guard functions for attribute / function / command existence checks.

Ex, something similar to pics_guard, but for features and attributes etc. There are now "has_feature" and "has_attribute" functions, it seems like this might be neater. We could force the tests to pull a full wildcard at the start of the tests (or at least a wildcard of the global attributes). We're kind of going there with the pics reduction stuff anyway.

@j-ororke
Copy link

I have created a function under MatterBaseTest class named "attributes_guard" as you had mentioned, this is currently implemented in the Remove_PICS_from_Opstate_Tests PR. Please let me know if this works for the attributes, if so, i could continue on with creating something similar for the commands and features as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants