(self, url: str)
| 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, |
no test coverage detected