Skip to content

Commit

Permalink
chore(deps): Update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 committed Nov 9, 2024
1 parent 894a33b commit 72417ac
Show file tree
Hide file tree
Showing 6 changed files with 237 additions and 242 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-xml
- id: check-symlinks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.7.3
hooks:
- id: ruff-format
- id: ruff
Expand Down
445 changes: 220 additions & 225 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ strawberry-graphql = ">=0.236.0"
[tool.poetry.group.dev.dependencies]
channels = { version = ">=3.0.5" }
django-choices-field = "^2.2.2"
django-debug-toolbar = "^3.4"
django-debug-toolbar = "^4.4.6"
django-guardian = "^2.4.0"
django-mptt = "^0.14.0"
django-types = "^0.19.1"
factory-boy = "^3.2.1"
pillow = "^10.2.0"
pillow = "^11.0.0"
pytest = "^8.0.2"
pytest-asyncio = "^0.24.0"
pytest-cov = "^5.0.0"
pytest-cov = "^6.0.0"
pytest-django = "^4.1.0"
pytest-mock = "^3.5.1"
pytest-snapshot = "^0.9.0"
pytest-watch = "^4.2.0"
ruff = "^0.6.1"
ruff = "^0.7.3"
django-polymorphic = "^3.1.0"
setuptools = "^75.1.0"
psycopg2 = "^2.9.9"
Expand Down
4 changes: 1 addition & 3 deletions strawberry_django/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class MissingFieldArgumentError(StrawberryException):
def __init__(self, field_name: str, resolver: FilterOrderFieldResolver):
self.function = resolver.wrapped_func

self.message = (
f'Missing required argument "{field_name}" ' f'in "{resolver.name}"'
)
self.message = f'Missing required argument "{field_name}" in "{resolver.name}"'
self.rich_message = (
f'[bold red]Missing argument [underline]"{field_name}" for field '
f"`[underline]{resolver.name}[/]`"
Expand Down
4 changes: 3 additions & 1 deletion tests/auth/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from collections import UserDict

import pytest
from django.contrib import auth as django_auth

Expand All @@ -6,7 +8,7 @@

@pytest.fixture
def context(mocker):
class Session(dict):
class Session(UserDict):
def cycle_key(self):
pass

Expand Down
16 changes: 8 additions & 8 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ def assert_num_queries(n: int, *, using=DEFAULT_DB_ALIAS):
if _client.get().is_async and executed == 0:
return

assert (
executed == n
), "{} queries executed, {} expected\nCaptured queries were:\n{}".format(
executed,
n,
"\n".join(
f"{i}. {q['sql']}" for i, q in enumerate(ctx.captured_queries, start=1)
),
assert executed == n, (
"{} queries executed, {} expected\nCaptured queries were:\n{}".format(
executed,
n,
"\n".join(
f"{i}. {q['sql']}" for i, q in enumerate(ctx.captured_queries, start=1)
),
)
)


Expand Down

0 comments on commit 72417ac

Please sign in to comment.