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 tests for HasTraits.traits and _items traits #1330

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

kitchoi
Copy link
Contributor

@kitchoi kitchoi commented Oct 27, 2020

This PR adds tests that should pass on master. It demonstrates the current behaviour of HasTraits.traits.

Related to #1329

Checklist

  • Tests
  • Update API reference (docs/source/traits_api_reference)
  • Update User manual (docs/source/traits_user_manual)
  • Update type annotation hints in traits-stubs

@kitchoi
Copy link
Contributor Author

kitchoi commented Oct 27, 2020

For reference, if I remove this line:

if name[-6:] != "_items":

The two tests added by this PR fail, no other tests fail.

Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM

@mdickinson
Copy link
Member

Closing and re-opening to retrigger CI, so that we get the required travis-ci.com run.

@mdickinson mdickinson closed this Nov 2, 2020
@mdickinson mdickinson reopened this Nov 2, 2020
@mdickinson mdickinson merged commit ed6b406 into master Nov 2, 2020
@mdickinson mdickinson deleted the tst-for-traits-excluding-items branch November 2, 2020 12:08
@rahulporuri rahulporuri added this to Sprint 2 : Oct 19 - Oct 30 2020 in Enthought OSS Q4 2020 Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Enthought OSS Q4 2020
Sprint 2 : Oct 19 - Oct 30 2020
Development

Successfully merging this pull request may close these issues.

None yet

2 participants