mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
19 lines
435 B
Python
19 lines
435 B
Python
# -*- coding: utf-8 -*-
|
|
from django.test import TestCase
|
|
|
|
from common.models import NotificationEntry
|
|
from . import tasks as common_tasks
|
|
from InvenTree.tasks import offload_task
|
|
|
|
|
|
class TaskTest(TestCase):
|
|
"""
|
|
Tests for common tasks
|
|
"""
|
|
|
|
def test_delete(self):
|
|
|
|
# check empty run
|
|
self.assertEqual(NotificationEntry.objects.all().count(), 0)
|
|
offload_task(common_tasks.delete_old_notifications,)
|