Passed
Push — master ( 8b9f7f...914492 )
by Marek
02:15
created

test_rule_yaml   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_read_file_list() 0 7 1
1
import pytest
2
3
import os
4
import ssg.rule_yaml
5
6
data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "data"))
7
8
9
def test_read_file_list():
10
    path = os.path.join(data_dir, 'ssg_rule_yaml.txt')
11
    contents = ssg.rule_yaml.read_file_list(path)
12
13
    assert isinstance(contents, list)
14
    assert len(contents) == 1
15
    assert contents[0] == 'testing'
16