diff --git a/src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py b/src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py index 36da315885f..082a4715989 100644 --- a/src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py +++ b/src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py @@ -17,8 +17,8 @@ class BatchMgmtScenarioTests(ScenarioTest): - def __init__(self, method_name): - super().__init__(method_name, recording_processors=[ + def __init__(self, method_name, *arg, **kwargs): + super().__init__(method_name, *arg, random_config_dir=True, **kwargs, recording_processors=[ BatchAccountKeyReplacer(), StorageSASReplacer() ]) @@ -343,6 +343,10 @@ def test_batch_application_cmd(self, resource_group, storage_account): class BatchMgmtByosScenarioTests(ScenarioTest): + + def __init__(self, method_name, *arg, **kwargs): + super().__init__(method_name, *arg, random_config_dir=True, **kwargs) + @ResourceGroupPreparer(location='eastus') def test_batch_byos_account_cmd(self): account_name = self.create_random_name(prefix='clibatchtestacct', length=24)