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

Method test_args

st2client/tests/unit/test_client.py:153–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.assertEqual(endpoints["stream"], stream_url)
152
153 def test_args(self):
154 base_url = "http://www.stackstorm.com"
155 api_url = "http://www.st2.com:9101/v1"
156 stream_url = "http://www.st2.com:9102/v1"
157
158 client = Client(base_url=base_url, api_url=api_url, stream_url=stream_url)
159 endpoints = client.endpoints
160 self.assertEqual(endpoints["base"], base_url)
161 self.assertEqual(endpoints["api"], api_url)
162 self.assertEqual(endpoints["stream"], stream_url)
163
164 def test_cacert_arg(self):
165 # Valid value, boolean True

Callers

nothing calls this directly

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected