MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_exit_code_on_error

Route test_exit_code_on_error

st2client/tests/unit/test_shell.py:None–None  ·  view source on GitHub ↗
mock.patch.object(
        httpclient.HTTPClient,
        "get",
        mock.MagicMock(
            return_value=base.FakeResponse(None, 500, "INTERNAL SERVER ERROR")
        ),
    )

Source from the content-addressed store, hash-verified

1# -*- coding: utf-8 -*-
2# Copyright 2020 The StackStorm Authors.
3# Copyright 2019 Extreme Networks, Inc.
4#

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected