mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix mock bulk edit delay
This commit is contained in:
		| @@ -1,3 +1,5 @@ | |||||||
|  | from unittest import mock | ||||||
|  |  | ||||||
| from django.contrib.auth.models import User | from django.contrib.auth.models import User | ||||||
| from rest_framework.test import APITestCase | from rest_framework.test import APITestCase | ||||||
|  |  | ||||||
| @@ -18,6 +20,10 @@ class TestTagHierarchy(APITestCase): | |||||||
|         self.parent = Tag.objects.create(name="Parent") |         self.parent = Tag.objects.create(name="Parent") | ||||||
|         self.child = Tag.objects.create(name="Child", parent=self.parent) |         self.child = Tag.objects.create(name="Child", parent=self.parent) | ||||||
|  |  | ||||||
|  |         patcher = mock.patch("documents.bulk_edit.bulk_update_documents.delay") | ||||||
|  |         self.async_task = patcher.start() | ||||||
|  |         self.addCleanup(patcher.stop) | ||||||
|  |  | ||||||
|         self.document = Document.objects.create( |         self.document = Document.objects.create( | ||||||
|             title="doc", |             title="doc", | ||||||
|             content="", |             content="", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon