18 lines
410 B
Python
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)
|