Skip to content

Commit

Permalink
👷 remove incorrect fixture usage
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Oct 30, 2024
1 parent 91175cf commit 9569337
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
from nonebot.adapters.feishu.config import Config as FeishuConfig


def pytest_configure(config: pytest.Config, server_url: URL) -> None:
def pytest_configure(config: pytest.Config) -> None:
with (Path(__file__).parent.joinpath("data", "bots.json")).open("r") as f:
feishu_bots = json.load(f)
print(server_url)

config.stash[NONEBOT_INIT_KWARGS] = {
"driver": "~fastapi+~httpx",
Expand Down Expand Up @@ -52,7 +51,7 @@ def server_url(server: BaseWSGIServer) -> URL:


@pytest.fixture(scope="session", autouse=True)
async def after_nonebot_init(after_nonebot_init: None, server_url: URL):
async def after_nonebot_init(after_nonebot_init: None, server_url: URL): # noqa: PT004
with pytest.MonkeyPatch.context() as m:

def _get_api_base(*args, **kwargs):
Expand Down

0 comments on commit 9569337

Please sign in to comment.