MCPcopy Index your code
hub / github.com/NextronSystems/valhallaAPI / test_invalid_key

Function test_invalid_key

tests/test_basic.py:164–171  ·  view source on GitHub ↗

Trying to retrieve rules with an invalid key :return:

()

Source from the content-addressed store, hash-verified

162
163
164def test_invalid_key():
165 """
166 Trying to retrieve rules with an invalid key
167 :return:
168 """
169 v = ValhallaAPI(api_key=INVALID_KEY)
170 with pytest.raises(Exception):
171 v.get_rules_text()
172
173
174def test_get_rule_info():

Callers

nothing calls this directly

Calls 2

get_rules_textMethod · 0.95
ValhallaAPIClass · 0.90

Tested by

no test coverage detected