Uploaded image for project: 'Decapod'
  1. Decapod
  2. DECA-111

Mockserver's relative paths point to the wrong location when called from another module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None

      Description

      Mockserver's relative paths point to the wrong location when called from another module

      In trying to create webtest tests, when running mockserver.py from the test module, the relative paths used are relative to the test module instead of mockserver.py.

      Here is an example of how it could be fixed for the glob function call on line 129
      current_dir = os.path.abspath(os.path.dirname(_file_))
      files = glob.glob(current_dir + "/testData/imageFeed/*)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jobara Justin Obara
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: