DECA-111: Mockserver's relative paths point to the wrong location when called from another module

Metadata

Source
DECA-111
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2010-06-01T13:23:51.766-0400
Updated
2012-01-10T09:49:33.637-0500
Versions
N/A
Fixed Versions
  1. 0.4
Component
N/A

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/*)

Comments

  • Colin Clark commented 2010-06-09T00:02:48.127-0400

    This issue is a specific incarnation of DECA-113

  • Colin Clark commented 2010-07-14T00:48:20.896-0400

    Fixed as part of DECA-113