Merge pull request #5609 from edx/zoldak/remove-tmp-references

Remove references to /tmp in tests
This commit is contained in:
Jesse Zoldak
2014-10-17 12:12:53 -04:00
6 changed files with 23 additions and 11 deletions

View File

@@ -3,6 +3,8 @@ Tests for testing the modulestore settings migration code.
"""
import copy
import ddt
from tempfile import mkdtemp
from unittest import TestCase
from xmodule.modulestore.modulestore_settings import (
convert_module_store_setting_if_needed,
@@ -10,7 +12,6 @@ from xmodule.modulestore.modulestore_settings import (
get_mixed_stores,
)
@ddt.ddt
class ModuleStoreSettingsMigration(TestCase):
"""
@@ -35,7 +36,7 @@ class ModuleStoreSettingsMigration(TestCase):
"collection": "modulestore",
"db": "edxapp",
"default_class": "xmodule.hidden_module.HiddenDescriptor",
"fs_root": "/edx/var/edxapp/data",
"fs_root": mkdtemp(),
"host": "localhost",
"password": "password",
"port": 27017,