Commit 2f98db43 by Calen Pennington

Merge pull request #249 from MITx/arjun/tests_filestore

Added a filestore pointing at the directory of the file being run for xmodule tests
parents 18a8da64 30f39b35
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
import unittest import unittest
import os import os
import fs
import numpy import numpy
...@@ -28,7 +29,7 @@ class I4xSystem(object): ...@@ -28,7 +29,7 @@ class I4xSystem(object):
def __init__(self): def __init__(self):
self.ajax_url = '/' self.ajax_url = '/'
self.track_function = lambda x: None 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.render_function = lambda x: {} # Probably incorrect
self.module_from_xml = lambda x: None # May need a real impl... self.module_from_xml = lambda x: None # May need a real impl...
self.exception404 = Exception self.exception404 = Exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment