Conditions | 8 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
1 | # -*- coding: utf-8 -*- |
||
21 | def test_skippy(): |
||
22 | files = """ |
||
23 | - a |
||
24 | - b |
||
25 | - f: |
||
26 | - .dotfile |
||
27 | - __pycache__: |
||
28 | - c |
||
29 | - htmlcov: |
||
30 | - d |
||
31 | - e.pyc |
||
32 | - foo.egg-info: |
||
33 | - e |
||
34 | """ |
||
35 | with create_files(files) as root: |
||
36 | assert {fname for _hex, fname in list_files(root, root)} == {'a', 'b'} |
||
37 | |||
38 | assert {fname for _hex, fname in list_files(root, root, False)} == {'a', 'b'} |
||
39 | |||
40 | assert [fname for _hex, fname in list_files(os.path.join(root, '.dotdir'), root)] == [] |
||
41 | |||
61 |