Compare commits

..

3 Commits

16 changed files with 136 additions and 74 deletions

View File

@@ -41,30 +41,56 @@ updates:
- "backend"
- "dependencies"
groups:
# Development & CI/CD Tooling
development:
patterns:
- "*pytest*"
- "ruff"
- "mkdocs-material"
- "pre-commit*"
django:
# Django & DRF Ecosystem
django-ecosystem:
patterns:
- "*django*"
- "drf-*"
major-versions:
- "djangorestframework"
- "whitenoise"
- "bleach"
- "jinja2"
# Async, Task Queuing & Caching
async-tasks:
patterns:
- "celery*"
- "channels*"
- "flower"
- "redis"
# Document, PDF, and OCR Processing
document-processing:
patterns:
- "ocrmypdf"
- "pdf2image"
- "pyzbar"
- "zxing-cpp"
- "tika-client"
- "gotenberg-client"
- "python-magic"
- "python-gnupg"
# Data, NLP, and Search
data-nlp-search:
patterns:
- "nltk"
- "scikit-learn"
- "langdetect"
- "rapidfuzz"
- "whoosh-reloaded"
# Utilities (Patch Updates)
utilities-patch:
update-types:
- "major"
small-changes:
- "patch"
# Utilities (Minor Updates)
utilities-minor:
update-types:
- "minor"
- "patch"
exclude-patterns:
- "*django*"
- "drf-*"
pre-built:
patterns:
- psycopg*
- zxing-cpp
# Enable updates for GitHub Actions
- package-ecosystem: "github-actions"
target-branch: "dev"

View File

@@ -892,7 +892,7 @@
<context context-type="sourcefile">src/app/components/admin/logs/logs.component.html</context>
<context context-type="linenumber">60</context>
</context-group>
<target state="needs-translation">Jump to bottom</target>
<target state="translated">Přejít na konec</target>
</trans-unit>
<trans-unit id="1255048712725285892" datatype="html">
<source>Options to customize appearance, notifications and more. Settings apply to the &lt;strong&gt;current user only&lt;/strong&gt;.</source>
@@ -3952,7 +3952,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">121</context>
</context-group>
<target state="needs-translation">Previous week</target>
<target state="translated">Předchozí týden</target>
</trans-unit>
<trans-unit id="8586908745456864217" datatype="html">
<source>Previous month</source>
@@ -3960,7 +3960,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">135</context>
</context-group>
<target state="needs-translation">Previous month</target>
<target state="translated">Předchozí měsíc</target>
</trans-unit>
<trans-unit id="357608474534295480" datatype="html">
<source>Previous quarter</source>
@@ -3968,7 +3968,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">141</context>
</context-group>
<target state="needs-translation">Previous quarter</target>
<target state="translated">Předchozí čtvrtletí</target>
</trans-unit>
<trans-unit id="100513227838842152" datatype="html">
<source>Previous year</source>
@@ -3976,7 +3976,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">155</context>
</context-group>
<target state="needs-translation">Previous year</target>
<target state="translated">Předchozí rok</target>
</trans-unit>
<trans-unit id="8743659855412792665" datatype="html" approved="yes">
<source>Matching algorithm</source>

View File

@@ -886,13 +886,13 @@
</context-group>
<target state="final">Wird geladen...</target>
</trans-unit>
<trans-unit id="7831218302373733360" datatype="html">
<trans-unit id="7831218302373733360" datatype="html" approved="yes">
<source>Jump to bottom</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/admin/logs/logs.component.html</context>
<context context-type="linenumber">60</context>
</context-group>
<target state="translated">Nach unten</target>
<target state="final">Nach unten</target>
</trans-unit>
<trans-unit id="1255048712725285892" datatype="html" approved="yes">
<source>Options to customize appearance, notifications and more. Settings apply to the &lt;strong&gt;current user only&lt;/strong&gt;.</source>
@@ -2150,21 +2150,21 @@
</context-group>
<target state="final">Alle <x id="PH" equiv-text="tasks.size"/> Aufgaben verwerfen?</target>
</trans-unit>
<trans-unit id="3597309129998924778" datatype="html">
<trans-unit id="3597309129998924778" datatype="html" approved="yes">
<source>Error dismissing tasks</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/admin/tasks/tasks.component.ts</context>
<context context-type="linenumber">161</context>
</context-group>
<target state="translated">Fehler beim Verwerfen der Aufgaben</target>
<target state="final">Fehler beim Verwerfen der Aufgaben</target>
</trans-unit>
<trans-unit id="2132179171926568807" datatype="html">
<trans-unit id="2132179171926568807" datatype="html" approved="yes">
<source>Error dismissing task</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/admin/tasks/tasks.component.ts</context>
<context context-type="linenumber">170</context>
</context-group>
<target state="translated">Fehler beim Verwerfen der Aufgabe</target>
<target state="final">Fehler beim Verwerfen der Aufgabe</target>
</trans-unit>
<trans-unit id="9011556615675272238" datatype="html" approved="yes">
<source>queued</source>
@@ -5674,29 +5674,29 @@
</context-group>
<target state="final">Webhook</target>
</trans-unit>
<trans-unit id="4522609911791833187" datatype="html">
<trans-unit id="4522609911791833187" datatype="html" approved="yes">
<source>Has any of these tags</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts</context>
<context context-type="linenumber">203</context>
</context-group>
<target state="translated">Hat beliebige dieser Tags</target>
<target state="final">Hat beliebige dieser Tags</target>
</trans-unit>
<trans-unit id="4166903555074156852" datatype="html">
<trans-unit id="4166903555074156852" datatype="html" approved="yes">
<source>Has all of these tags</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts</context>
<context context-type="linenumber">210</context>
</context-group>
<target state="translated">Hat alle diese Tags</target>
<target state="final">Hat alle diese Tags</target>
</trans-unit>
<trans-unit id="6624363795312783141" datatype="html">
<trans-unit id="6624363795312783141" datatype="html" approved="yes">
<source>Does not have these tags</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts</context>
<context context-type="linenumber">217</context>
</context-group>
<target state="translated">Hat diese Tags nicht</target>
<target state="final">Hat diese Tags nicht</target>
</trans-unit>
<trans-unit id="5281365940563983618" datatype="html" approved="yes">
<source>Has correspondent</source>

View File

@@ -892,7 +892,7 @@
<context context-type="sourcefile">src/app/components/admin/logs/logs.component.html</context>
<context context-type="linenumber">60</context>
</context-group>
<target state="needs-translation">Jump to bottom</target>
<target state="translated">Ugrás az oldal aljára</target>
</trans-unit>
<trans-unit id="1255048712725285892" datatype="html">
<source>Options to customize appearance, notifications and more. Settings apply to the &lt;strong&gt;current user only&lt;/strong&gt;.</source>
@@ -3952,7 +3952,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">121</context>
</context-group>
<target state="needs-translation">Previous week</target>
<target state="translated">Előző hét</target>
</trans-unit>
<trans-unit id="8586908745456864217" datatype="html">
<source>Previous month</source>
@@ -3960,7 +3960,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">135</context>
</context-group>
<target state="needs-translation">Previous month</target>
<target state="translated">Előző hónap</target>
</trans-unit>
<trans-unit id="357608474534295480" datatype="html">
<source>Previous quarter</source>
@@ -3968,7 +3968,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">141</context>
</context-group>
<target state="needs-translation">Previous quarter</target>
<target state="translated">Előző negyedév</target>
</trans-unit>
<trans-unit id="100513227838842152" datatype="html">
<source>Previous year</source>
@@ -3976,7 +3976,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">155</context>
</context-group>
<target state="needs-translation">Previous year</target>
<target state="translated">Előző év</target>
</trans-unit>
<trans-unit id="8743659855412792665" datatype="html">
<source>Matching algorithm</source>
@@ -5276,7 +5276,7 @@
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">183</context>
</context-group>
<target state="needs-translation">Advanced Filters</target>
<target state="translated">Haladó szűrők</target>
</trans-unit>
<trans-unit id="910026778839409110" datatype="html">
<source>Add filter</source>
@@ -5284,7 +5284,7 @@
<context context-type="sourcefile">src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html</context>
<context context-type="linenumber">190</context>
</context-group>
<target state="needs-translation">Add filter</target>
<target state="translated">Szűrő hozzáadása</target>
</trans-unit>
<trans-unit id="5671193617280178107" datatype="html">
<source>No advanced workflow filters defined.</source>

View File

@@ -892,7 +892,7 @@
<context context-type="sourcefile">src/app/components/admin/logs/logs.component.html</context>
<context context-type="linenumber">60</context>
</context-group>
<target state="needs-translation">Jump to bottom</target>
<target state="translated">Skoči na dno</target>
</trans-unit>
<trans-unit id="1255048712725285892" datatype="html">
<source>Options to customize appearance, notifications and more. Settings apply to the &lt;strong&gt;current user only&lt;/strong&gt;.</source>
@@ -3952,7 +3952,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">121</context>
</context-group>
<target state="needs-translation">Previous week</target>
<target state="translated">Prethodna nedelja</target>
</trans-unit>
<trans-unit id="8586908745456864217" datatype="html">
<source>Previous month</source>
@@ -3960,7 +3960,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">135</context>
</context-group>
<target state="needs-translation">Previous month</target>
<target state="translated">Prethodni mesec</target>
</trans-unit>
<trans-unit id="357608474534295480" datatype="html">
<source>Previous quarter</source>
@@ -3968,7 +3968,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">141</context>
</context-group>
<target state="needs-translation">Previous quarter</target>
<target state="translated">Prethodni kvartal</target>
</trans-unit>
<trans-unit id="100513227838842152" datatype="html">
<source>Previous year</source>
@@ -3976,7 +3976,7 @@
<context context-type="sourcefile">src/app/components/common/dates-dropdown/dates-dropdown.component.ts</context>
<context context-type="linenumber">155</context>
</context-group>
<target state="needs-translation">Previous year</target>
<target state="translated">Prethodna godina</target>
</trans-unit>
<trans-unit id="8743659855412792665" datatype="html">
<source>Matching algorithm</source>

View File

@@ -7172,7 +7172,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>
<context context-type="linenumber">323</context>
</context-group>
<target state="translated">Muhataba göre süz</target>
<target state="translated">Muhataba göre filtrele</target>
</trans-unit>
<trans-unit id="78870852467682010" datatype="html">
<source>Filter by document type</source>
@@ -8130,7 +8130,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>
<context context-type="linenumber">51</context>
</context-group>
<target state="translated">Muhataba göre süz</target>
<target state="translated">Muhatabları filtrele</target>
</trans-unit>
<trans-unit id="2947613869920454977" datatype="html">
<source>Filter document types</source>
@@ -8142,7 +8142,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>
<context context-type="linenumber">62</context>
</context-group>
<target state="translated">Belge türlerini göre filtrele</target>
<target state="translated">Belge türlerine göre filtrele</target>
</trans-unit>
<trans-unit id="8816999377397522522" datatype="html">
<source>Filter storage paths</source>
@@ -8669,7 +8669,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/document-card-small/document-card-small.component.html</context>
<context context-type="linenumber">43</context>
</context-group>
<target state="translated">Muhatap süzgecini aç/kapat</target>
<target state="translated">Muhatap filtresini aç/kapat</target>
</trans-unit>
<trans-unit id="5319701482646590642" datatype="html">
<source>Toggle document type filter</source>
@@ -8817,7 +8817,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/document-list.component.html</context>
<context context-type="linenumber">143</context>
</context-group>
<target state="translated">(süzüldü)</target>
<target state="translated">(filtrelendi)</target>
</trans-unit>
<trans-unit id="6849725902312323996" datatype="html">
<source>Reset filters</source>
@@ -8829,7 +8829,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/document-list/filter-editor/filter-editor.component.html</context>
<context context-type="linenumber">107</context>
</context-group>
<target state="translated">Süzgeçleri sıfırla</target>
<target state="translated">Filtreleri sıfırla</target>
</trans-unit>
<trans-unit id="1559883523769732271" datatype="html">
<source>Error while loading documents</source>
@@ -9885,7 +9885,7 @@ tüm <x id="CLOSE_EMPHASISED_TEXT" ctype="x-em" equiv-text="&lt;/em&gt;"/> krite
<context context-type="sourcefile">src/app/components/manage/management-list/management-list.component.html</context>
<context context-type="linenumber">20</context>
</context-group>
<target state="translated">Şuna göre süz:</target>
<target state="translated">Şuna göre filtrele:</target>
</trans-unit>
<trans-unit id="1383365546483928780" datatype="html">
<source>Matching</source>

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-03 00:36\n"
"Last-Translator: \n"
"Language-Team: Czech\n"
"Language: cs_CZ\n"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-22 12:12\n"
"PO-Revision-Date: 2025-12-02 12:16\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Language: de_DE\n"
@@ -862,7 +862,7 @@ msgstr "hat alle diese Tags"
#: documents/models.py:1079
msgid "does not have these tag(s)"
msgstr "hat diese Tags nicht)"
msgstr "hat diese Tags nicht"
#: documents/models.py:1087
msgid "has this document type"
@@ -890,7 +890,7 @@ msgstr "hat diese Speicherpfade nicht"
#: documents/models.py:1128
msgid "filter custom field query"
msgstr "Filtere nach benutzerdefiniertem Feld"
msgstr "Benutzerdefinierte Feldabfrage filtern"
#: documents/models.py:1131
msgid "JSON-encoded custom field query expression."

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-04 00:37\n"
"Last-Translator: \n"
"Language-Team: Persian\n"
"Language: fa_IR\n"
@@ -31,7 +31,7 @@ msgstr "Invalid custom field query expression"
#: documents/filters.py:424
msgid "Invalid expression list. Must be nonempty."
msgstr ""
msgstr "لیست عبارت‌ها نامعتبر است. نباید خالی باشد."
#: documents/filters.py:445
msgid "Invalid logical operator {op!r}"
@@ -51,7 +51,7 @@ msgstr ""
#: documents/filters.py:669 documents/models.py:135
msgid "Maximum nesting depth exceeded."
msgstr ""
msgstr "حداکثر عمق تودرتویی بیش از حد مجاز است."
#: documents/filters.py:854
msgid "Custom field not found"
@@ -79,7 +79,7 @@ msgstr "مطابقت دقیق"
#: documents/models.py:59 documents/models.py:987
msgid "Regular expression"
msgstr ""
msgstr "عبارت باقاعده"
#: documents/models.py:60 documents/models.py:988
msgid "Fuzzy word"
@@ -136,11 +136,11 @@ msgstr "برچسب ها"
#: documents/models.py:123
msgid "Cannot set itself as parent."
msgstr ""
msgstr "نمی‌تواند خودش را به عنوان والد تنظیم کند."
#: documents/models.py:125
msgid "Cannot set parent to a descendant."
msgstr ""
msgstr "نمی‌توان والد را به یک فرزند یا عضو پایین‌تر در سلسله‌مراتب تنظیم کرد."
#: documents/models.py:142 documents/models.py:190
msgid "document type"
@@ -758,7 +758,7 @@ msgstr "انتخاب کردن"
#: documents/models.py:795
msgid "Long Text"
msgstr ""
msgstr "متن طولانی"
#: documents/models.py:807
msgid "data type"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-02 12:16\n"
"Last-Translator: \n"
"Language-Team: Hungarian\n"
"Language: hu_HU\n"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-03 12:15\n"
"Last-Translator: \n"
"Language-Team: Indonesian\n"
"Language: id_ID\n"
@@ -136,11 +136,11 @@ msgstr "label"
#: documents/models.py:123
msgid "Cannot set itself as parent."
msgstr ""
msgstr "Tidak dapat menetapkan dirinya sebagai induk."
#: documents/models.py:125
msgid "Cannot set parent to a descendant."
msgstr ""
msgstr "Tidak dapat menetapkan induk ke keturunan."
#: documents/models.py:142 documents/models.py:190
msgid "document type"
@@ -858,11 +858,11 @@ msgstr "memiliki label(-label) ini"
#: documents/models.py:1072
msgid "has all of these tag(s)"
msgstr ""
msgstr "memiliki semua label ini"
#: documents/models.py:1079
msgid "does not have these tag(s)"
msgstr ""
msgstr "tidak memiliki semua label ini"
#: documents/models.py:1087
msgid "has this document type"
@@ -870,7 +870,7 @@ msgstr "memiliki jenis dokumen ini"
#: documents/models.py:1094
msgid "does not have these document type(s)"
msgstr ""
msgstr "tidak memiliki semua tipe dokumen ini"
#: documents/models.py:1102
msgid "has this correspondent"
@@ -878,15 +878,15 @@ msgstr "memiliki koresponden ini"
#: documents/models.py:1109
msgid "does not have these correspondent(s)"
msgstr ""
msgstr "tidak memiliki koresponden ini"
#: documents/models.py:1117
msgid "has this storage path"
msgstr ""
msgstr "memiliki jalur penyimpanan ini"
#: documents/models.py:1124
msgid "does not have these storage path(s)"
msgstr ""
msgstr "tidak memiliki jalur penyimpanan ini"
#: documents/models.py:1128
msgid "filter custom field query"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-04 00:37\n"
"Last-Translator: \n"
"Language-Team: Romanian\n"
"Language: ro_RO\n"
@@ -136,7 +136,7 @@ msgstr "etichete"
#: documents/models.py:123
msgid "Cannot set itself as parent."
msgstr ""
msgstr "Nu se poate seta ca părinte."
#: documents/models.py:125
msgid "Cannot set parent to a descendant."
@@ -450,7 +450,7 @@ msgstr "query fulltext"
#: documents/models.py:526
msgid "more like this"
msgstr ""
msgstr "mai multe ca aceasta"
#: documents/models.py:527
msgid "has tags in"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-14 16:11\n"
"PO-Revision-Date: 2025-12-03 00:36\n"
"Last-Translator: \n"
"Language-Team: Serbian (Latin)\n"
"Language: sr_CS\n"

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-14 16:09+0000\n"
"PO-Revision-Date: 2025-11-25 12:16\n"
"PO-Revision-Date: 2025-12-02 12:16\n"
"Last-Translator: \n"
"Language-Team: Turkish\n"
"Language: tr_TR\n"

View File

@@ -137,3 +137,25 @@ class CustomSocialAccountAdapter(DefaultSocialAccountAdapter):
user.save()
handle_social_account_updated(None, request, sociallogin)
return user
def on_authentication_error(
self,
request,
provider,
error=None,
exception=None,
extra_context=None,
):
"""
Just log errors and pass them along.
"""
logger.warning(
f"Social authentication error for provider `{provider!s}`: {error!s} ({exception!s})",
)
return super().on_authentication_error(
request,
provider,
error,
exception,
extra_context,
)

View File

@@ -167,3 +167,17 @@ class TestCustomSocialAccountAdapter(TestCase):
self.assertEqual(user.groups.count(), 1)
self.assertTrue(user.groups.filter(name="group1").exists())
self.assertFalse(user.groups.filter(name="group2").exists())
def test_error_logged_on_authentication_error(self):
adapter = get_social_adapter()
request = HttpRequest()
with self.assertLogs("paperless.auth", level="INFO") as log_cm:
adapter.on_authentication_error(
request,
provider="test-provider",
error="Error",
exception="Test authentication error",
)
self.assertTrue(
any("Test authentication error" in message for message in log_cm.output),
)