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

Method test_managers

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

Source from the content-addressed store, hash-verified

48 del os.environ[var]
49
50 def test_managers(self):
51 property_names = [
52 k for k, v in six.iteritems(Client.__dict__) if isinstance(v, property)
53 ]
54
55 client = Client()
56
57 for property_name in property_names:
58 manager = getattr(client, property_name, None)
59 self.assertIsNotNone(manager)
60
61 if property_name not in NONRESOURCES:
62 self.assertIsInstance(manager, models.ResourceManager)
63
64 def test_default(self):
65 base_url = "http://127.0.0.1"

Callers

nothing calls this directly

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected