Skip to content

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.

2 participants