2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00
InvenTree/InvenTree/common/test_tasks.py
Matthias d05472b30c
upgrade to pyhton 3.9 syntax
using pyupgrade
2022-05-01 21:53:12 +02:00

18 lines
401 B
Python

# -*- coding: utf-8 -*-
from django.test import TestCase
from common.models import NotificationEntry
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',)