18 lines
379 B
Python
18 lines
379 B
Python
import unittest
|
|
|
|
from app.App import App
|
|
|
|
|
|
class test_WorkerJobLogRepo(unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
App.init()
|
|
|
|
def test_all(self):
|
|
workerJobLogs = App.repos.workerJobLogRepo.getAll()
|
|
self.assertGreater(len(workerJobLogs), 0)
|
|
|
|
workerJobLog = App.repos.workerJobLogRepo.get(id=workerJobLogs[0].id)
|
|
self.assertIn(workerJobLog, workerJobLogs)
|