Completed
Pull Request — master (#1189)
by Lasse
02:32
created

run()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 5
rs 9.4286
1
import time
2
3
from coalib.bears.LocalBear import LocalBear
4
from coalib.results.Result import Result
5
6
7
class ProcessingLocalTestBear(LocalBear):  # pragma: no cover
8
    def run(self, filename, file):
9
        # we need to test that the SectionExecutor holds back the global
10
        # results until processing of all local ones is finished
11
        time.sleep(0.05)
12
        return [Result("LocalTestBear", "test msg")]
13