diff options
Diffstat (limited to 'buildscripts/resmokelib/testing/testcases/dbtest.py')
-rw-r--r-- | buildscripts/resmokelib/testing/testcases/dbtest.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/dbtest.py b/buildscripts/resmokelib/testing/testcases/dbtest.py index 15316a0f197..295114d60a5 100644 --- a/buildscripts/resmokelib/testing/testcases/dbtest.py +++ b/buildscripts/resmokelib/testing/testcases/dbtest.py @@ -1,6 +1,4 @@ -""" -unittest.TestCase for dbtests. -""" +"""The unittest.TestCase for dbtests.""" from __future__ import absolute_import @@ -15,16 +13,12 @@ from ... import utils class DBTestCase(interface.ProcessTestCase): - """ - A dbtest to execute. - """ + """A dbtest to execute.""" REGISTERED_NAME = "db_test" def __init__(self, logger, dbtest_suite, dbtest_executable=None, dbtest_options=None): - """ - Initializes the DBTestCase with the dbtest suite to run. - """ + """Initialize the DBTestCase with the dbtest suite to run.""" interface.ProcessTestCase.__init__(self, logger, "dbtest suite", dbtest_suite) @@ -35,6 +29,7 @@ class DBTestCase(interface.ProcessTestCase): self.dbtest_options = utils.default_if_none(dbtest_options, {}).copy() def configure(self, fixture, *args, **kwargs): + """Configure DBTestCase.""" interface.ProcessTestCase.configure(self, fixture, *args, **kwargs) # If a dbpath was specified, then use it as a container for all other dbpaths. @@ -64,8 +59,7 @@ class DBTestCase(interface.ProcessTestCase): @staticmethod def _get_dbpath_prefix(): """ - Returns the prefix of the dbpath to use for the dbtest - executable. + Return the prefix of the dbpath to use for the dbtest executable. Order of preference: 1. The --dbpathPrefix specified at the command line. |