Added a filestore pointing at the directory of the file being run for xmodule tests

This commit is contained in:
Arjun Singh
2012-07-20 13:31:11 -07:00
parent 43cd2c2190
commit d446081748

View File

@@ -7,6 +7,7 @@
import unittest
import os
import fs
import numpy
@@ -28,7 +29,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