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

bears.tests.css.CSSLintBearTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %
Metric Value
dl 0
loc 19
rs 10
wmc 2
1
from bears.css.CSSLintBear import CSSLintBear
2
from bears.tests.LocalBearTestHelper import verify_local_bear
3
4
5
good_file = """
6
.class {
7
  font-weight: 400;
8
  font-size: 5px;
9
}
10
""".split("\n")
11
12
13
bad_file = """
14
.class {
15
  font-weight: 400
16
  font-size: 5px;
17
}
18
""".split("\n")
19
20
21
CSSLintBear1Test = verify_local_bear(CSSLintBear,
22
                                     valid_files=(good_file,),
23
                                     invalid_files=(bad_file,))
24