mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Update tasks e2e tests to cypress 10
and remove debug print
This commit is contained in:
parent
301b384a02
commit
1120e823ed
@ -2,16 +2,6 @@ describe('tasks', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
this.dismissedTasks = new Set<number>()
|
this.dismissedTasks = new Set<number>()
|
||||||
|
|
||||||
cy.intercept('http://localhost:8000/api/ui_settings/', {
|
|
||||||
fixture: 'ui_settings/settings.json',
|
|
||||||
})
|
|
||||||
cy.intercept('http://localhost:8000/api/correspondents/*', {
|
|
||||||
fixture: 'correspondents/correspondents.json',
|
|
||||||
})
|
|
||||||
cy.intercept('http://localhost:8000/api/tags/*', {
|
|
||||||
fixture: 'tags/tags.json',
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.fixture('tasks/tasks.json').then((tasksViewsJson) => {
|
cy.fixture('tasks/tasks.json').then((tasksViewsJson) => {
|
||||||
// acknowledge tasks POST
|
// acknowledge tasks POST
|
||||||
cy.intercept(
|
cy.intercept(
|
@ -516,7 +516,6 @@ def init_paperless_task(sender, task, **kwargs):
|
|||||||
|
|
||||||
@receiver(django_q.signals.pre_execute)
|
@receiver(django_q.signals.pre_execute)
|
||||||
def paperless_task_started(sender, task, **kwargs):
|
def paperless_task_started(sender, task, **kwargs):
|
||||||
print(task)
|
|
||||||
try:
|
try:
|
||||||
if task["func"] == "documents.tasks.consume_file":
|
if task["func"] == "documents.tasks.consume_file":
|
||||||
paperless_task = PaperlessTask.objects.get(task_id=task["id"])
|
paperless_task = PaperlessTask.objects.get(task_id=task["id"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user