Completed
Pull Request — master (#1189)
by Lasse
07:35
created

coalib.tests.processes.section_executor_test_files.ProcessingLocalTestBear   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %
Metric Value
dl 0
loc 6
rs 10
wmc 1

1 Method

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