Completed
Push — master ( 12be21...88e98c )
by Bart
17s
created

JobTests.test_queue_job()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
1
# -*- coding: utf-8 -*-
2
import unittest
3
from fakeredis import FakeStrictRedis
4
from oe_utils.jobs import queue_job
5
6
7
class JobTests(unittest.TestCase):
8
9
    def test_queue_job(self):
10
        job_id = queue_job(FakeStrictRedis(), "test_queue", "dummy_package.dummy_module.hello_world", "test_argument")
11
        self.assertIsNotNone(job_id)
12
13