MCPcopy Create free account
hub / github.com/Tong89/smartNode / _admin_headers

Method _admin_headers

tests/test_store.py:208–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 api_module._scenario_store = original_store
207
208 def _admin_headers(self):
209 import backend.api as api_module
210 from backend.auth import create_access_token
211 token = create_access_token("admin", "admin")
212 return {"Authorization": f"Bearer {token}"}
213
214 def test_list_empty(self):
215 resp = self.client.get("/api/scenarios")

Callers 6

test_save_and_listMethod · 0.95
test_deleteMethod · 0.95
test_compare_endpointMethod · 0.95
test_set_baselineMethod · 0.95
test_activateMethod · 0.95

Calls 1

create_access_tokenFunction · 0.90

Tested by

no test coverage detected