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