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

DM-28109: Test failure in obs_base test_cameraMapper.Mapper2TestCase #338

Merged
merged 1 commit into from Dec 18, 2020

Conversation

kfindeisen
Copy link
Member

This PR fixes a bug where one of the test cases depended on Filter with specific filters, but, depending on test execution order, those filters were not guaranteed to have been registered.

@@ -218,6 +218,12 @@ def testNames(self):
class Mapper2TestCase(unittest.TestCase):
"""A test case for the mapper used by the data butler."""

def setUp(self):
super().setUp()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this ever necessary for a direct inheritor from unittest.TestCase?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe not, but it's good practice in general, and does no harm here.

@kfindeisen kfindeisen merged commit e9a044d into master Dec 18, 2020
@kfindeisen kfindeisen deleted the tickets/DM-28109 branch December 18, 2020 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants