Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7358

Modify meas_modelfit tests to support pytest

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: meas_modelfit
    • Labels:
      None
    • Story Points:
      0.5
    • Sprint:
      DRP F16-3
    • Team:
      Data Release Production

      Description

      This ticket is for the work of migrating the meas_modelfit tests such that they run with the py.test test runner.

        Attachments

          Issue Links

            Activity

            Hide
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment -

            vish@Zw229-15:~/code/lsst/meas_modelfit (tickets/DM-7358)$ py.test tests/*.py
            ============================================================================================================================================================================ test session starts ============================================================================================================================================================================
            platform linux2 – Python 2.7.12, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
            rootdir: /home/vish/code/lsst/meas_modelfit/tests, inifile:
            collected 92 items

            tests/testCModelPlugins.py ...
            tests/testCModel.py ....
            tests/testDefaultZeroPoint.py ...
            tests/testDoubleShapeletPsfApprox.py .......................
            tests/testGeneralShapeletPsfApproxPlugins.py .......
            tests/testGeneralShapeletPsfModels.py .......
            tests/testIntegrals.py ...
            tests/testMeasureImage.py ....
            tests/testMixture.py .......
            tests/testOptimizer.py ...
            tests/testProjectedLikelihood.py ......
            tests/testPsfFitter.py ......
            tests/testSemiEmpiricalPrior.py .....
            tests/testSoftenedLinearPrior.py ......
            tests/testTruncatedGaussian.py .....

            ======================================================================================================================================================================== 92 passed in 27.41 seconds =========================================================================================================================================================================

            Show
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment - vish@Zw229-15:~/code/lsst/meas_modelfit (tickets/ DM-7358 )$ py.test tests/*.py ============================================================================================================================================================================ test session starts ============================================================================================================================================================================ platform linux2 – Python 2.7.12, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 rootdir: /home/vish/code/lsst/meas_modelfit/tests, inifile: collected 92 items tests/testCModelPlugins.py ... tests/testCModel.py .... tests/testDefaultZeroPoint.py ... tests/testDoubleShapeletPsfApprox.py ....................... tests/testGeneralShapeletPsfApproxPlugins.py ....... tests/testGeneralShapeletPsfModels.py ....... tests/testIntegrals.py ... tests/testMeasureImage.py .... tests/testMixture.py ....... tests/testOptimizer.py ... tests/testProjectedLikelihood.py ...... tests/testPsfFitter.py ...... tests/testSemiEmpiricalPrior.py ..... tests/testSoftenedLinearPrior.py ...... tests/testTruncatedGaussian.py ..... ======================================================================================================================================================================== 92 passed in 27.41 seconds =========================================================================================================================================================================
            Hide
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment -

            Hi Tim,
            Can you please review the work done on this ticket? Thanks!

            Show
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment - Hi Tim, Can you please review the work done on this ticket? Thanks!
            Hide
            tjenness Tim Jenness added a comment -

            Looks good. Couple of comments on the PR: move the seed setting to setUp method and not individual tests.

            Show
            tjenness Tim Jenness added a comment - Looks good. Couple of comments on the PR: move the seed setting to setUp method and not individual tests.
            Hide
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment -

            Merged to master...

            Show
            vpk24 Vishal Kasliwal [X] (Inactive) added a comment - Merged to master...

              People

              Assignee:
              vpk24 Vishal Kasliwal [X] (Inactive)
              Reporter:
              vpk24 Vishal Kasliwal [X] (Inactive)
              Reviewers:
              Tim Jenness
              Watchers:
              Tim Jenness, Vishal Kasliwal [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.