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

JobTests   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_queue_job() 0 3 1
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