Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump mkdocstrings from 0.25.2 to 0.26.0 #107

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 45 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pydantic = { extras = ["mypy"], version = "^2.6.0" }

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.0"
mkdocstrings = "^0.25.1"
mkdocstrings = "^0.26.0"
mkdocstrings-python = "^1.10.2"
mkdocs-material = "^9.5.24"
griffe-fieldz = "^0.2.0"
Expand Down
12 changes: 10 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from pathlib import Path
from typing import Callable, Generator, List, Optional
from unittest.mock import Mock, patch
from uuid import UUID
from uuid import UUID, uuid4

from pytest import FixtureRequest, MonkeyPatch, fixture

from galileo_core.constants.request_method import RequestMethod
from galileo_core.constants.routes import Routes as CoreRoutes
from galileo_core.schemas.core.user import User
from galileo_core.schemas.core.user_role import UserRole
from galileo_core.schemas.protect.response import Response, TraceMetadata
from galileo_core.schemas.protect.rule import Rule, RuleOperator
from galileo_core.schemas.protect.ruleset import Ruleset
Expand All @@ -24,7 +26,13 @@ def tmp_home_dir(monkeypatch: MonkeyPatch, tmp_path: Path) -> Generator[Path, No

@fixture
def mock_get_current_user(mock_request: Mock) -> Generator[None, None, None]:
matcher = mock_request(RequestMethod.GET, CoreRoutes.current_user, json={"email": "user@example.com"})
matcher = mock_request(
RequestMethod.GET,
CoreRoutes.current_user,
json=User.model_validate({"id": uuid4(), "email": "user@example.com", "role": UserRole.user}).model_dump(
mode="json"
),
)
yield
assert matcher.called

Expand Down
Loading