From 11eaab27260191cac1cb17e52230799a25a05448 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Fri, 20 Jul 2012 13:31:11 -0700 Subject: [PATCH] Added a filestore pointing at the directory of the file being run for xmodule tests --- common/lib/xmodule/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/tests/__init__.py b/common/lib/xmodule/tests/__init__.py index 5483015a82..ee18fcb98f 100644 --- a/common/lib/xmodule/tests/__init__.py +++ b/common/lib/xmodule/tests/__init__.py @@ -7,6 +7,7 @@ import unittest import os +import fs import numpy @@ -27,7 +28,7 @@ class I4xSystem(object): def __init__(self): self.ajax_url = '/' self.track_function = lambda x: None - self.filestore = None + self.filestore = fs.osfs.OSFS(os.path.dirname(os.path.realpath(__file__))) self.render_function = lambda x: {} # Probably incorrect self.module_from_xml = lambda x: None # May need a real impl... self.exception404 = Exception