Admiral/admiral-worker/tests/test_repos/test_WorkerJobStatusRepo.py
2025-06-24 14:22:50 +02:00

18 lines
410 B
Python

import unittest
from app.App import App
class test_WorkerJobStatusRepo(unittest.TestCase):
@classmethod
def setUpClass(cls):
App.init()
def test_all(self):
workerJobStatuses = App.repos.workerJobStatusRepo.getAll()
self.assertGreater(len(workerJobStatuses), 0)
workerJobStatus = App.repos.workerJobStatusRepo.get(id=workerJobStatuses[0].id)
self.assertIn(workerJobStatus, workerJobStatuses)