summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/hooks/jsfile.py
diff options
context:
space:
mode:
authorYves Duhem <yves.duhem@mongodb.com>2018-02-27 11:29:41 -0500
committerYves Duhem <yves.duhem@mongodb.com>2018-02-27 11:29:46 -0500
commit4a69dcaf78f29cf440ada961c7e59de6b5dde111 (patch)
treeaceb8f015e234f940c94e67b5a756e1a7f8baab3 /buildscripts/resmokelib/testing/hooks/jsfile.py
parenta77297dbe34d5cd838a4da55e9d83dc70c510bba (diff)
downloadmongo-4a69dcaf78f29cf440ada961c7e59de6b5dde111.tar.gz
SERVER-33476 Rename CustomBehavior to Hook
Diffstat (limited to 'buildscripts/resmokelib/testing/hooks/jsfile.py')
-rw-r--r--buildscripts/resmokelib/testing/hooks/jsfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/jsfile.py b/buildscripts/resmokelib/testing/hooks/jsfile.py
index 47da3bde623..fddfce1e710 100644
--- a/buildscripts/resmokelib/testing/hooks/jsfile.py
+++ b/buildscripts/resmokelib/testing/hooks/jsfile.py
@@ -16,11 +16,11 @@ from ... import errors
from ...utils import registry
-class JsCustomBehavior(interface.CustomBehavior):
+class JSHook(interface.Hook):
REGISTERED_NAME = registry.LEAVE_UNREGISTERED
def __init__(self, hook_logger, fixture, js_filename, description, shell_options=None):
- interface.CustomBehavior.__init__(self, hook_logger, fixture, description)
+ interface.Hook.__init__(self, hook_logger, fixture, description)
self.hook_test_case = self.make_dynamic_test(jstest.JSTestCase,
js_filename,
shell_options=shell_options,
@@ -48,7 +48,7 @@ class JsCustomBehavior(interface.CustomBehavior):
test_name = "{}:{}".format(test.short_name(), self.__class__.__name__)
self.hook_test_case.test_name = test_name
- interface.CustomBehavior.start_dynamic_test(self.hook_test_case, test_report)
+ interface.Hook.start_dynamic_test(self.hook_test_case, test_report)
try:
self._after_test_impl(test, test_report, description)
except pymongo.errors.OperationFailure as err: