Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
1 | from bears.general.LineLengthBear import LineLengthBear |
||
9 | e |
||
10 | """.split("\n") |
||
11 | |||
12 | |||
13 | LineLengthBear1Test = verify_local_bear(LineLengthBear, |
||
14 | valid_files=(test_file,), |
||
15 | invalid_files=(["testa"], |
||
16 | ["test line"]), |
||
17 | settings={"max_line_length": "4"}) |
||
18 | |||
19 | |||
20 | LineLengthBear2Test = verify_local_bear(LineLengthBear, |
||
21 | valid_files=(test_file, |
||
22 | ["http://a.domain.de"]), |
||
23 | invalid_files=(["asdasd"],), |
||
24 | settings={ |
||
25 | "max_line_length": "4", |
||
26 | "ignore_length_regex": "http://"}) |
||
27 |