Skip to content
Snippets Groups Projects
Commit 927b74e7 authored by Calen Pennington's avatar Calen Pennington
Browse files

Make separate test processes use separate GRADES_DOWNLOAD and FINANCIAL_REPORTS directories

parent 76e0482f
No related branches found
Tags release-2018-10-29-12.45
No related merge requests found
......@@ -132,7 +132,7 @@ class PartitionTestCase(TestCase):
)
# 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
self.user_partition = UserPartition(
......@@ -148,7 +148,10 @@ class PartitionTestCase(TestCase):
self.user_partition.get_scheme(self.non_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
......
......@@ -70,6 +70,10 @@ FEATURES['ENABLE_VERIFIED_CERTIFICATES'] = True
FEATURES['ENABLE_S3_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
FEATURES['EMBARGO'] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment