Skip to content

Commit

Permalink
Merge pull request #115 from lsst/tickets/DM-45461
Browse files Browse the repository at this point in the history
DM-45461: Initialize leak test with setup_module for pytest
  • Loading branch information
timj authored Jul 29, 2024
2 parents f8700f9 + 7730287 commit de326e0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_astrometryFail.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ class MemoryTester(lsst.utils.tests.MemoryTestCase):
pass


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()
4 changes: 4 additions & 0 deletions tests/test_calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def testLocalWcsColumns(self):
- record['base_LocalWcs_CDMatrix_2_1']*record['base_LocalWcs_CDMatrix_1_2'])))


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()
4 changes: 4 additions & 0 deletions tests/test_filterLabelFixups.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def testReadingBadNewFileWithFullDataId(self):
self.assertEqual(calexp.getFilter(), calexpSub.getFilter())


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()
4 changes: 4 additions & 0 deletions tests/test_lookupFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ class MemoryTester(lsst.utils.tests.MemoryTestCase):
pass


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()
4 changes: 4 additions & 0 deletions tests/test_psfModelTraceFail.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class MemoryTester(lsst.utils.tests.MemoryTestCase):
pass


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()
4 changes: 4 additions & 0 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def testSourceSchemaMatch(self):
self._validateSchema("sourceTable_visit", dataId, "Source")


def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()

0 comments on commit de326e0

Please sign in to comment.