Commit 927b74e7 by Calen Pennington

Make separate test processes use separate GRADES_DOWNLOAD and FINANCIAL_REPORTS directories

parent 76e0482f
...@@ -132,7 +132,7 @@ class PartitionTestCase(TestCase): ...@@ -132,7 +132,7 @@ class PartitionTestCase(TestCase):
) )
# Be sure to clean up the global scheme_extensions after the test. # Be sure to clean up the global scheme_extensions after the test.
self.addCleanup(self.cleanupSchemeExtensions) self.addCleanup(self.cleanup_scheme_extensions)
# Create a test partition # Create a test partition
self.user_partition = UserPartition( self.user_partition = UserPartition(
...@@ -148,7 +148,10 @@ class PartitionTestCase(TestCase): ...@@ -148,7 +148,10 @@ class PartitionTestCase(TestCase):
self.user_partition.get_scheme(self.non_random_scheme.name) self.user_partition.get_scheme(self.non_random_scheme.name)
self.user_partition.get_scheme(self.random_scheme.name) self.user_partition.get_scheme(self.random_scheme.name)
def cleanupSchemeExtensions(self): def cleanup_scheme_extensions(self):
"""
Unset the UserPartition.scheme_extensions cache.
"""
UserPartition.scheme_extensions = None UserPartition.scheme_extensions = None
......
...@@ -70,6 +70,10 @@ FEATURES['ENABLE_VERIFIED_CERTIFICATES'] = True ...@@ -70,6 +70,10 @@ FEATURES['ENABLE_VERIFIED_CERTIFICATES'] = True
FEATURES['ENABLE_S3_GRADE_DOWNLOADS'] = True FEATURES['ENABLE_S3_GRADE_DOWNLOADS'] = True
FEATURES['ALLOW_COURSE_STAFF_GRADE_DOWNLOADS'] = True FEATURES['ALLOW_COURSE_STAFF_GRADE_DOWNLOADS'] = True
GRADES_DOWNLOAD['ROOT_PATH'] += "-{}".format(os.getpid())
FINANCIAL_REPORTS['ROOT_PATH'] += "-{}".format(os.getpid())
# Toggles embargo on for testing # Toggles embargo on for testing
FEATURES['EMBARGO'] = True FEATURES['EMBARGO'] = True
......
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