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

Adding coverage for exceptions.py #144

Merged

Conversation

shaneallcroft
Copy link
Contributor

Working on unchecked exceptions.


def test_unknown_platform(self):
"""Test resolve_dep with bad OS"""
with self.assertRaises(UnknownPlatform):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to add an import for superflore.exceptions.UnknownPlatform

def test_unknown_platform(self):
"""Test resolve_dep with bad OS"""
with self.assertRaises(UnknownPlatform):
ret = rsolve_dep('cmake', 'Windoughs8')
Copy link
Contributor

@allenh1 allenh1 Mar 2, 2018

Choose a reason for hiding this comment

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

s/rsolve_dep/resolve_dep

@tfoote
Copy link
Member

tfoote commented Mar 2, 2018

@shaneallcroft You might find it helpful to run the unit tests yourself locally before opening a pull request. You can see how the CI is running them by looking at the .travis.yml

@shaneallcroft
Copy link
Contributor Author

@tfoote Will do! Sorry for the noise.

@allenh1
Copy link
Contributor

allenh1 commented Mar 2, 2018

@shaneallcroft Thanks for adding that missing test! Unfortunately, the others in exceptions.py are not quite doable for the moment, since the test files are missing entirely. Next on my list, however, is to start the repo_instance.py tests.

So, pending @tfoote's opinion, I think this can be merged.

Copy link
Contributor

@allenh1 allenh1 left a comment

Choose a reason for hiding this comment

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

lgtm

@allenh1 allenh1 merged commit 055ac8c into ros-infrastructure:master Mar 3, 2018
zffgithub pushed a commit to zffgithub/superflore that referenced this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants