mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-21 10:29:29 -05:00
Fix these tests
This commit is contained in:
parent
30c5ec7fc4
commit
69b9222950
@ -1,7 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
|
import types
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from unittest.mock import Mock
|
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
@ -149,7 +149,12 @@ class TestCustomFieldsSearch(DirectoriesMixin, APITestCase):
|
|||||||
document,
|
document,
|
||||||
data=data,
|
data=data,
|
||||||
partial=True,
|
partial=True,
|
||||||
context={"request": Mock()},
|
context={
|
||||||
|
"request": types.SimpleNamespace(
|
||||||
|
method="GET",
|
||||||
|
version="7",
|
||||||
|
),
|
||||||
|
},
|
||||||
)
|
)
|
||||||
serializer.is_valid(raise_exception=True)
|
serializer.is_valid(raise_exception=True)
|
||||||
serializer.save()
|
serializer.save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user