Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2517

AttributeError in utils.py when running tests for fcrepo-import-export-verify

    Details

      Description

      =================================== FAILURES ===================================
      ______________________________ test_get_data_dir _______________________________

          def test_get_data_dir():
              config.bag = False
      > data_dir = get_data_dir(config)

      tests/test_utils.py:14:
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

      config = {}

          def get_data_dir(config):
              """Returns the root directory containing serialized fedora objects
              based on the configuration."""
      > return config.dir if not config.bag else config.dir + "/data"
      E AttributeError: 'MockConfig' object has no attribute 'dir'

      fcrepo_verify/utils.py:48: AttributeError
      ====================== 1 failed, 4 passed in 0.23 seconds ======================

        Attachments

          Activity

            People

            • Assignee:
              dbernstein Danny Bernstein
              Reporter:
              youn.noh Youn Noh
              Reviewer:
              Joshua Westgard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: