]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update ratelimit mock path dependabot/uv/dev/django-allauth-mfasocialaccount--approx-eq-65.12.1 11198/head
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 29 Oct 2025 21:00:47 +0000 (14:00 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Wed, 29 Oct 2025 21:00:47 +0000 (14:00 -0700)
src/paperless/tests/test_adapter.py

index b87c470964d081e0c1007c32020271efef2ae7fe..bbd7ff73e5f38b409e969f620e6fbfff81e73d54 100644 (file)
@@ -54,8 +54,8 @@ class TestCustomAccountAdapter(TestCase):
             # False because request host is not in allowed hosts
             self.assertFalse(adapter.is_safe_url(url))
 
-    @mock.patch("allauth.core.ratelimit._consume_rate", return_value=True)
-    def test_pre_authenticate(self, mock_consume_rate):
+    @mock.patch("allauth.core.internal.ratelimit.consume", return_value=True)
+    def test_pre_authenticate(self, mock_consume):
         adapter = get_adapter()
         request = HttpRequest()
         request.get_host = mock.Mock(return_value="example.com")