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

Tests for ImageLibrary and related code #1003

Merged
merged 2 commits into from
Aug 11, 2021
Merged

Conversation

corranwebster
Copy link
Contributor

These are more integration tests than unit tests, and don't attempt to test anything which changes global state (eg. adding to ImageLibrary, etc).

Total coverage is ~68%, but that's a lot better than 0 and these tests will hopefully be enough to:

  • catch breaking changes
  • allow future refactoring with some degree of confidence

These are more integration tests than unit tests, and don't attempt to test
anything which changes global state (eg. adding to ImageLibrary, etc)
@rahulporuri rahulporuri self-requested a review August 5, 2021 10:07
pyface/image/tests/__init__.py Outdated Show resolved Hide resolved
def test_no_at_symbol(self):
volume_name, file_name = split_image_name("icons:red_ball.jpg")

# XXX this should probably raise rather than doing this
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it makes sense to open an issue for this instead of leaving this information hidden in a comment in a test?

Copy link
Contributor Author

@corranwebster corranwebster Aug 11, 2021

Choose a reason for hiding this comment

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

Done: #1015

@corranwebster corranwebster merged commit 9ad6e3a into main Aug 11, 2021
@corranwebster corranwebster deleted the test/image-library branch August 11, 2021 08:59
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