Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
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 |