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

Add a TraitsUITestAssistant class #664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

corranwebster
Copy link
Contributor

Second attempt.

This adds a subclass of GUITestAssistant with convenience methods for testing TraitsUI GUIs.

The API is currently experimental.

will attempt to use self.object, if it exists.
**kwargs : keyword arguments
Additional keyword arguments will be passed through to
edit_traits.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by comment: As a user of this method, I would not mind having to pass the entire dictionary of keyword arguments as one argument, e.g. create_ui(object=some_instance, edit_kwargs=dict(view=my_view)) and then object.edit_traits(**edit_kwargs). Then there will be room for future extension to the signature of create_ui.

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

Successfully merging this pull request may close these issues.

None yet

2 participants