fix assertation

This commit is contained in:
Matthias 2022-05-17 00:53:51 +02:00
parent 09af7d964d
commit 728cccc469
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -76,7 +76,7 @@ class InvenTreeTaskTests(TestCase):
InvenTree.tasks.offload_task('InvenTree')
# Non exsistent app
with self.assertWarnsMessage(UserWarning, "WARNING: 'InvenTreeABC.test_tasks.doesnotmatter' not started - No module named 'InvenTreeABC'"):
with self.assertWarnsMessage(UserWarning, "WARNING: 'InvenTreeABC.test_tasks.doesnotmatter' not started - No module named 'InvenTreeABC.test_tasks'"):
InvenTree.tasks.offload_task('InvenTreeABC.test_tasks.doesnotmatter')
# Non exsistent function