Completed
Pull Request — master (#1431)
by Abdeali
01:38
created

bears.tests.general.SpaceConsistencyBearTest.test_run()   A

Complexity

Conditions 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 10
rs 9.4285
1
from bears.general.KeywordBear import KeywordBear
2
from bears.tests.LocalBearTestHelper import verify_local_bear
3
4
5
test_file = """
6
test line fix me
7
to do
8
error fixme
9
""".split("\n")
10
11
12
SpaceConsistencyBearTest = verify_local_bear(KeywordBear,
13
                                             valid_files=(test_file),
14
                                             invalid_files=("test line FIXME",
15
                                                            "test line todo",
16
                                                            "test line warNING",
17
                                                            "test line ERROR"),
18
                                             settings={
19
                                                "cs_keywords": "FIXME, ERROR",
20
                                                "ci_keywords": "todo, warning"})
21