MCPcopy
hub / github.com/AstrBotDevs/AstrBot / get

Method get

tests/test_fastapi_v1_dashboard.py:2007–2024  ·  view source on GitHub ↗
(self, url: str)

Source from the content-addressed store, hash-verified

2005 return None
2006
2007 def get(self, url: str):
2008 cast(list[str], captured["urls"]).append(url)
2009 if url.endswith("/metadata.yaml"):
2010 return FakeResponse(404)
2011 if url.endswith("/metadata.yml"):
2012 return FakeResponse(
2013 200,
2014 text="\n".join(
2015 [
2016 "name: astrbot_plugin_demo",
2017 "description: Demo plugin",
2018 "version: 2.0.0",
2019 "author: AstrBotDevs",
2020 "repo: https://github.com/AstrBotDevs/astrbot-plugin-demo",
2021 ]
2022 ),
2023 )
2024 return FakeResponse(404)
2025
2026 monkeypatch.setattr(
2027 plugin_service_module.aiohttp,

Callers 15

update_providerMethod · 0.45
create_providerMethod · 0.45
delete_providerMethod · 0.45
get_conversationMethod · 0.45
webhook_callbackMethod · 0.45
get_personaMethod · 0.45
get_folderMethod · 0.45
create_folderMethod · 0.45

Calls 2

FakeResponseClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected