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