Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed Sep 29, 2024
1 parent d09177d commit 319d569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graphene/utils/tests/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


def test_warn_deprecation(mocker):
mocker.patch.object(deprecated.warnings, "warn")
mocker.patch.object(deprecated, "warn")

warn_deprecation("OH!")
deprecated.warnings.warn.assert_called_with(
deprecated.warn.assert_called_with(
"OH!", stacklevel=2, category=DeprecationWarning
)
1 change: 0 additions & 1 deletion graphene/utils/tests/test_resolve_only_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ def resolver(root, **args):
return root, args

wrapped_resolver = resolve_only_args(resolver)
assert deprecated.warn_deprecation.called
result = wrapped_resolver(1, 2, a=3)
assert result == (1, {"a": 3})

0 comments on commit 319d569

Please sign in to comment.