From 57f09e987ffac22290c7a0d83612b52069bc9963 Mon Sep 17 00:00:00 2001 From: Nimisha Asthagiri Date: Fri, 5 Jan 2018 14:35:03 -0500 Subject: [PATCH] Delete unneeded Django Settings files --- cms/envs/acceptance.py | 1 - cms/envs/analytics_exporter.py | 6 ---- lms/envs/acceptance.py | 1 - lms/envs/analytics_exporter.py | 6 ---- lms/envs/sauce.py | 60 ---------------------------------- 5 files changed, 74 deletions(-) delete mode 100644 cms/envs/analytics_exporter.py delete mode 100644 lms/envs/analytics_exporter.py delete mode 100644 lms/envs/sauce.py diff --git a/cms/envs/acceptance.py b/cms/envs/acceptance.py index 8c2fef4247..7846766a7c 100644 --- a/cms/envs/acceptance.py +++ b/cms/envs/acceptance.py @@ -8,7 +8,6 @@ so that we can run the lettuce acceptance tests. # pylint: disable=wildcard-import, unused-wildcard-import from .test import * -from lms.envs.sauce import * # You need to start the server in debug mode, # otherwise the browser will not render the pages correctly diff --git a/cms/envs/analytics_exporter.py b/cms/envs/analytics_exporter.py deleted file mode 100644 index 35becab3d9..0000000000 --- a/cms/envs/analytics_exporter.py +++ /dev/null @@ -1,6 +0,0 @@ -""" -This is the settings file used during execution of the analytics-exporter job. -""" -from .aws import * - -ENABLE_COMPREHENSIVE_THEMING = False diff --git a/lms/envs/acceptance.py b/lms/envs/acceptance.py index 555fcfb93b..ee7e4d423a 100644 --- a/lms/envs/acceptance.py +++ b/lms/envs/acceptance.py @@ -8,7 +8,6 @@ so that we can run the lettuce acceptance tests. # pylint: disable=wildcard-import, unused-wildcard-import from .test import * -from .sauce import * # You need to start the server in debug mode, # otherwise the browser will not render the pages correctly diff --git a/lms/envs/analytics_exporter.py b/lms/envs/analytics_exporter.py deleted file mode 100644 index 35becab3d9..0000000000 --- a/lms/envs/analytics_exporter.py +++ /dev/null @@ -1,6 +0,0 @@ -""" -This is the settings file used during execution of the analytics-exporter job. -""" -from .aws import * - -ENABLE_COMPREHENSIVE_THEMING = False diff --git a/lms/envs/sauce.py b/lms/envs/sauce.py deleted file mode 100644 index 0bb84dcaf7..0000000000 --- a/lms/envs/sauce.py +++ /dev/null @@ -1,60 +0,0 @@ -""" -This config file extends the test environment configuration -so that we can run the lettuce acceptance tests on SauceLabs. -""" - -from selenium.webdriver.common.desired_capabilities import DesiredCapabilities -import os - -PORTS = [ - 2000, 2001, 2020, 2109, 2222, 2310, 3000, 3001, - 3030, 3210, 3333, 4000, 4001, 4040, 4321, 4502, 4503, - 5050, 5555, 5432, 6060, 6666, 6543, 7000, 7070, 7774, - 7777, 8003, 8031, 8080, 8081, 8765, 8888, - 9080, 9090, 9876, 9999, 49221, 55001 -] - -DESIRED_CAPABILITIES = { - 'chrome': DesiredCapabilities.CHROME, - 'internetexplorer': DesiredCapabilities.INTERNETEXPLORER, - 'firefox': DesiredCapabilities.FIREFOX, - 'opera': DesiredCapabilities.OPERA, - 'iphone': DesiredCapabilities.IPHONE, - 'ipad': DesiredCapabilities.IPAD, - 'safari': DesiredCapabilities.SAFARI, - 'android': DesiredCapabilities.ANDROID -} - -# All keys must be URL and JSON encodable -# PLATFORM-BROWSER-VERSION_NUM-DEVICE -ALL_CONFIG = { - 'Linux-chrome--': ['Linux', 'chrome', '', ''], - 'Windows 8-chrome--': ['Windows 8', 'chrome', '', ''], - 'Windows 7-chrome--': ['Windows 7', 'chrome', '', ''], - 'Windows XP-chrome--': ['Windows XP', 'chrome', '', ''], - 'OS X 10.8-chrome--': ['OS X 10.8', 'chrome', '', ''], - 'OS X 10.6-chrome--': ['OS X 10.6', 'chrome', '', ''], - - 'Linux-firefox-23-': ['Linux', 'firefox', '23', ''], - 'Windows 8-firefox-23-': ['Windows 8', 'firefox', '23', ''], - 'Windows 7-firefox-23-': ['Windows 7', 'firefox', '23', ''], - 'Windows XP-firefox-23-': ['Windows XP', 'firefox', '23', ''], - - 'OS X 10.8-safari-6-': ['OS X 10.8', 'safari', '6', ''], - - 'Windows 8-internetexplorer-10-': ['Windows 8', 'internetexplorer', '10', ''], -} - -SAUCE_INFO = ALL_CONFIG.get(os.environ.get('SAUCE_INFO', 'Linux-chrome--')) - -# Information needed to utilize Sauce Labs. -SAUCE = { - 'USERNAME': os.environ.get('SAUCE_USER_NAME'), - 'ACCESS_ID': os.environ.get('SAUCE_API_KEY'), - 'PLATFORM': SAUCE_INFO[0], - 'BROWSER': DESIRED_CAPABILITIES.get(SAUCE_INFO[1]), - 'VERSION': SAUCE_INFO[2], - 'DEVICE': SAUCE_INFO[3], - 'SESSION': 'Jenkins Acceptance Tests', - 'BUILD': os.environ.get('BUILD_DISPLAY_NAME', 'LETTUCE TESTS'), -}