MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / ensure_run_on

Method ensure_run_on

test/utils_spec_runner.py:145–151  ·  view source on GitHub ↗

Test modifier that enforces a 'runOn' on a test case.

(self, scenario_def, method)

Source from the content-addressed store, hash-verified

143 return False
144
145 def ensure_run_on(self, scenario_def, method):
146 """Test modifier that enforces a 'runOn' on a test case."""
147
148 def predicate():
149 return self.should_run_on(scenario_def)
150
151 return client_context._require(predicate, "runOn not satisfied", method)
152
153 def tests(self, scenario_def):
154 """Allow CMAP spec test to override the location of test."""

Callers 1

_create_testsMethod · 0.95

Calls 1

_requireMethod · 0.45

Tested by

no test coverage detected