Skip to content
Snippets Groups Projects
Commit 2812b9cd authored by JonahStanley's avatar JonahStanley
Browse files

Fixed how config was obtained

Added comment about the feature
parent 682d85c2
No related merge requests found
......@@ -81,6 +81,7 @@ MITX_FEATURES['AUTOMATIC_AUTH_FOR_TESTING'] = True
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
USE_I18N = True
# Information needed to utilize Sauce Labs.
MITX_FEATURES['SAUCE'] = {
'USE' : False,
'USERNAME' : '<USERNAME>',
......
......@@ -50,10 +50,12 @@ try:
except ImportError:
import simplejson as json
config = {"username": settings.MITX_FEATURES.get('SAUCE_USERNAME'),
"access-key": settings.MITX_FEATURES.get('SAUCE_ACCESS_ID')}
SAUCE = settings.MITX_FEATURES.get('SAUCE', {})
config = {"username": SAUCE.get('USERNAME'),
"access-key": SAUCE.get('ACCESS_ID')}
desired_capabilities = SAUCE.get('BROWSER', DesiredCapabilities.CHROME)
desired_capabilities['platform'] = SAUCE.get('PLATFORM', 'Linux')
desired_capabilities['version'] = SAUCE.get('VERSION', '')
......
......@@ -89,6 +89,7 @@ MITX_FEATURES['AUTOMATIC_AUTH_FOR_TESTING'] = True
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
USE_I18N = True
# Information needed to utilize Sauce Labs.
MITX_FEATURES['SAUCE'] = {
'USE' : False,
'USERNAME' : '<USERNAME>',
......@@ -98,7 +99,7 @@ MITX_FEATURES['SAUCE'] = {
'VERSION' : '',
'DEVICE' : '',
'SESSION' : 'Lettuce Tests',
'BUILD' : 'CMS TESTS',
'BUILD' : 'LMS TESTS',
'TAGS' : ''
}
......
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