mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Refactor permissions API endpoints, UI group permissions
This commit is contained in:
parent
f2d635671d
commit
211fbf0cf6
29 changed files with 353 additions and 139 deletions
|
|
@ -158,7 +158,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
|
|||
response = self.client.get("/api/documents/?fields=", format="json")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
results = response.data["results"]
|
||||
self.assertEqual(results_full, results)
|
||||
self.assertEqual(len(results_full[0]), len(results[0]))
|
||||
|
||||
response = self.client.get("/api/documents/?fields=dgfhs", format="json")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue