# coding: utf-8 from utils.test_config import * from utils.string_utils import * from helix_web_services_client.models import BranchCommand api = api_as_jdoe() rand = random_string() branch_id = "test-branch-%s" % rand branch_command = BranchCommand() branch_command.branch = branch_id branch_command.view = [ "//depot/main/%s/... //depot/dev/%s/..." % (branch_id, branch_id) ] exception_thrown = False try: api.server_branches_post('invalid', branch_command) except Exception: exception_thrown = True assert exception_thrown, "no error was raised"
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19553 | swellard | Move and rename clients | ||
//guest/perforce_software/helix-web-services/main/source/clients/2016.1.0/python/tests/default_api.server_branches.illegal_server_id.py | |||||
#1 | 19272 | tjuricek |
Python Client SDK test for branches, changes, clients, and commands. Just altered how arrays in query parameters are represented to the server to be consistent with the other clients. |