MCPcopy Index your code
hub / github.com/StackStorm/st2 / test_default

Method test_default

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

Source from the content-addressed store, hash-verified

62 self.assertIsInstance(manager, models.ResourceManager)
63
64 def test_default(self):
65 base_url = "http://127.0.0.1"
66 api_url = "http://127.0.0.1:9101/v1"
67 stream_url = "http://127.0.0.1:9102/v1"
68
69 client = Client()
70 endpoints = client.endpoints
71 self.assertEqual(endpoints["base"], base_url)
72 self.assertEqual(endpoints["api"], api_url)
73 self.assertEqual(endpoints["stream"], stream_url)
74
75 @mock.patch.object(
76 requests,

Callers

nothing calls this directly

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected