MCPcopy Index your code
hub / github.com/bugy/script-server / test_single_list

Method test_single_list

src/tests/server_conf_test.py:82–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80
81class TestAdminUsersInit(unittest.TestCase):
82 def test_single_list(self):
83 config = _from_json({'access': {'admin_users': ['userX']}})
84 self.assertEqual(['userX'], config.admin_users)
85
86 def test_single_string(self):
87 config = _from_json({'access': {'admin_users': 'abc'}})

Callers

nothing calls this directly

Calls 1

_from_jsonFunction · 0.85

Tested by

no test coverage detected