18 lines
383 B
Python
18 lines
383 B
Python
import unittest
|
|
|
|
from app.App import App
|
|
|
|
|
|
class test_WorkerStatusRepo(unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
App.init()
|
|
|
|
def test_all(self):
|
|
workerStatuses = App.repos.workerStatusRepo.getAll()
|
|
self.assertGreater(len(workerStatuses), 0)
|
|
|
|
workerStatus = App.repos.workerStatusRepo.get(id=workerStatuses[0].id)
|
|
self.assertIn(workerStatus, workerStatuses)
|