Skip to content
Snippets Groups Projects
Commit b8c16d5e authored by Sarina Canelake's avatar Sarina Canelake
Browse files

s/pylint: disable=E1120/pylint: disable=no-value-for-parameter/

parent 19f1daca
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ from path import path
# This is a convenience for ensuring (a) that we can consistently find the files
# and (b) that the files are the same in Jenkins as in local dev.
os.environ['SERVICE_VARIANT'] = 'bok_choy'
os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname() # pylint: disable=E1120
os.environ['CONFIG_ROOT'] = path(__file__).abspath().dirname() # pylint: disable=no-value-for-parameter
from .aws import * # pylint: disable=W0401, W0614
......@@ -23,7 +23,7 @@ from .aws import * # pylint: disable=W0401, W0614
INSTALLED_APPS += ('django_extensions',)
# Redirect to the test_root folder within the repo
TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" # pylint: disable=E1120
TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root" # pylint: disable=no-value-for-parameter
GITHUB_REPO_ROOT = (TEST_ROOT / "data").abspath()
LOG_DIR = (TEST_ROOT / "log").abspath()
......@@ -31,7 +31,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath()
update_module_store_settings(
MODULESTORE,
module_store_options={
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=E1120
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=no-value-for-parameter
},
xml_store_options={
'data_dir': (TEST_ROOT / "data").abspath(),
......
......@@ -69,7 +69,7 @@ def load_data_str(rel_path):
Load a file from the "data" directory as a string.
`rel_path` is the path relative to the data directory.
"""
full_path = path(__file__).abspath().dirname() / "data" / rel_path # pylint: disable=E1120
full_path = path(__file__).abspath().dirname() / "data" / rel_path # pylint: disable=no-value-for-parameter
with open(full_path) as data_file:
return data_file.read()
......
"""
Urls for sysadmin dashboard feature
"""
# pylint: disable=E1120
# pylint: disable=no-value-for-parameter
from django.conf.urls import patterns, url
......
......@@ -6,7 +6,7 @@ import os
from path import path
from tempfile import mkdtemp
CONFIG_ROOT = path(__file__).abspath().dirname() # pylint: disable=E1120
CONFIG_ROOT = path(__file__).abspath().dirname() # pylint: disable=no-value-for-parameter
TEST_ROOT = CONFIG_ROOT.dirname().dirname() / "test_root"
########################## Prod-like settings ###################################
......@@ -34,7 +34,7 @@ LOG_DIR = (TEST_ROOT / "log").abspath()
update_module_store_settings(
MODULESTORE,
module_store_options={
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=E1120
'fs_root': (TEST_ROOT / "data").abspath(), # pylint: disable=no-value-for-parameter
},
xml_store_options={
'data_dir': (TEST_ROOT / "data").abspath(),
......
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