summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/testcases/jsrunnerfile.py')
-rw-r--r--buildscripts/resmokelib/testing/testcases/jsrunnerfile.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py b/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py
index 45a9e5d4944..c2da41faf37 100644
--- a/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py
+++ b/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py
@@ -1,6 +1,4 @@
-"""
-unittest.TestCase for tests with a static JavaScript runner file.
-"""
+"""The unittest.TestCase for tests with a static JavaScript runner file."""
from __future__ import absolute_import
@@ -16,9 +14,10 @@ class JSRunnerFileTestCase(interface.ProcessTestCase):
REGISTERED_NAME = registry.LEAVE_UNREGISTERED
- def __init__(self, logger, test_kind, test_name, test_runner_file, shell_executable=None,
- shell_options=None):
- """Initializes the JSRunnerFileTestCase with the 'test_name' file."""
+ def __init__( # pylint: disable=too-many-arguments
+ self, logger, test_kind, test_name, test_runner_file, shell_executable=None,
+ shell_options=None):
+ """Initialize the JSRunnerFileTestCase with the 'test_name' file."""
interface.ProcessTestCase.__init__(self, logger, test_kind, test_name)
@@ -29,6 +28,7 @@ class JSRunnerFileTestCase(interface.ProcessTestCase):
self.test_runner_file = test_runner_file
def configure(self, fixture, *args, **kwargs):
+ """Configure the js runner."""
interface.ProcessTestCase.configure(self, fixture, *args, **kwargs)
global_vars = self.shell_options.get("global_vars", {}).copy()
@@ -40,7 +40,8 @@ class JSRunnerFileTestCase(interface.ProcessTestCase):
self.shell_options["global_vars"] = global_vars
def _populate_test_data(self, test_data):
- """
+ """Provide base method.
+
This method is intended to be overridden by subclasses in order to define the configuration
necessary for the static JavaScript runner file.
"""