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

Improve database unit tests in the absence of a running server

    Details

    • Templates:
    • Team:
      Data Access and Database

      Description

      There is a number of packages (daf_ingest, obs_sdss, obs_lsstSim, daf_persistence) that contains unit tests which communicate with a database server. When the usual database server at NCSA is not up, or not reachable, the tests are skipped.

      It should be possible to do something more useful via mocking. For example, it may be possible to record and serialize a passing unit test's database interactions with a live instance, and to play back those interactions via mocks of the DBAPI connection and cursor classes when no live database is available.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                smonkewitz Serge Monkewitz
                Watchers:
                Brian Van Klaveren, Fritz Mueller, Frossie Economou, Jacek Becla, John Parejko, Serge Monkewitz
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel