PYTHON-1757 Properly skip tests that require enableTestCommands
(cherry picked from commit 923229de12)
This commit is contained in:
parent
2ab5d181b6
commit
bdfa2919e0
@ -390,6 +390,7 @@ def end_sessions(sessions):
|
||||
|
||||
|
||||
def create_test(scenario_def, test):
|
||||
@client_context.require_test_commands
|
||||
def run_scenario(self):
|
||||
if test.get('skipReason'):
|
||||
raise unittest.SkipTest(test.get('skipReason'))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user